Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Set reference field value from flow designer action

Renu9
Tera Contributor

Hi All,

I am having a sample change requests field (list type) in table A. When the record on table A gets closed, I am triggering a change task to create. I need to populate change request (reference field) value with the values from the sample change requests in table A. As its  a list type, I need to display any one of the sample change request from the list.

Please find the screenshot below. I am getting the sys id of the change request but its not getting set to the change request field on change task. Kindly suggest any changes

find_real_file.png

16 REPLIES 16

hi @Mohit Kaushik sir my requirement is almost same but the difference is i want to create change task using change request (i mean i have a number field in change request table so get the value and set it to change_task table the field name is change request and also it is type of a reference ).

please help me

Hi @Aman66,

If you are using Flow designer, then it is very easy. You have to choose the correct flow action. I think create task. There is no scripting required for this. Just set the field value from the data pill picker as shown below:

 

MohitKaushik_0-1668519574427.png

 

MohitKaushik_1-1668519631749.png

MohitKaushik_2-1668519697783.png

 

After this you should be able to see your change_request field should be filled in change_task table.

 

 

 

 

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

hi @Mohit Kaushik sir first i have created change request than i have create a change task .and also i have do that same thing but flow is running fine it is show complete but the change task should not be create . in under the Requested item

Hi @Aman66, can you share what you have done so far, and where you are stuck. Some screenshots should be fine. I am not able to understand the query here.

 

 

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

  • Screenshot (8).pngScreenshot (9).png