Create multiple CTASKS based on variable selections in Record Producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-10-2024 01:21 PM
Hello all! I have a requirement to create a Record Producer for the Change Request table that is scripted to create multiple change requests based on the customers choices in one field (in this example, the Tool Selection field). This producer also has a section with checkboxes for certain assignment groups. If the customer checks one of these boxes, a Change Task must be created for each selected assignment group on each Change Record that the Record Producer produces.
Ex: If Tool 1 and Tool 2 are selected, and the Check 1 and Check 2 boxes are selected, this would create 2 change Requests (one for Tool 1 and one for Tool 2) and 4 change tasks (two for Check 1 and Check 2 on the Tool 1 CR and two for Check 1 and Check 2 on the Tool 2 CR).
My only issue is getting the flow to work. I've created a flow with a scripted flow variable to pull the variables from the Record Producer into the flow, but the condition using my scripted flow variable keeps evaluating to False, even if the checkbox was checked on the form. What's wrong with my script that's causing this?
Here are examples of my test Record Producer, my flow and scripted flow variable, and the results I'm getting when the flow runs:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-10-2024 11:42 PM
I didn't check it myself, but doesn't the 'get catalog variables' action work on record producers?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark