Hello Community!
I want to update the attribute in CLM with the pending signatory or signatories. At wait for signature step getting the updated audit logs.
Example: There are 4 signers for the agreement. Initially, I can update the status to show that the signature is pending from all 4. However, if the first signer signs the contract, I want the attribute to be updated, indicating that the signature is still pending from the remaining 3 signers and same will continue.
Thanks in advance!
Update the Next Signatory in CLM Attribute: To who signature is pending
Best answer by Pawan Gangwani
Hello CLM Community!
I Build one way around to achieve this requirement. In the wait for signature step, I take path of “updated” and route to “Update variable step”. Where I store all “RecipientEmails" and the “RecipientSignedEmails” values from the “AuditXML” which I sorted in “Wait for Signature” step. then create variable named “pendingSigners” and use the c# to compare both of them.

Here is the C# code:
var a = GetVariableValue("RecipientEmail");
var b = GetVariableValue("RecipientSignedEmail");
var emails = a.Split(',');
var signedEmails = b.Split(',');
// Convert all emails to lowercase and trim spaces
for (int i = 0; i < emails.Length; i++)
{
emails[i] = emails[i].Trim().ToLower();
}
for (int i = 0; i < signedEmails.Length; i++)
{
signedEmails[i] = signedEmails[i].Trim().ToLower();
}
// Manually filter out signed emails
var result = "";
for (int i = 0; i < emails.Length; i++)
{
bool isSigned = false;
// Check if the current email exists in signedEmails
for (int j = 0; j < signedEmails.Length; j++)
{
if (emails[i] == signedEmails[j])
{
isSigned = true;
break;
}
}
// If email is not in signedEmails, add it to result
if (!isSigned)
{
if (result != "")
{
result += ",";
}
result += emails[i];
}
}
// Return the final filtered list
return result;
Reply
Sign up
Already have an account? Login
You can login or register as either a Docusign customer or developer. If you don’t already have a Docusign customer or developer account, you can create one for free when registering.
Customer Login/Registration Developer Login/RegistrationJoin the Docusign Community by logging in with your Docusign developer or customer account credentials.
Don’t have an account? You can create a free one when registering.
Note: Partner-specific logins are not available yet. Partners should log in as either a customer or developer
Docusign Community
You can login or register as either a Docusign customer or developer. If you don’t already have a Docusign customer or developer account, you can create one for free when registering.
Customer Login/Registration Developer Login/RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.