Copy survey metric input into Incidents using Flow Designer

AdamUMC
Tera Guru

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,

9 REPLIES 9

 

 

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

 

Thank you @Kishor O !

I will be back at Monday and reply a.s.a.p.! Thanks!!

@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!


Elizabeth11
Tera Contributor

Any luck w/ this?

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.