REST API Call using Collibra API Task
Summary: Sheila Mae Candado is experiencing a problem with executing a REST API call using the Collibra API Task within the Workflow Designer. When triggering the workflow, a 302 redirect error occurs. They shared their current input setup, which uses a GET request method and a specific request path for fetching activities. Sheila Mae Candado is seeking assistance to resolve this redirection error.
I am trying to do REST API Call using the Collibra API Task in the Workflow Designer. However, when I trigger the workflow, it throws a 302 redirect kind of error.
This is what I have as an input in the Collibra API Task:
Request Method: GET
Request Path: /api/activities?offset=0&limit=50&contextId=${item.id}&categories=ATTRIBUTE&resourceDiscriminators=Attribute&callCountEnabled=false
Response Variabl Name: activitiesResponse
Can someone help we figure out how to resolve the 302 error
George Cheung
·6 months agoHi Sheila Mae Candado,
It looks like you are trying to make a rest call into the same instance that the workflow is running from to retrieve the historical activities.
Since this is a workflow, you can retrieve this information (historical activities from current instance) using the java api inside a script task instead.
There is an example of the ActivityStreamApi (the java equivalent to the activities rest endpoint) in the export history workflows:
https://marketplace.collibra.com/listings/export-domain-history/
https://marketplace.collibra.com/listings/export-asset-history/
Hope this helps