- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2022 11:20 AM
Hi all,
I currently am creating an automated termination flow. What I have so far:
Trigger: "end date" on sys_user record changes
The first thing I added was to set flow variable value to current:
I created the flow variable "End Date" and am using the "end date" field on the triggered user record
I was using this data pill to populate the catalog item variable, however the records return the sys id.
The "class" field on the [cmdb_ci] table is the only one that makes sense for the catalog item question. So I tried to create a loop and set a flow variable to the class name:
And this is the scripted condition I used:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2022 06:19 AM
So, for the change details, you'll only be able to access by doing a for...each loop against "changed Fields" - then you'll have an if to look for the field name for the end date. If it matches, then set your flow variable to the current value of that found entry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2022 06:19 AM
So, for the change details, you'll only be able to access by doing a for...each loop against "changed Fields" - then you'll have an if to look for the field name for the end date. If it matches, then set your flow variable to the current value of that found entry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2022 10:22 AM
Thank you this worked!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2022 08:48 AM
You're welcome!