You need to sign in to do that
Don't have an account?

Any way to bulkify a flow trigger?
I am part of the flow trigger pilot.
I have a custom object that tracks parts on a bill of materials (product parts). I have another object that tracks a simple production forecast for the products (MRP Forecast) - I have built a flow trigger that evaluates the MRP forecast and creates individual requirements records on a 3rd custom object that is Master Detail to the forecast object for each product on the bill of materials for the product specified in the forecast. (Bills of Material can be anywhere from 1 to 200 part numbers)
It works perfectly if I add or edit a forecast in the native salesforce interface - but we have hundreds of products, and each product needs a separate forecast for each month - so I need to be able to upload my forecast records en mass.
I tried an upload of 30 forecast records and it failed on the record insert: "common.exception.ApiException: record limit reached. cannot submit more than 200 records into this call".
Is there anyway I can "bulkify" the flow so that it collects multiple requests and handles them more elegantly?
Thanks!
-R
I have a custom object that tracks parts on a bill of materials (product parts). I have another object that tracks a simple production forecast for the products (MRP Forecast) - I have built a flow trigger that evaluates the MRP forecast and creates individual requirements records on a 3rd custom object that is Master Detail to the forecast object for each product on the bill of materials for the product specified in the forecast. (Bills of Material can be anywhere from 1 to 200 part numbers)
It works perfectly if I add or edit a forecast in the native salesforce interface - but we have hundreds of products, and each product needs a separate forecast for each month - so I need to be able to upload my forecast records en mass.
I tried an upload of 30 forecast records and it failed on the record insert: "common.exception.ApiException: record limit reached. cannot submit more than 200 records into this call".
Is there anyway I can "bulkify" the flow so that it collects multiple requests and handles them more elegantly?
Thanks!
-R
You can use bulk API option to load data.
Please refer following link for more information ;
https://help.salesforce.com/HTViewHelpDoc?id=loader_configuring_bulk_api.htm&language=en_US
https://help.salesforce.com/help/pdfs/en/salesforce_data_loader.pdf
https://developer.salesforce.com/page/Loading_Large_Data_Sets_with_the_Force.com_Bulk_API
https://help.salesforce.com/HTViewHelpDoc?id=loader_content.htm&language=en_US
Thanks,
Amit Bhardwaj
Thank you for your reply. However, initially loading the data is not my problem. I am very comfortable with the dataloader, and my org does not load enough data to be eligible to turn on the bulk API option.
My problem is that my flow errors out after I have uploaded my forecast data when it is trying to create all the requirements.
The full debug log that shows that it started 31 instances of the flow when I uploaded 31 records and that is what seems to have caused it to fail. and that is what I am trying to consolidate.
Thanks,
Rebecca
caused by element : FlowRecordLookup.Lookup_Account
caused by: Too many SOQL queries: 101
Here is a good group to possibly ask the question if you are not already follwing it.
https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F9300000001rzc&fromEmail=1 (https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F9300000001rzc&fromEmail=1)
As a work around have you tried lowering the batch size in the data loader to say 5 or even 1?
https://help.salesforce.com/apex/HTViewHelpDoc?id=vpm_admin_bulkification.htm&language=en_US