Friday, 25 January 2019

Sending SMS in Siebel : Extending Default [ALT + F9] functionality

Hello All ,

 Sending Email in Siebel is very basic and very useful functionality ,which we widely use.
 Command F9 is provided by default for sending the email via Pick recipient option.

 so using existing framework lets try to extend this functionality for sending SMS,




 Solution,

  •   There is default option for Send Wireless Message in Siebel which is Invoked from Command ALT + F9

 lets extend this functionality to send SMS too ,


  • Find the target Applet , "Send SMS Applet" 


 by default there is Option to Pick Recipient which in turn selects email address as it is Based on Contact ,
 so we need to add some custom code here to Pick Phone number also for the contact
 also we need to enter the Text which we want to sens as SMS Body , and store it in a variable

 Below code in Applet PreInvoke does the needful,

 function WebApplet_PreInvokeMethod (MethodName)
 {
 if(MethodName == "SendSMS")
 {
 this.BusComp().ActivateField("Contact Id");
 this.BusComp().ActivateField("Email Body");

 var SMSBody = this.BusComp().GetFieldValue("Email Body"); // get SMS body to be sent
 var PhoneNum = this.BusComp().GetMVGBusComp("Contact Id").GetFieldValue("Cellular Phone #"); //get Phone number to send SMS
 sendSMS(SMSBody,PhoneNum);
 }



  •  Add Button to Invoke method say SendSMS , that will trigger SMS.


 Now we can send SMS as we have Phone number and Message Body,
 There are certain API available for this, i am using way2sms for this purpose,

 API for way2sms :
 apikey, unique key for user
 secret, unique key for user
 usetype, stage or Production
 phone, Number to send SMS to
 message, Message body

sample Request : http://www.way2sms.com/api/v1/sendCampaign?apikey=UO9EWGKEQI2YQA5BSCRJHT5TUXHORPP8&secret=UX93MQ92VIBTCGY7&usetype=stage&phone=999670002&message=HelloRahul"); 

Paramteterized Request : PhoneNumber and Message passed in Request as variable

http://www.way2sms.com/api/v1/sendCampaign?apikey=UO9EWGKEQI2YQA5BSCRJHT5TUXHORPP8&secret=UX93MQ92VIBTCGY7&usetype=stage&phone="+ PhoneNum +"&message"+ SMSBody;

now we can call Siebel EAI Transport to Hit the URL ,


 sendSMS(SMSBody,PhoneNum)

 ///SMS//////

var k = "https://smsapi.engineeringtgr.com/send/?Mobile=***67753*2&Password=able&Message="+SMSBody+"&To="+PhoneNum+"&Key=RAHULVsG7AhXF0bnm2uz";

var EAISiebelAdapter = TheApplication().GetService("EAI HTTP Transport");
var Inputs = TheApplication().NewPropertySet(); var Outputs = TheApplication().NewPropertySet();
Inputs.SetProperty("HTTPRequestURLTemplate","https://smsapi.engineeringtgr.com");
Inputs.SetProperty("HTTPRequestBodyTemplate",k);
Inputs.SetProperty("HTTPRequestMethod","POST");
//Inputs.SetProperty("HTTPContentType", "text/xml; charset=UTF-8");
EAISiebelAdapter.InvokeMethod("Send", Inputs , Outputs);
 ////sms end////TheApplication().RaiseErrorText( "SMS  "+ SMSBody +"  sent to user  with Phone Number  "+ PhoneNum);*/return (CancelOperation);
 }
 return (ContinueOperation);}


 Note:
 1. ALT + F9 is default command to Open Send Wireless Message applet
 2. SMS API depends on the client, as i have chosen free demo from way2sms, working with different API ,might require different code
 3. By Default there is Option of Pick Recipient which Open a Pick applet for choosing recipient first, before navigating to Send SMS Applet, this is default behavior and can be overridden with below steps (will share detailed solution in later post)

  •   Open The User Property for the BC
  •   Search for Enable Recipient in User Property
  •   Disable and Compile/Deliver




29 comments:

  1. Yahoo mail is an web based email service. Yahoo mail service can be accessed through different devices including computer, tablets, smart phones, and more. Users with a valid Yahoo account can sign into Yahoo com to access the features of Yahoo mail. A smile web browser can be used to sign into Yahoo.com. Users can also download Yahoo app to their mobile phone and login to their account. yahoo mail sign in

    ReplyDelete
  2. buy smart carts online. organic smart cart. are the high potency distillate free from any solvents. If this product was accurate with its claim.

    ReplyDelete
  3. Stonersdankshop established in 2016 in United States has been the best vape shop exporting vape products online to most vape shops in USA and to vape . big chief extracts

    ReplyDelete
  4. Here Are 10 Tips For Unpacking
    Moving with a family is indeed difficult from packing to unpacking, you have to do it all by yourself. You are solely responsible for taking care of all the important things to taking care of your family on the other hand. You have to pack

    ReplyDelete
  5. hiring movers in California

    So, you have decided to take a step ahead and make the very difficult decision of your life that is to relocate or plan a move. This will be the most stressful time you will ever have if you haven’t planned it properly. If you’re planning to move your house or business to an entirely new state or place then you must be cautious about how you will take the things and most importantly, how will you carry them? Right, if yes then choosing the right moving company is what you have to do.

    ReplyDelete
  6. Fashion line of beauty

    The Bridal Planner is the leading destination fashion planner based in Goa, India. Founded in 2013, by Sadneep, a former Goa engineer, after her own destination fashion in Goa. With experience as an expatriate of over 10 years in various countries prior to forming The Bridal Planner, Sadneep has gained an appreciation for client expectations of luxury, professionalism and efficiency on an international scale. Her clients have been from all over the world including celebrities and a high profile company which were featured in various media in South East Asia and Europe.

    ReplyDelete
  7. seo fastest

    SEO has never been easier with this new and exclusive SEOFASTEST SEO Planner Tool.
    Just drag and drop your favorite packages into the calendar and hit the order button!
    No multiple order processes anymore! Buy backlinks with a click of a button!

    ReplyDelete
  8. Superslot

    ซุปเปอร์สล็อต เราคือผู้ให้บริการสล็อตออนไลน์มีตัวเกมสล็อตให้เลือกเล่นจำนวนมากบนมือถืออันดับ 1 ทั้งฟรีเครดิต 50 ,100 , 150 , 200 ที่สามารถ

    ReplyDelete
  9. Superslot

    ซุปเปอร์สล็อต เราคือผู้ให้บริการสล็อตออนไลน์มีตัวเกมสล็อตให้เลือกเล่นจำนวนมากบนมือถืออันดับ 1 ทั้งฟรีเครดิต 50 ,100 , 150 , 200 ที่สามารถ

    ReplyDelete
  10. This is a smart blog. I mean it. You have so much knowledge about this issue, and so much passion. You also know how to make people rally behind it, obviously from the responses. receive SMS free

    ReplyDelete
  11. raw feeding, dog Are you a cat or dog owner looking to maximize nourishment for your furry family members? As a pet parent, you naturally strive to provide your pets with the best lifestyle options available

    ReplyDelete
  12. reviewsyard

    At Reviews Yard Blog, we are committed to creating unique and customized content for our users that is useful for detailed information. We focus on applied information and a range of topics that can impact users in different technology areas.

    ReplyDelete
  13. gogoanime

    GogoAnime - Watch anime online in high quality for free. Watch anime subbed, anime dubbed online free. Update daily, fast streaming, no ads, no registration ...

    ReplyDelete
  14. Autoankauf Auf der Suche nach einem seriösen Autoankäufer in NRW sind Sie bei uns genau richtig. Wir garantieren Ihnen eine sichere und seriöse Abwicklung rund um den Autoankauf in NRW.

    ReplyDelete
  15. bokep jav Bokep Indo, Bokep Barat, Bokep Asia, Bokep Gay, Bokep Semi.

    ReplyDelete
  16. Thank you for oder my Gigs. Please share the details guide in the project

    shaw internet plans

    ReplyDelete
  17. https://smsswanted.blogspot.com/2012/08/how-to-launch-premium-rate-sms-service.html?showComment=1610379178361#c1503656721859236995

    ReplyDelete
  18. kiss anime The best place to watch dub and sub anime online and absolitely for free - KissAnime. With over 10000 different animes - KissAnime is the best source for anime ...

    ReplyDelete
  19. New Zealand visum Thisare a private website offering our users online application services which include assistance with their application for Electronic Travel Authorization for travel to India. 

    ReplyDelete
  20. voyance telephone espoir. I would recommend my profile is important to me, I invite you to discuss this topic...

    ReplyDelete
  21. new zealand eta New Zealand has in place quite stringent biosecurity laws at its borders to prevent the accidental or intentional entry of harmful pests, germs, foreign pathogens or diseases. All such high risk material, food or non-food related must be declared or be binned/disposed of in marked garbage

    ReplyDelete
  22. Yacht excursions Cyprus Your site is truly cool and this is an extraordinary moving article.

    ReplyDelete
  23. Yacht Rental Cyprus Thank you for your post, I look for such article along time, today i find it finally. this post give me lots of advise it is very useful for me.

    ReplyDelete
  24. buy tik tok followers Increase your exposure on social media! Check out our deals and buy Instagram Followers, Buy Youtube Subscribers, and more! Fast, cheap, and 24/7 Support.

    ReplyDelete
  25. In this particular article, you will see a summary, satisfy browse this post. 威而鋼

    ReplyDelete
  26. Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. Big thanks for the useful info. high dofollow backlinks

    ReplyDelete
  27. slotxo168 ผู้ให้บริการ SLOT ONLINE ที่มาพร้อมความบันเทิงแบบครบวงจรทั้ง สล็อต ยิงปลา การันตีความมั่นคง ปลอดภัย 100% เล่นได้ จ่ายจริง ทุกยอดเดิมพัน

    ReplyDelete

Siebel GoTo View - Handling Realtime cases

 Hello All,  We all must have used GoTo view functionality of siebel to navigate to a particular view from current view. What if the require...