Skip to main content
Javier_Sanchez1
Level 2
March 28, 2019
Question

Marketo Salesforce integration

Hi!

There is such thing in Marketo as SalesForce integration.

Not sure how exactly this works, but after user clicks that in Marketo UI then `sfdcId` and `sfdcName` fields are assigned to the program.

We are cloning Programs using API calls and customer want SalesForce integration to be automated as well.

Any ideas how to do this?

url = BASEURL + 'rest/asset/v1/program/' + str(

PROGRAMTOCLONEId) + '/clone.json?access_token=' + access_token

data = 'name=new programm test&sfdcName=some name&sfdcId=666&folder={"type": "Folder", "id":' + str(FolderId) + '}'

headers = {'Content-type': 'application/x-www-form-urlencoded'}

response = requests.post(url, data=data, headers=headers)

adding `sfdcId` and `sfdcName` to the call appears to be ignored.

at the same time `name` and `folder` is picked up and the new program is created in Marketo.

what am i missing here?

any ideas?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

12 replies

Steven_Vanderb3
Adobe Employee
Adobe Employee
March 28, 2019

http://developers.marketo.com/rest-api/assets/programs/#clone

http://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Programs/cloneProgramUsingPOST

The call doesn't take sfdcId or sfdcName as parameters. It takes name, the folder destination, and an optional description.

Translate
Javier_Sanchez1
Level 2
March 29, 2019

Thank you Steven for clearing that out.

But is there a call that can update sfdcName? Can't find it. Maybe I am looking in a wrong place?

Or API is only limited to change name, description, costs, tags and start/end dates of a program?

Translate
Jay_Jiang
Level 10
March 30, 2019

No, API can't create a new SFDC campaign sync - not everyone uses Salesforce and arguably, even less people building API solutions would be using Salesforce.

Use Marketo UI to set SFDC campaign sync in Program Setup tab.

Translate