cancel
Showing results for 
Search instead for 
Did you mean: 

How to access Record Id after Salesforce Create Snap

NAl
Contributor

Hi there,

I am trying to access the newly created record Id by in a Mapper Snap based on the information that is collected in a Salesforce Poller Snap. Unfortunately when I try to stipulate Id it refers to a previous variable used to map some data. I’ve even added a File Reaser and CSV Parser Snap to get access but this doesn’t seem to do the trick.

Screen Shot 2021-04-08 at 2.27.00 PM

1 ACCEPTED SOLUTION

SpiroTaleski
Valued Contributor

@NAl

Are you using Salesforce Create Snap with Bulk API or REST API?

If you are using the Bulk API then you should place Salesforce Poller Snap after the Salesforce Create Snap. The Salesforce Poller Snap will read the job submitted to Salesforce, and will return the details(id,name etc) of the created records. Then you can place Mapper Snap and get the required fields($Id,$Name etc).

If you are using Salesforce Create with REST API, then you will get the details for each of the created record at the output. Using the Mapper Snap you can get the required fields as well($Id,$Name).

Regards,
Spiro Taleski

View solution in original post

6 REPLIES 6

SpiroTaleski
Valued Contributor

@NAl

Are you using Salesforce Create Snap with Bulk API or REST API?

If you are using the Bulk API then you should place Salesforce Poller Snap after the Salesforce Create Snap. The Salesforce Poller Snap will read the job submitted to Salesforce, and will return the details(id,name etc) of the created records. Then you can place Mapper Snap and get the required fields($Id,$Name etc).

If you are using Salesforce Create with REST API, then you will get the details for each of the created record at the output. Using the Mapper Snap you can get the required fields as well($Id,$Name).

Regards,
Spiro Taleski

Hi Spiro,

I took your comments on board and was able to get the pipeline working correctly. Even managed to create the necessary child records against the newly created ID.

Thanks so much!