Forum Discussion

svedantam's avatar
svedantam
New Contributor
3 years ago

How to create an Account Record in Salesforce using Rest API and send "ID" as a response

How to create an Account Record in Salesforce using Rest API and send “ID” as a response

9 Replies

  • SpiroTaleski's avatar
    SpiroTaleski
    Valued Contributor

    @svedantam

    The last snap, is that a Salesforce Create Snap?

    If so, first check the Snap Execution mode(select Validate&Execute), so on the output you will see the results of the created records.

    BR,
    Spiro Taleski

  • SpiroTaleski's avatar
    SpiroTaleski
    Valued Contributor

    @svedantam

    If creation of that record in Salesforce is successful, then on the Salesforce Create Snap’s output you should have the id of the created record.

  • svedantam's avatar
    svedantam
    New Contributor

    @ Spiro_Taleski I used below flow to read the parameters from pipeline to create an account in salesforce. but i am not sure how to get ID as a response from this

  • svedantam's avatar
    svedantam
    New Contributor

    yeah i fixed it already. Now my question is how to capture response body after creating an Account record in salesforce

  • SpiroTaleski's avatar
    SpiroTaleski
    Valued Contributor

    @svedantam

    If you have the Salesforce Create Snap properly configured, the accounts will be created in Salesforce, and the Snap will produce output(similar like Mapper snap), that will contains the saleforce id’s of the created accounts.

    • svedantam's avatar
      svedantam
      New Contributor

      @Spiro_Taleski okay, how to connect to salesforce account without using salesforce create snap and only by using service url in REST POST/GET snap, when i try to give a service url it is showing as invalid. How to give correct one