Expand my Community achievements bar.

Setting a dropdown custom field via API by providing the POPT ID

Avatar

Level 4

Hi All,

when I create / update a Workfront record via the WF API, I am expected to set the values of custom fields. I wonder what is the best practice method for populating drop-down custom fields.

I know that I can populate the field by providing the "value" of the custom field option, for example:

{
"DE:.Region": "Global"
}

But then, if the value of the parameter option should change in the future, my integration would fail.

Is it possible somehow to populate the custom field by providing the ID of the desired Parameter option (instead its value) to the API?

Thank you,

Tibor

 

Topics

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

2 Replies

Avatar

Level 4

@tibormolnar, for dropdown fields, there is a label and a corresponding value. You can see these by checking the Show Value checkbox: 

Screenshot 2025-10-09 at 15.59.01.png

 

 

When using the API, you are actually setting the Value. When updates are made to the label, the value can remain unchanged. The values are generally kept the same, but you can change the value to an arbitrary ID; however, keeping up with the mapping will be a pain. 

Avatar

Level 4

All this is clear, @SuryaLakhani, but that's not what I'm asking.

I wonder if I can use the POPT ID instead of the value (or label) when updating a record (e.g. a project).

Here's an illustration of what I mean. Can I populate the country field by using the yellow highlighted ID instead of the red value.

tibormolnar_0-1760354906731.png