FlowDesigner set updated date of incident back to date before "update" :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2018 07:18 AM
Hi together,
I try to achieve a Workflow(s) with the Flow Designer which does the following:
Check out all Incidents in State : On Hold and Reason: Awaiting Caller where the Updated Date is older then 7 Days.
Then take all of these Incidents and make a additional comment : You didn`t reply since 7 Days .......
The problem is for sure by default the Updated date of the Incident will be reset to the current date.
I don`t want this because i have a second Workflow which checks for Incidents older than 14 Days which should close them den and make a final notice to the Caller.
So for the second workflow i need that the first workflow does not change the updated date.
I tried to set the update date back to it`s initial date via FlowDesigner by saying:
Update the Incident to the Updated date from the Incident:
It seems to work because the Date of the runtime value is older then the date when the flow was running. (For test purposes i said incidents not updated since 2 minutes :))
But it seems that the system afterwards makes an update again 😞
Any idea?
thank you
brgds
- Labels:
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2018 08:39 AM
To do this you need to create your own action, containing a script action (Requires a subscription for integration.)
The action would be like:
The trick is to set autoSysFields to false, to prevent updating the updated DateTime.
Script:
(function execute(inputs, outputs) {
var cnt = 0;
var gr_incidents = inputs.gr_incidents;
while (gr_incidents.next()) {
gr_incidents.work_notes = inputs.message;
gr_incidents.autoSysFields(false);
gr_incidents.update();
cnt++;
}
outputs.recordsUpdated = cnt;
})(inputs, outputs);
The flow it self would then be something like:
Good Luck

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2022 06:35 AM
Hi Arnoud
I'm trying to follow your approach.
I created an action. I call this action from a flow.
Inputs are:
- ritm reference sc_req_item table
- user reference sys_user table
The goal is to populate sc_req_item.requested_for field with inputs.user.
My flow and action has finished without errors, but the record (ritm) isn't updated.
I don't know what I'm doing wrong here.
The flow:
The action:
Can you guide me?
Thanks,
Ariel

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2022 06:38 AM
I tried it again (this version of the action is the current one) and I obtained this error:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2021 03:24 PM
This was perfect. Thx a lot!!! 🙂