heroku / salesforce-bulk

Python interface to the Salesforce.com Bulk API
MIT License
206 stars 157 forks source link

Retrieve job_id from salesforce-bulk create_job #102

Closed khgouldy closed 2 years ago

khgouldy commented 3 years ago

hi folks, How can we return the job_id for each job created using the create_job method? I know there is another method to get the job_status... but how about the id?

alouie-sfdc commented 3 years ago

Hi @khgould, the create_job method returns the id of the job that gets created: https://github.com/heroku/salesforce-bulk/blob/90fbdabb78207c8de04b8d35b80957189736f1a8/salesforce_bulk/salesforce_bulk.py#L215

You can see some examples in the tests, such as: https://github.com/heroku/salesforce-bulk/blob/90fbdabb78207c8de04b8d35b80957189736f1a8/salesforce_bulk/tests/test_salesforce_bulk.py#L350

Does that answer your question, or were you asking about something else?

khgouldy commented 3 years ago

Thanks! Silly me.

On Fri, Jul 30, 2021 at 00:07 alouie-sfdc @.***> wrote:

Hi @khgould https://github.com/khgould, the create_job method returns the id of the job that gets created: https://github.com/heroku/salesforce-bulk/blob/main/salesforce_bulk/salesforce_bulk.py#L215

You can see some examples in the tests, such as: https://github.com/heroku/salesforce-bulk/blob/main/salesforce_bulk/tests/test_salesforce_bulk.py#L350

Does that answer your question, or were you asking about something else?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/heroku/salesforce-bulk/issues/102#issuecomment-889631153, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJPF2STKDCI33LUTB2XX63TT2IXPTANCNFSM5BHF4J4A .