Issue in flow design
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi All,
I have created a field in a Catalog Item and configured a UI Policy so that the field is visible only on the Catalog Task (sc_task) form and not on the RITM or REQ forms.
My requirement is that when a user selects a value in this field on the Catalog Task, another Catalog Task should be created automatically based on the selected choice value.
However, I am facing an issue where I am unable to fetch the field value in Flow Designer. Since the field is available on the Catalog Task, I would like to know the best approach to access this field value in the flow and use it to create another task.
Could you please suggest how to fetch the Catalog Task field value in Flow Designer and use it in a condition for creating a subsequent task?
Thanks and Regards,
Veeresh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
share screenshot if it's field or variable on SC Task form?
Because field and variable both are different
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi,
That issue almost got solved, but the other one is I have attached the screenshot if you see that first line 43 will execute late line 45 will execute right, here the requirement is whatever the values that I entered in the line 43 catalog the same values are not carry forward to the line 45 catalog,
ex: if I select pc type as seccondary pc in line 43 catalog, when line 45 catalog created the pc type value should already reflect it should not again to select in line 45 task.
how to fix this issue, if possible provide the steps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
so you are saying the same value for that variable should reflect in another catalog task created at step 45?
what's happening now? share screenshots by expanding that flow step
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @ChittemVeer
To fix this issue:
Enable Wait on Line 43: Open line 43 (Create Catalog Task) and make sure Wait for Completion is checked so the flow pauses until the task is closed.
Add "Get Catalog Variables" Action: Insert a new Get Catalog Variables action right after line 43. In the Submitted Item / Task field, select the task record pill from Step 43 (not the RITM).
Update Conditions (Lines 45 & 50): Change the conditions on lines 45 and 50 to compare the pc_type variable pill from your new Get Catalog Variables step instead of Step 1.
This helps other users find accurate and useful information more easily
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
hi @ChittemVeer ,
The problem is that the field is on sc_task, which means that you shouldn't attempt to obtain it from the RITM catalog variables directly.
In Flow Designer, start the flow using the Catalog Task record and set the Catalog Task record as the source. In this way, you will be able to access your custom field directly from the trigger data.
For example: Set up a Record Trigger for the Catalog Task [sc_task].
State the condition for the relevant task/catalog item.
Choose your custom field from the trigger record.
Include an If condition depending on the value of that field.
Use Create Record with the selected value to set up the next Catalog Task.
If the field is in fact a catalog variable not a real field on sc_task, then a different approach is required—thed value of the variable has to be obtained from the RITM/variable data.
