I am using execute script action to interact with objects on my website. However this requires data from workflow so that execute script action can work properly with required business. Please help me
it’s a little tricky, but doable.
Create a string variable of type string. Let’s call it script.
use Assign
activity to set the script you want to execute, and then you can “inject” variables into the script.
Say you have a boolean variable named “showit” in your workflow, for hiding or showing an element, you could do this
"const showit = '" & showit & "'.toLowerCase();" & VbCrLf & _
"let element = document.getElementById('NextInvoice');" & VbCrLf & _
"if (showit var=== 'true') element.style.display = 'block';" & VbCrLf & _
"if (showit === 'false') element.style.display = 'none';" & VbCrLf
Now you can set “Script” property of Execute Script
to use the script variable.
you can see an “extreme” example of that here.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.