function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sashamsasham 

PLs anyone answer me .Is it possible call Api from marketing cloud

I have craeted custom Rest Api (post method and get ) . Pls let me know if that Api can be called from marketting cloud and how (using java script)
NagendraNagendra (Salesforce Developers) 
Hi Sasham,


It's really no different than any other platform used for making API calls.

If the API action needs to be on an SFMC Landing Page or Microsite, then you'll have to do it within the confines of SFMC's SSJS https://developer.salesforce.com/docs/atlas.en-us.mc-programmatic-content.meta/mc-programmatic-content/ssjs_syntaxGuide.htm and AMPScript https://help.marketingcloud.com/en/documentation/exacttarget/content/ampscript/ampscript_syntax_guide/api_ampscript_functions/
functions.

If you need to do an HTTP Get on a public endpoint, then you can use the SSJS Get() or the AMPScript httpGet() 
https://code.exacttarget.com/content-scripting/ampscript/http/HTTPGet.html functions.

Hope this helps.

Thanks,
Nagendra