I wish to make Rest API Calls to Marketing Cloud for an update in Salesforce instance sending emails through Marketing cloud to Customers.

When I researched on how to implement it, It has a basic requirement of access token, which can be generated with the help client Id and Client Secret, which in turn can only be generated through App Center.

Is there any other way to get client Id and client secret for generating access token to make Rest API Calls without involving App Center.

Please suggest.

  • 1
    There's no way to get a ClientID and ClientSecret without going through App Center. Could you say why that would be an issue as it takes ten minutes and you don't have to revisit the step. Is there a reason you've settled using the REST API in place of other less code-y options? Do you have the connector installed? Would Salesforce Triggered Sends or Journey Builder Events for CRM not work here?
    – Macca
    Jun 7, 2017 at 11:23
  • 1
    Hi Andrew, Good Day! Yes I have got the connector installed. We have not yet finalized, if we will go with REST API Calls, actually we are looking for best possible way, to get this functionality up, and also some way where we do not allow marketing cloud to update records in salesforce and get our email trigger to customer after every change to the field in salesforce record. With using Journey builder I have reset this field to null after the email activity through update activity.
    – Nitesh
    Jun 7, 2017 at 23:22

2 Answers 2


You explained that you would like to make 'an update in Salesforce instance sending emails through Marketing cloud'. I assume you are referring to creating or updating records in Sales Cloud objects at the time an email is sent.

If that's your intention, I'd recommend you consider using the CreateSalesforceObject() or UpdateSingleSalesforceObject() Salesforce AMPscript functions. These are effectively wrappers for the Sales Cloud REST API methods and using these AMPscript functions does not count towards your Sales Cloud REST API limit.

However, bear in mind that you need to be aware of record lock concurrency which may apply in certain scenarios where there are relationships to other Sales Cloud objects in the record you are creating or updating. But whether you are using AMPscript or the REST API, you are going to run into the same lock contention issues, so you just need to aware of this.

  • Thanks Eliot, Greetings! , actually I want to send email after update on lead record in salesforce, and email should go from SFMC. This update can take place multiple times on the same record, and every time we want to send email to customer. Hope it clarifies.
    – Nitesh
    Jun 8, 2017 at 2:21
  • Then a Salesforce AMPscript function in your email is definitely the way to go, but just be mindful of record lock concurrency as I referenced earlier, which may or may not apply to your scenario. Jun 8, 2017 at 2:39
  • Using AMPscript, will there be any update by SFMC on Records in Salesforce instance. Because we do not want SFMC to make changes to records in Salesforce instance. Thanks Eliot.
    – Nitesh
    Jun 8, 2017 at 3:58
  • Yes of course there will be an update on records. In your question, you asked how to use Marketing Cloud to make 'an update in Salesforce instance'. If this isn't what you want, please clarify your question. Jun 8, 2017 at 9:43

If you want to use REST API, you'll have to use App Center. If not, you can use SOAP API to send emails.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .