I'm trying to submit a boolean value as an Action input, in the following scenario:
Based on a boolean value in the flow, I request an input (if bool == true) as either 1 or 0, or I default it to 0 if the initial boolean is false.
In the action, I need to submit the 2nd value also as a boolean, but I'm not sure how to convert it.
The formula should be something like
If(originalBool == true AND input == 1, true; else false)
which I tried to write out as
IF(Flow.HasWastelines == true AND Task.Wastelines == "1", true, false)
where Flow.HasWastelines is the value retrieved from Salesforce, and Task.Wastelines is the data input we requested from the caller, or defaulted to 0. (The If() statement shows an error if the 1 is not in quotes.)
I also want to confirm the entry back to the caller, if it was requested -- it looks like ToAudioBool(theBoolean) is how to do that, but the first hurdle is creating the result.
If the input is captured in Task.Wastelines, do I use Set Participant Data to set Flow.Wastelines, or rather Flow.NeedsWastelines using a formula, or do I define it on the fly? Since I want to use it both as an audio prompt and as an Action input, it would be convenient to store it in a Flow variable.