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.

Flow working on test but not Automated

markdart
Kilo Guru

I created a flow that works when i test but not when it runs in background.

Flow is triggered on contact creation.

It grabs the userid into the variable I then grab that variable and update the email address with adding @email.com.au *not actuall but here for reference.

in both cases on test and Austomation the username is populated into the variable. But in the automated test I dont get any info back into the email variable.

Script running 

var sum = fd_data.flow_var.username + '@email.com.au';
return sum;

 

flowemail2.PNG

flowemail1.PNG

  

1 ACCEPTED SOLUTION

 

ok the stangest thing I was testing some other suggested code which hadnt worked so I put in my original code like I first had tested to get some screenshots and now its working without running as system user or anything else. very Strange 

View solution in original post

10 REPLIES 10

G Ponsekar
Tera Guru

Hi @markdart ,

 

Can you try running the flow as System User

 

Open flow. Go to flow properties -> In Advanced options you will have "Run As" option. change it to System user and Save

 

 

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP

My first automated run it said It didnt have access. I tried System user and contact_admin with the same result no email output

Did you done like this way

Open flow. Go to flow properties -> In Advanced options you will have "Run As" option. change it to System user and Save

yes