Customer Portal

Adding multiple batches to Salesforce Job

Comments 1

  • Avatar
    imriskal
    0
    Comment actions Permalink
    Hi Jesse,

    I am not sure whether SalesForce allows users to send more than one request using the same session ID but if it does, here is what you can do. I think the easiest way is to transform the whole graph into a jobflow. In the jobflow, you replace HTTPConnector in step 3 with ExecuteJobflow. In this child jobflow, you can use ListFiles and HTTPConnector, sending the files one by one and taking sessionID passed from the parent jobflow as a parameter. When the child jobflow is done, a token is send from ExecuteJobflow to HTTPConnector in Step 4 and the job is closed.

    If SalesForce does not allow to send multiple requests with one sessionID, you can create a parent jobflow with ListFiles and ExecuteGraph. Child graph would contain the whole SalesForceBulkInsert graph with the only change - File URL property used by HTTPConnector in step 3 would contain parameter value coming from the parent jobflow and containing URLs provided by ListFiles.

    I hope this helps.

Please sign in to leave a comment.