I am trying to submit my AEM Adaptive Forms using Submit to REST endpoint option. I've integrated the form with Adobe Sign Cloud Service and selected generate DoR option for forms. Now, I require to submit the adobe sign issued Agreement Id along with forms data to the Rest Endpoint where I need to store the Id along with forms data into a DB. I am able to read the agreement id using object : "guidelib.runtime.adobeSign.submitData.agreementId" after the dor is shown in Signature Step component. I tried to store this value in a form field but this value is not getting reflected in the submitted data coming to Rest Endpoint but I can see that value has been assigned as I've logged it in browser console before and after submission.
Is there a way to pull agreement Id with form data while submitting to the REST endpoint.
The moment the document is signed the submit action associated with the form is invoked immediately. So I do not think you can pass the agreement id that way. You could capture the agreement id in the summary step and make a REST call to your end point and pass the agreement id