We have created a custom object in marketo (call it "Sample - M"). A similar object exists in Salesforce (call it "Sample - S"). For some marketing processes, the records for these objects will be created in marketo. Now, the requirement is: whenever a Sample - M record is created or updated in marketo, it needs to flow in to Salesforce to insert or update a corresponding Sample - S record. This can be done via Salesforce APIs but I am unable to find a way to code the functionality in Marketo which could then be triggered every time a record is updated/inserted in Marketo.
Does marketo not support any custom code (Javascript code will also work) to be executed on record? If not, is there any workaround to obtain the above requirements?
Solved! Go to Solution.
Hi Nikhil,
Then salesforce will have to connect to Marketo through the REST API and read the values in the Sample - M object. The REST API enables to read, create and update custom objects in Marketo.
-Greg
Hi Nikhil,
Marketo does not have functionality that would enable you to do this "internally" to Marketo.
I would encourage you to develop an APEX service in SFDC that does what you need to do, connecting to Marketo through it's API.
You could use it in conjunction with a Marketo webhook that would call a webservice developped in SFDC to let SFDC know that a given lead/contact had an update on a custom object. But this will be limited as, for the moment, the webhook will not be able to pass info from the "Sample - M" objects.
-Greg
Thanks for your response Greg. However, for my requirement, passing values from Sample - M to Salesforce is a key functionality. We want to store the info stored in record fields in Salesforce Sample - S object records.
Hi Nikhil,
Then salesforce will have to connect to Marketo through the REST API and read the values in the Sample - M object. The REST API enables to read, create and update custom objects in Marketo.
-Greg
Hi Greg,
I was working on retrieving the Custom Object information from Salesforce using REST API. However, I could not find any a way to retrieve custom object records. The APIs that I went through could only retrieve the Lead data and not the custom object data with the request. I am using the email ID as the filter to search for Lead records using the below endpoint:
<REST API Endpoint URL>/rest/v1/leads.json?filterType=email&filterValues=test@test.com
The above endpoint only returns the Lead fields and not any of its related custom object records. Can you guide me how to retrieve those records as well using email or sfdc id as the filter?
Thanks in advance.
Is there a reason that you can't use the normal SFDC sync to pull down the custom objects from SFDC?
Hi Kenny,
I understand the custom objects are instantiated in Marketo.
If my understanding is correct, SFDC sync'ed custom objects in Marketo are read-only.
-Greg
Yes, but they're only read-only in Marketo. Any changes committed to the records in SFDC will still be synched down to Marketo.