SFMC APIs - Creating Custom REST API Endpoints

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ต.ค. 2024

ความคิดเห็น • 12

  • @pankajgusain1199
    @pankajgusain1199 2 ปีที่แล้ว

    Excellently articulated , thoroughly enjoy your videos.

  • @ducasimo
    @ducasimo 2 ปีที่แล้ว

    Great video! Shibu Abraham. Love it!

  • @monkkokkalis1354
    @monkkokkalis1354 2 ปีที่แล้ว

    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!

    • @sfmctrailblazers
      @sfmctrailblazers  2 ปีที่แล้ว

      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

  • @jaydeepgo
    @jaydeepgo 3 ปีที่แล้ว

    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?

  • @CetreroOscar
    @CetreroOscar 2 ปีที่แล้ว

    Hi! great video, do you have one where you explain how to connect with VSCode? Thanks!

    • @sfmctrailblazers
      @sfmctrailblazers  2 ปีที่แล้ว +1

      Please do check out this video - th-cam.com/video/OwTtlnyKIRo/w-d-xo.html

  • @mithileshnevase7910
    @mithileshnevase7910 3 ปีที่แล้ว

    Hello sir do you someone who provide tenant access for Salesforce marketing cloud on rental basis or plan.

    • @sfmctrailblazers
      @sfmctrailblazers  3 ปีที่แล้ว

      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.

    • @mithileshnevase7910
      @mithileshnevase7910 3 ปีที่แล้ว

      Actually am preparing for Salesforce marketing cloud email specialist and for practice perpose am looking for it

  • @richardtate1811
    @richardtate1811 ปีที่แล้ว

    keep getting a 500 error when making a get request

    • @sfmctrailblazers
      @sfmctrailblazers  ปีที่แล้ว

      Do u have Content-Type: application/json specified in the request header? I presume you are getting the error in Postman