Copy survey metric input into Incidents using Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 06:56 AM
Hi there,
I have a survey with a string- type field (multiline), called "Remarks". Survey contestants can write down their remarks in this field. Now I want to copy that input into an Incident by using Flow Designer.
I have tried several solutions, but nothing seems to work. The Data pill section seems not to contain a data pill for this field type / metric, and it's string value.
How can I achieve this? Is it even possible with usage of the Flow Designer and without using any scripts?
Thanks in advance and best regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 07:34 AM - edited 02-15-2024 07:36 AM
Business rule
Table: asmt_metric_result
After insert
Metric type is {your survey defination }
var incr= new GlideRecord('incident'):
incr.addQuery('sys_id',current.instance.task);
incr.Query();
if(incr.next()){
incr.discription=current.string_value;
incr.update();
}
@AdamUMC Try the above script and let me know if there is any issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 07:39 AM
Thank you @Kishor O !
I will be back at Monday and reply a.s.a.p.! Thanks!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2024 05:45 AM - edited 02-21-2024 05:45 AM
@Kishor O:
Thank you for this script. I'm now trying to implement it.
Can you please explain in short what this script exactly does? If i'm correct, it;
1.) Creates a new Incident after insert of a assessment metric (asmt_metric) with a string value.
2.) Puts the current string value of the above mentioned assessment metric into the description.
Is this correct? Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2024 08:07 AM
Any luck w/ this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:46 AM - edited 07-03-2024 01:48 AM
Unfortunately not.
If you want to achieve this, you will need to use a Business Rule and Javascript.
For Javascript rookies like me, impossible to achieve. You can use the example script as shown here above, but only as long as you know what you are doing/what script exactly does.