I am trying to create an api call to get all the custom forms a field is used on. | Community
Skip to main content
LaurensKr1
Level 2
July 15, 2024
Question

I am trying to create an api call to get all the custom forms a field is used on.

  • July 15, 2024
  • 1 reply
  • 1377 views

If I read a field (parameter) ID or name in, find the custom forms it is used on. Once I find the form ID, I would like to use the parameter ID and ctgy ID to remove the parameter from the form. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

lgaertner
Level 9
July 16, 2024

Hi,

 

to get the custom forms (categories) a field is used in, you can use the following GET query:

https://<instance>.my.workfront.com/attask/api-internal/CTGY/search?categoryParameters&parameterID=<customFieldID>

 

In the Workfront API the custom fields are called categories, using the endpoint CTGY and the custom fields are parameters.

 

 

Concerning removing a parameter from a form, I do not have an idea at the moment...

 

 

Regards

Lars

 

 

LaurensKr1
Level 2
July 16, 2024

Thank you. It seems very close, but I am getting an 'Unprocessable Entity'.

lgaertner
Level 9
July 16, 2024

Can you send a screenshot of your setup?