Great video, Shibu. It was quite informative. I have a question: would it be possible to send a post request from a different origin to a Cloud resource REST api similar to what you've done? I'm currently working on an integration that sends a post request from our landing page to save form data therefrom to an MC data extension. I'm having a problem with CORS though. I'm getting a 500 error code with the preflight request. We've added "Platform.Response.SetResponseHeader('Access-Control-Allow-Origin','*')" and it doesn't seem to work. Any insight from you is definitely welcome. Thanks!
If all you need is to submit the data from the external site form to a MC DE, you can try DE manager - help.salesforce.com/s/articleView?id=sf.mc_es_demanager.htm&type=5. It exposes your client id (MID of the target BU) in the html though. You should also be able to send post req frm an external page to MC through Rest api - did u try using the POST request from Postman first to the Json Code resource url and see if data goes through? You can write script in the code resource to check if the referrer page is coming from your landing page to make it secure - and maybe even post a hidden encrypted passcode field in the html post data that you can retrieve in the code resource and validate the req came frm the web page (for security purposes). Once u parse the post data u can have ssjs or ampscript to insert the data into the DE. I dont see why you would have a Cors issue when u hit a public url of the json code resource - salesforce.stackexchange.com/questions/268350/marketing-cloud-api-cors-problem
Hi, I have the SFMC REST API and now I want to integrate it with the Salesforce service cloud. As MC only provides the clientID and clientSecret. Is there any intuitive way to set up using Named Cred?
Excellently articulated , thoroughly enjoy your videos.
Great video! Shibu Abraham. Love it!
Great video, Shibu. It was quite informative. I have a question: would it be possible to send a post request from a different origin to a Cloud resource REST api similar to what you've done? I'm currently working on an integration that sends a post request from our landing page to save form data therefrom to an MC data extension. I'm having a problem with CORS though. I'm getting a 500 error code with the preflight request. We've added "Platform.Response.SetResponseHeader('Access-Control-Allow-Origin','*')" and it doesn't seem to work. Any insight from you is definitely welcome. Thanks!
If all you need is to submit the data from the external site form to a MC DE, you can try DE manager - help.salesforce.com/s/articleView?id=sf.mc_es_demanager.htm&type=5. It exposes your client id (MID of the target BU) in the html though. You should also be able to send post req frm an external page to MC through Rest api - did u try using the POST request from Postman first to the Json Code resource url and see if data goes through? You can write script in the code resource to check if the referrer page is coming from your landing page to make it secure - and maybe even post a hidden encrypted passcode field in the html post data that you can retrieve in the code resource and validate the req came frm the web page (for security purposes). Once u parse the post data u can have ssjs or ampscript to insert the data into the DE. I dont see why you would have a Cors issue when u hit a public url of the json code resource - salesforce.stackexchange.com/questions/268350/marketing-cloud-api-cors-problem
Hi, I have the SFMC REST API and now I want to integrate it with the Salesforce service cloud. As MC only provides the clientID and clientSecret. Is there any intuitive way to set up using Named Cred?
Hi! great video, do you have one where you explain how to connect with VSCode? Thanks!
Please do check out this video - th-cam.com/video/OwTtlnyKIRo/w-d-xo.html
Hello sir do you someone who provide tenant access for Salesforce marketing cloud on rental basis or plan.
No - customers or partners only will have marketing cloud instances and as far as i know no one will rent it out. I dont think it's legal either.
Actually am preparing for Salesforce marketing cloud email specialist and for practice perpose am looking for it
keep getting a 500 error when making a get request
Do u have Content-Type: application/json specified in the request header? I presume you are getting the error in Postman