Skip to main content
Solved

Expression Builder in Workflow


JTAVOLARO
Skilled Expert
Forum|alt.badge.img+8

I have a service request where I added some checkboxes to the custom fields , and I want to use a workflow to produce tasks based on whether or not the checkboxes are checked.

I found in the expression builder where I can see the custom fields (placeholders, service request, search by service item, etc), but I’m stumped as to how to phrase the expression so that I know if something is checked or not.  Is it Boolean?  Is it a numeric value like -1=checked, 0=unchecked? 

Anyone with suggestions?

Best answer by vishal.abraham

Hey Jim, the return type can be anything, based on the values you configure for True and False outputs.I’ve used string as an output below:

 

 

View original
Did this topic help you find an answer to your question?

6 replies

rashmi.nag
Skilled Expert
Forum|alt.badge.img+9
  • Skilled Expert
  • 300 replies
  • August 18, 2022

Hi Jim! Thanks for your query! @Ammar KB @vishal.abraham might be able to help you with this query.


vishal.abraham
Skilled Expert
Forum|alt.badge.img+3

The best way to check this is to pipe the value of the placeholder into a note to understand the values stored. But you can use ‘true’ to see if it is checked.


JTAVOLARO
Skilled Expert
Forum|alt.badge.img+8
  • Author
  • Skilled Expert
  • 49 replies
  • August 18, 2022

thank you for the replies @rashmi.nag and @vishal.abraham …

so how do I construct this expression?  Is it boolean or string? is it an if statement?

 

Many thanks!


vishal.abraham
Skilled Expert
Forum|alt.badge.img+3
  • Skilled Expert
  • 22 replies
  • Answer
  • August 18, 2022

Hey Jim, the return type can be anything, based on the values you configure for True and False outputs.I’ve used string as an output below:

 

 


JTAVOLARO
Skilled Expert
Forum|alt.badge.img+8
  • Author
  • Skilled Expert
  • 49 replies
  • August 18, 2022

thank you so much @vishal.abraham , this is what I needed….

Cheers!

 


stellarhomes
Forum|alt.badge.img+2

Workflow designers can use the expression builder node to help meet these advanced automation requirements by performing operations like adding numbers together, replacing a portion of a text string, comparing strings, and manipulating date/date-time fields.


Reply