APIs & Integrations

KvanStaveren
Member

Workflow field that supports both STATIC_VALUE and OBJECT_PROPERTY?

SOLVE

We have a custom workflow in our app but want to give the user about what the content is. It could a static value or an object property

0 Upvotes
1 Accepted solution
AnzeKoprivec
Solution
Member

Workflow field that supports both STATIC_VALUE and OBJECT_PROPERTY?

SOLVE

Hey @KvanStaveren ,

Unfortinuetly having both on 1 field is not possible but the solution for you here would be to have an endpoint generated response.

In the custom workflow actions documentation you can see that you can define an endpoint where the action can fetch its results for a field and display it via a dropdown.

With that you could controll the narative of dispalying either static values or object values by dynamicly populating the dropdown values on the fetch (since all the needed info gets passed in the body of the request - viable in the documentation)

A possible alternative would also be to have a radio select above, which would let the user pick between a static/dynamic option and then render out the next field dynamicly but you'd then need to handle this via a switch statement in your app to pick out the correct value.


Hope this helps,
Anze

 


If my post helped answer your query, please consider marking it as a solution.

View solution in original post

0 Upvotes
1 Reply 1
AnzeKoprivec
Solution
Member

Workflow field that supports both STATIC_VALUE and OBJECT_PROPERTY?

SOLVE

Hey @KvanStaveren ,

Unfortinuetly having both on 1 field is not possible but the solution for you here would be to have an endpoint generated response.

In the custom workflow actions documentation you can see that you can define an endpoint where the action can fetch its results for a field and display it via a dropdown.

With that you could controll the narative of dispalying either static values or object values by dynamicly populating the dropdown values on the fetch (since all the needed info gets passed in the body of the request - viable in the documentation)

A possible alternative would also be to have a radio select above, which would let the user pick between a static/dynamic option and then render out the next field dynamicly but you'd then need to handle this via a switch statement in your app to pick out the correct value.


Hope this helps,
Anze

 


If my post helped answer your query, please consider marking it as a solution.

0 Upvotes