Salesforce Sandbox Error: Attempt to de-reference a null object
I have made an apex trigger within Salesforce that creates an Agreement when a new account is created but I am unable to make it automatically send for signature. I receive the following error under Document Cloud Actions: Attempt to de-reference a null object
Once clicking Send for Signature the agreement sends to the correct email. How can I fix this error to allow the agreement to send via Apex Trigger.
The Agreement Template that I use has the field Auto Send checked and under "Map Data into Agreement Fields" the target agreement field - Background_Action__c has a target field value of "Send".
