How to Automatically Send Third-Party Contracts to Adobe Sign (IN_PROCESS) Without Manual Authoring

NarasimhaP
Tera Contributor

We are implementing ServiceNow Legal Service Delivery (LSD) integrated with Adobe Acrobat Sign for electronic signatures.

We have two different contract processes:

  1. NDA: The portal provides a Send for Signature button.

  2. Third-Party Contract: The portal provides a Prepare for Signature button.

We are facing an issue with the Third-Party Contract process.

Current behaviour:

When a Third-Party Contract is submitted for signature using the Prepare for Signature action, ServiceNow creates an Adobe Sign agreement in the AUTHORING state.

The agreement does not automatically move to IN_PROCESS (Out for Signature). We have to manually open the agreement in Adobe Authoring, place or configure the signature fields, and send it to the signatories.

What we found during investigation:

The Third-Party Prepare for Signature action calls:

ContractActions.prepareForSignature(contractRequest)

This method updates the contract request status to:

LegalContractUtils.STATUS_PREPARE_FOR_SIGNATURE

The Electronic Signature Core - AdobeSign subflow contains the following State input script:

var documentStatus =
    fd_data.subflow_inputs.contract_request.status + '';

var adobeSignStatus =
    documentStatus == LegalContractUtils.STATUS_PREPARE_FOR_SIGNATURE
        ? 'AUTHORING'
        : 'IN_PROCESS';

return adobeSignStatus;

Based on our investigation, this condition appears to be responsible for setting the Adobe agreement to AUTHORING when the Third-Party Prepare for Signature action is triggered.

We also tested the subflow manually by passing AUTHORING and IN_PROCESS as State values. The corresponding Adobe agreements were created in the expected states.

Expected behaviour:

We want Third-Party Contracts to be automatically created and sent to Adobe Sign in the IN_PROCESS state, without requiring users to manually open Adobe Authoring.

At the same time, we want to preserve the existing NDA electronic signature behaviour.

1 REPLY 1

Sanjay191
Kilo Patron

Hi @NarasimhaP 

Could you please check 

  documentStatus == LegalContractUtils.STATUS_PREPARE_FOR_SIGNATURE
        ? 'AUTHORING'
        : 'IN_PROCESS';
 

Are they matching or not?

Secondly, please check whether any Business Rule or automation is running in the background that includes or updates the State field.
just to confirm how you are placeing the signature by document template or what else ?

Thank you