Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Modify ProForma Question (Data Connection) returned value

Peter Ries September 13, 2023

Hi,

 

we have set up a dropdown field in ProForma referring to a DataConnection getting data from an API. 

 

we have data like this

{

   { id: 123, label: "abc"},

   { id 345, label: "def"}

}

where the label attributes are being displayed to the user.

 

How can we make proforma store/return the id as well in the answer. In processing backend we would need the id, not the user readable string.

 

Or as a workaround: can we somehow concatenate values from the API returned JSON to be displayed in the Label for the user.

1 answer

0 votes
Giedrius Daugmaudis September 15, 2023

The way I see it, 2 options:

  • Creating REST endpoint, that concentrates values and displays them in your desired format.
    Endpoint takes the data base link, then use endpoint link in the data connection. Screenshot 2023-09-15 104423.png
  • After submit, run answers endpoint and replace found values with automation/workflow script.

Option 2 likely more finicky.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, team ’25 europe, early bird extension, conference discount, barcelona, hybrid event, AI teamwork, early bird pass, digital access, collaboration conference, atlassian events, register now, developer conference

1 week left to save on your Team '25 Europe pass

Still thinking about joining us for Team '25 Europe? Early bird has been extended for just one week! Now’s the time to lock in your lowest rate. Use code TEU25COMM-20 to save 20% at checkout. Hurry, this only lasts for 1 more week.

Learn more
AUG Leaders

Atlassian Community Events