jongpie / CustomMetadataSaver

Allows saving changes to custom metadata records via Apex and Flow
MIT License
39 stars 5 forks source link

Bulk results not handled #21

Open cadillacben opened 1 year ago

cadillacben commented 1 year ago

To work around the issue of normal people not being able to deploy I have one flow publishing events and another listening for those and doing the deploys. It goes to a middleware first and then back in as an admin user.

What I'm seeing is the below error when salesforce tries to bulkify the multiple incoming events. The number of results does not match the number of interviews that were executed in a single bulk execution request.

The listener flow basically looks like the below screenshot where we're creating the record, assigning to a collection, and updating as if we were in a normal flow.

image