Retrieving custom forms from project issues via API | Community
Skip to main content
nicks8145012
Level 2
October 7, 2019
Question

Retrieving custom forms from project issues via API

  • October 7, 2019
  • 5 replies
  • 1398 views
Hey all - I'm working on a small, custom app that will use the Workfront API to help automate certain recurring tasks for my job. I've got a project set up as an issues queue and created a custom form to capture all the info I need, but am having trouble getting the API to return the custom form data. I don't see any mention of custom forms in the API explorer, is this even possible? Nick Scardino Rosco Laboratories, Inc.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

Level 10
October 7, 2019
I'm not familiar with API at all, but notice that a lot of it is similar to reporting. In reporting, the custom form is located using "category" so the same might be true via the API. -skye
October 7, 2019
You should be able to get any custom field on the object with DE:Field Name So on a user object: {{URL}}/attask/api/v9.0/USER/search? DE:Manager Hierarchy= Sullenberger&DE:Manager Hierarchy_Mod = cicontains &apiKey={{APIKEY}} Melinda Layten Technical Project Manager - API and Integration Workfront
nicks8145012
Level 2
October 7, 2019
Thanks for the info Melinda, but I'm a little confused by the terminology. Is a custom field the same as a custom form, or are custom fields the inputs used in a custom form? Where would I find the custom form's custom field name? Nick Scardino Rosco Laboratories, Inc.
October 7, 2019
Custom forms (categories) contain custom fields (parameters). Categories and Parameters are what you will find in the API. DE: stands for Data Element and is the shortcut to refer to custom fields on a data object such as User, Project, Task, etc. If you set a custom field via a report in the UI it auto-attaches the first custom form that it finds with that field. If you set a custom field via the API and no custom forms are attached with that field, the value isn't saved at all. Category (custom form) used to be limited to one per object, but you may now have multiple forms on an object. But no matter how many times a field appears on multiple forms on the same object it can only have one value for the object. Usually you report or filter based on the values of the fields, but the forms must be attached for the fields to be saved.
nicks8145012
Level 2
October 8, 2019
Great, thanks. I also see there's a ' parameterValues' field that returns everything which is exactly what I'm looking for. Nick Scardino Rosco Laboratories, Inc.