Salesforce Accredited Agentforce 360 for Public Sector Professional AP-222 Question # 21 Topic 3 Discussion
AP-222 Exam Topic 3 Question 21 Discussion:
Question #: 21
Topic #: 3
A government agency has implemented an eSignature solution and has chosen DocuSign as the vendor. As part of the non-functional requirements, the system needs to poll the status of signed envelopes.
What is the best way to achieve this requirement?
A.
Use the ContractDocumentStatusScheduler Apex class to schedule and poll DocuSign for statuses of envelopes submitted as part of the eSignature process.
B.
Use the ContractEnvelopeStatusScheduler Apex class to schedule and poll DocuSign for statuses of envelopes submitted as part of the eSignature process.
C.
Use the ContractStatusScheduler Apex class to schedule and poll DocuSign for statuses of envelopes submitted as part of the eSignature process.
D.
Use the REST API provided by DocuSign to poll the status of a particular envelope.
Salesforce provides the ContractEnvelopeStatusScheduler Apex class specifically for polling DocuSign envelope statuses in the supported eSignature integration. Salesforce documentation explicitly states that this class can be scheduled to poll DocuSign for envelopes submitted through the eSignature process.
The scheduled job queries envelope status and updates Salesforce so contract and document records reflect states such as sent, completed, or voided. Salesforce notes that when scheduled through the Salesforce UI, the job can run hourly. It can also be scheduled through Apex at shorter intervals, subject to DocuSign ' s minimum polling interval requirements. DocuSign requires at least 15 minutes between successive polling calls. Salesforce ' s recent support guidance also confirms that ContractEnvelopeStatusScheduler remains the scheduled job responsible for retrieving envelope-state updates and discusses asynchronous handling when many envelopes require updates simultaneously. Using Salesforce ' s provided scheduler is preferable to building a separate REST polling implementation because it follows the supported Industries/DocuSign integration architecture. The other scheduler class names do not correspond to the documented component.
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit