Error when batch creating Adobe Sign Agreements in Salesforce using Document Builder template
Hello!
We have created an Agreement Template using Document Builder and we're attempting to then use the Batch Agreements feature to send.
It works when there is only one record based on the query, but when there is more than one record that meets the criteria, the Apex job fails and shows this message:
"First error: Document Builder:You have uncommitted work pending. Please commit or rollback before calling out".
I googled that and none of the results that I found were specific to Document Builder/Adobe Sign - and to be honest, that level of coding is above my head.
Prior to this "real" attempt, I did try this with a v simple template and it worked to create the batch with more than one record. So, I suspect that some level of additional complexity in the template is creating the issue.
Does anyone have any insight on how I could troubleshoot this without learning Apex overnight?
Happy to share any screenshots that may help.
Thank you so much,
erin
