Skip to main content
Nintex Community Menu Bar
// DocumentNOW V2 UpdateSignatory example  // force TLS 1.2 if .net < 4.6 ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; 	 Guid accountContextID = new Guid(<fromYourAccount>); Guid documentID = new Guid(<savedFromYourSubmission>); Guid authToken = new Guid(<savedFromYourSubmission>);  // assuming we set the namespace on the service proxy to DocNow ... DocNow.UpdateSignatoryServiceClient client = new DocNow.UpdateSignatoryServiceClient(); DocNow.SignatoryUpdateRequest request = new DocNow.SignatoryUpdateRequest();  request.Id = documentID;             request.AuthToken = authToken; request.ContextIdentifier = accountContextID; // need to specify an ID, an email address, or a mobile phone number to match up request.SignatoryEmail = "oldsigner@mydomain.com";  request.ResendLastEmail = true; // pass in new settings here request.UpdatedSignatoryInfo = new DocNow.SignatoryInfo1(); request.UpdatedSignatoryInfo.FullName = "New Signer"; request.UpdatedSignatoryInfo.EmailAddress = "newsigner@mydomain.com";  DocNow.SignatoryUpdateResult[] updateresults = client.UpdateSignatory(new DocNow.SignatoryUpdateRequest[]{ request});  if (updateresults.Length > 0) {     if (updateresults[0].Exceptions != null)     {         StringBuilder sb = new StringBuilder();         foreach (DocNow.SignatoryUpdateException exception in updateresults[0].Exceptions)         {             sb.AppendFormat("{0} : {1}{2}", exception.Severity.ToString(), exception.Value, Environment.NewLine);         }         Console.WriteLine(sb.ToString());     }     else     {         Console.WriteLine(updateresults[0].Success);     } }
Be the first to reply!

Reply