Adding Current Date Time in WebHook to Salesforce

Ben_Neal1
Level 1

Adding Current Date Time in WebHook to Salesforce

I'm building a custom integration from Marketo to Salesforce using WebHooks and I'd like to populate a Salesforce field with the date or datetime that the WebHook is executed. I see that there is a system datetime token {{system.dateTime}} but that format is "yyyy-MM-dd hh:mm:ss" and Salesforce requires that datetime fields be formatted in ISO 8601 (yyyy-MM-ddThh:mm:ssZ) which Marketo doesn't seem to support.

Is there any work around here? Can I change the datetime format of the current datetime either before or during the execution of the Marketo WebHook?

-Ben

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Adding Current Date Time in WebHook to Salesforce

Hi Ben,

AFAIK, unless you use another webhook to massage to the time to ISO8601 (web profile) this can't be done.

Can't your remote endpoint do the timestamping, though?

Grégoire_Miche2
Level 10

Re: Adding Current Date Time in WebHook to Salesforce

Hi Ben,

Why don't you generate the value in your SFDC field from your SFDC web service ?

-Greg