Wednesday, 17 March 2021

Replacing Special Characters in Siebel

 Hello All, 

Recently i had a requirement where i had to replace some special character's like &,@ from SMS body that was sent as notification.

solution is very simple and basic :-), we need to use string function replace() for this and pass the pattern to replace.

var str= "Dolce & Gabbana";

var pat = "&";

var rtn = str.replace(pat, "%26");

TheApplication().RaiseErrorText(rtn );                                            



We can write a business service for this and call this in WF or Script which we are using to send the SMS/EMAIL.

No comments:

Post a Comment

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...