Skip to main content
Nintex Community Menu Bar

CloseEnvelope - C#

  • January 11, 2022
  • 0 replies
  • 10 views
  • Translate

butlerj
Nintex Employee
Forum|alt.badge.img+20
// DocumentNOW V2 CloseEnvelope example  // force TLS 1.2 if .net < 4.6 ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; 	 Guid accountContextID = new Guid(<fromYourAccount>); // see CreateEnvelope Guid envelopeId = new Guid(<fromCreateEnvelope>);  Guid authToken = new Guid(<fromCreateEnvelope>);  // assuming we set the namespace on the service proxy to DocNow ... DocNow.EnvelopeServiceClient client = new DocNow.EnvelopeServiceClient("BasicHttpBinding_IEnvelopeService1"); DocNow.CloseEnvelopeRequest request = new DocNow.CloseEnvelopeRequest();  request.ContextIdentifier = accountContextID; request.EnvelopeId = envelopeId request.AuthToken = authToken;  DocNow.CloseEnvelopeResult result = client.CloseEnvelope(request);  if (result.Exceptions != null) {     StringBuilder sb = new StringBuilder();     foreach (DocNow.EnvelopeException exception in result.Exceptions)     {         sb.AppendFormat("{0} : {1}{2}", exception.Severity.ToString(), exception.Value, Environment.NewLine);     }     Console.WriteLine(sb.ToString()); } else {     // the result will return back result.EnvelopeId as confirmation }  
Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings