Showing posts with label Tech Tips. Show all posts
Showing posts with label Tech Tips. Show all posts
Tuesday, December 11, 2007
Wanna Learn Regular Expressions?
I'm a big believer in less is more. To me, regular expressions are the eptitomy of that in slinging code. Finally found a good primer. Now if I can only find the time to read and practice. I have the same problem with my grand piano.
Friday, June 15, 2007
Siebel eScript Now() Function
There is no "Now()" function in Siebel eScript but you can write your own to return the current date/time off the server. Here's how it goes:
Note
function Now(){
var dtNow = new Date();
var sNow = ( dtNow.getMonth()+1) + "/" + dtNow.getDate() + "/" + dtNow.getFullYear() + " "
+ dtNow.getHours() + ":" + dtNow.getMinutes() + ":" + dtNow.getSeconds();
return(sNow)
}
Note
- You should use SetFormattedFieldValue() if you are planning to use this on a business component field.
- This function returns server time. You may need to make adjustments based on local time for the user.
Subscribe to:
Posts (Atom)
Test Class for your Marketing Cloud Trigger
When using the Salesforce Marketing Cloud Connector to enable Marketing Cloud access from Sales and Service Clouds, folks often want to perf...
-
There is no "Now()" function in Siebel eScript but you can write your own to return the current date/time off the server. Here...
-
When using the Salesforce Marketing Cloud Connector to enable Marketing Cloud access from Sales and Service Clouds, folks often want to perf...
-
We all make life goals big and small: start a business, win a professional sporting event, make a million dollars, eat an extra-large Gecko ...