Skip to main content
Participant
June 10, 2020
Answered

Get Etag value

  • June 10, 2020
  • 2 replies
  • 1287 views

I an using Adobe Sign's SDK in C# to create an agreement.

I have done the following so far.

  1. Created a transient document using the document that I want participants to sign.
  2. I created an agreement in Autoriing state with participants and got an agreement id.
  3. Retrieved the participant id/member id using the API GetAllMembers from the SDK.
  4. I now want to update the form fields to the agreement. I have created the FormFieldPutInf object with all the form field details but am not able to execute the API UpdateAgreement.
  5. I am getting an error stating "Resource Modified - Resouce is already modified with newer version".
  6. I understand that I need to pass in ETag value in the API. I tried passing the date time stamp but it does not seem to be working.
  7. According to your documentation, I should be able to get the ETag information when I create an agreement or get member details.
  8. With C# SDK, I am not able to get the ETag value.

Please advise.

Thanks,

Minal

This topic has been closed for replies.
Correct answer Jiri Darmovzal

You have to use the *WithHttpInfo methods (e.g.: CreateAgreementWithHttpInfo), which return complete response headers. Then you can get ETag value from Headers property (e.g.: agreementCreationResponse.Headers["ETag"]).

2 replies

Jiri Darmovzal
Jiri DarmovzalCorrect answer
Participant
October 15, 2021

You have to use the *WithHttpInfo methods (e.g.: CreateAgreementWithHttpInfo), which return complete response headers. Then you can get ETag value from Headers property (e.g.: agreementCreationResponse.Headers["ETag"]).

MinalSAuthor
Participant
June 16, 2020

I found an answer to this qusetion. We need to make the same call with GET to  get the ETAG value and use the same ETAG value in the PUT call. In my case, I needed to make a called to PUT the form fields to the agreement so I first needed to make a GET call to get the form fields. ETAG value is embedded in the headers. The SDK does not have any method to get this value from the header. I needed to make a call to the RESTful API directly and get the value from the header.

moto_geek123
Participant
July 7, 2020

I am having this same problem with

 

PUT Members/PartSets/Partipants/Reject

 

Happen to know the GET method to get ETag for PUT Reject, I notice each method returns something different. i tried to

 

GET Members.., but didn't work.. 😞