Skip to main content
Participating Frequently
Sep 9, 2021 3:55 PM UTC
Question

Extracting multiple widget IDs with API

I have several different templates that are used to create agreement forms. When they're returned I use an API call to the Widget ID to extract the form data. Unfortunately when there is an agreement returned for a template that already has an agreement returned Adobe Sign groups them together. Even though they'll have separate agreement IDs when I go to extract the information with my Widget ID it gets the very first agreement, whereas I need the last (most current). I'm asking my support team to set it up so that the forms are separated but is there a way I can 1) get multiple Widget IDs and 2) tell which one is the most recent one?

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Adobe Employee
Sep 10, 2021 9:24 AM UTC

It may be helpful to understand how webform/widgets work. 

When a webform is created, what you have is the parent Webform. This parent webform in the API will have a WidgetID (you should be able to get htis ID by opening/viewing the webform and grabbing the ID from the address bar.

 

When someone goes to the webform and signs it, sign creates a child agreement from this parent, which has it's own AgreementID.

 

You can use the parent WidgetID with this method:

get /widgets/{widgetId}/agreements

this will return all fully signed child agreements created from this webform.

 

Note that templae forms and widget/webforms are different things in Sign. You can use a template to create a webform, but then to track any signing data, query the webform as above and not the tempalte/ libraryid

 

Translate
Participating Frequently
Sep 12, 2021 8:15 PM UTC

It appears that I'm using the correct widget ID to my form but when I try to use that Widget ID to "read" the form it returns the first form ever created from that agreement template. I'm lost as to what to do here.

Translate
Adobe Employee
Sep 13, 2021 10:04 AM UTC

Can you share a widgetID, feel free to message me it.

Translate