- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2019 07:45 AM
I have a checkbox variable in a catalog item, and no matter whether the box is checked or not upon the Order, the value returned if "false".
The code I'm using to retrieve the value is:
workflow.scratchpad.force_change = current.variables.force_change;
where force_change is the name of the variable in the catalog item and the input in the PowerShell activity in the Workflow.
Thanks.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2019 11:16 AM
Okay, figured it out.
In my Activity I had declared the force_change variable as a Boolean. In the workflow, when I told the activity what values I wanted to use, force_change was a checkbox that was unchecked.
When I changed the type of variable of force_change to String, the workflow activity input was a text box and I was able to put workflow.scratchpad.force_change = current.variables.force_change; in there. That worked.
Thanks for your help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2019 07:51 AM
Do you have any client script running against this variable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2019 07:57 AM
No. Just the script in the "Run Script" activity of the Workflow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2019 08:00 AM
Try this??
workflow.scratchpad.for = current.variables.force_change;
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2019 11:16 AM
Okay, figured it out.
In my Activity I had declared the force_change variable as a Boolean. In the workflow, when I told the activity what values I wanted to use, force_change was a checkbox that was unchecked.
When I changed the type of variable of force_change to String, the workflow activity input was a text box and I was able to put workflow.scratchpad.force_change = current.variables.force_change; in there. That worked.
Thanks for your help.