1

Anyone know how to use ampscript from Marketing Cloud to make a callout to salesforce rest api?

The REST API I need to call from ampscript is listed below:

/services/data/v45.0/query?q=SELECT ID , (SELECT ID, Data_Centre__C FROM OrderItems) FROM ORDER WHERE PrimaryContact__C = '0037F00001I2cxVQAR'

  • Where would this code be running? In a CloudPage? – Adam Spriggs Mar 25 at 2:45
  • 3
    If so this question has been answered several times before. Here's one example: salesforce.stackexchange.com/a/171165/5202 – Adam Spriggs Mar 25 at 11:29
  • Yes, in a CloudPage. I have seen the example but that one is used to call the Marketing Cloud API (exacttargetapis) not Sales Colud REST API. – Kai-Fan Hsieh Mar 26 at 10:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.