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,
lets extend this functionality to send SMS too ,
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);
}
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 ,
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)
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
This is Great site talk to female strangers online
ReplyDeletebuy smart carts online. organic smart cart. are the high potency distillate free from any solvents. If this product was accurate with its claim.
ReplyDeleteStonersdankshop 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
ReplyDeleteHere Are 10 Tips For Unpacking
ReplyDeleteMoving 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
seo fastest
ReplyDeleteSEO 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!
Superslot
ReplyDeleteซุปเปอร์สล็อต เราคือผู้ให้บริการสล็อตออนไลน์มีตัวเกมสล็อตให้เลือกเล่นจำนวนมากบนมือถืออันดับ 1 ทั้งฟรีเครดิต 50 ,100 , 150 , 200 ที่สามารถ
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.
ReplyDeletebokep jav Bokep Indo, Bokep Barat, Bokep Asia, Bokep Gay, Bokep Semi.
ReplyDeleteThank you for oder my Gigs. Please share the details guide in the project
ReplyDeleteshaw internet plans
https://smsswanted.blogspot.com/2012/08/how-to-launch-premium-rate-sms-service.html?showComment=1610379178361#c1503656721859236995
ReplyDeletekiss 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 ...
ReplyDeleteNew 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.
ReplyDeletevoyance telephone espoir. I would recommend my profile is important to me, I invite you to discuss this topic...
ReplyDeleteYacht excursions Cyprus Your site is truly cool and this is an extraordinary moving article.
ReplyDeleteYacht 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.
ReplyDeleteIn this particular article, you will see a summary, satisfy browse this post. 威而鋼
ReplyDeleteI appreciated your work very thanks mobile toilet for rent
ReplyDeletePretty 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
ReplyDeleteslotxo168 ผู้ให้บริการ SLOT ONLINE ที่มาพร้อมความบันเทิงแบบครบวงจรทั้ง สล็อต ยิงปลา การันตีความมั่นคง ปลอดภัย 100% เล่นได้ จ่ายจริง ทุกยอดเดิมพัน
ReplyDelete