Expand my Community achievements bar.

The next phase for Workfront Community ideas is coming soon. Learn all about it in our blog!

Read Documents ID from Submitted Issues / Requests

Avatar

Level 3

Hi, 

 

We have an existing scenario that uses webhook to look at submitted issues under a specific project ID. We are using that scenario to create projects based on the request needs. 

 

Right now we would like to add another modules to be able to read documents attached to the submitted issue and then upload the documents into the projects to be created. Though we are running into some errors when it comes to read documents from issue module. 

 

This is the webhook we are using to look for submitted issues: 

ArthurChalamet_0-1709637299533.pngArthurChalamet_1-1709637350637.png

 

This is the read record module setup we use to look at documents attached into the submitted issues: 

ArthurChalamet_2-1709637430373.png

 

This is the error we received from read a record module above: 

ArthurChalamet_3-1709637505182.png

 

For some reason, the module was looking for document ID with the issue ID provided. Does anyone knows how can we modify our scenario for this needs?

 

All help is greatly appreciated. Thank you!

 

Regards, 

Arthur

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Level 5

The ID from the event that's triggering (Issue type) isn't the Document ID.  You'll want to get a list of the documents attached to that issue.

Older documentation, but still holds up:

https://developer.workfront.com/documents.html#get-/docu/metadata

Note the issueID on the DOCU object.  You can do a Document "search" filtering on the issueID field matching the {{newstate.ID}} value from your event.