Sort a WF drop down via API | Community
Skip to main content
Level 3
August 14, 2024
Question

Sort a WF drop down via API

  • August 14, 2024
  • 1 reply
  • 512 views

Hello,

 

We use Issues in a Workfront project to manage values in a drop down for a form.  When someone adds a new issue, we trigger Fusion to add that to the drop down use a custom api call.

The problem that I'm having is that I like the drop downs to be sorted alphabetically and can't figure out how to do that via api call.
Has anyone done this and shed some light on the mystery?

 

thanks.

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
August 15, 2024

Hello,

 

Can you please post a screenshot on how you add new values to the dropdown?

 

I would suggest to think about changing the order in Fusion by putting all values into an array, use the sort() function and write back all values into Workfront.

 

Regards

Lars

lgaertner
Level 9
August 15, 2024

Hi,

 

While researching another topic, I came across the this and this paragraphs in the documentation for External lookup fields.

 

As it is now possible to use Workfront itself as a datasource for this field type, perhaps you can achieve your target without a complex Fusion scenario.

 

With the help of the Workfront API documentation, you can sort your entries alphabetically.

 

 

Perhaps this could be a solution...

 

Regards

Lars