Follow

UpdateSignatory - C#

Last updated 2017-08-15 13:51:45 UTC

// 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); } }
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.