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:

function Now(){
var dtNow = new Date();
var sNow = ( dtNow.getMonth()+1) + "/" + dtNow.getDate() + "/" + dtNow.getFullYear() + " "
+ dtNow.getHours() + ":" + dtNow.getMinutes() + ":" + dtNow.getSeconds();
return(sNow)
}


Note
  1. You should use SetFormattedFieldValue() if you are planning to use this on a business component field.
  2. This function returns server time. You may need to make adjustments based on local time for the user.

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