Search This Blog

Breaking

Wednesday, 15 September 2021

[Workfront] -> Workfront API to retrieve task/request/project field and custom form values

 This post is in continuation of my last worlfront post. So after creating request, the next operation is to validate that with whatever field values, we have created the request, same is reflecting there or not. The same validtaion, we need to perform after converting this request to project as well. 

So to perform both these validations, we need to fetch the field values from API response. Below are the end points which can be sued for fetching the parameter values from a request/task:















Method: Get

Path: /attask/api/v9.0/optask

Params: action: generateApiKey

Param: apiKey: apikeyvalue

Param: ID: requestid

Param: fields:parameterValues


Similarly, if we need to fetch field values from project, then we need to replace ID with projectID, though end point will change.




Method: Get

Path: /attask/api/v9.0/project/search

Params: action: generateApiKey

Param: apiKey: apikeyvalue

Param: ID: projectID

Param: fields:parameterValues


Similarly, if you want to fetch the custom form names for a project, you can get it with below details:



Method: Get

Path: /attask/api/v9.0/PROJ/search

Params: action: generateApiKey

Param: apiKey: apikeyvalue

Param: ID: projectID

Param: fields:objectCategories:category:name


This will give all the custom form name for the project.



No comments:

Post a Comment