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.

Pass user name in decision table

chiragpathak
Tera Contributor

Hi community,

I was hoping if there is way to pass user_name (string) field from flow to decision table.

I have set trigger on flow which is created or updated by certain AD accounts and in the flow I have called the decision table which is taking the user_name from flow and should be using it as a input and in the decision table I have given condition user ID contain @Example.com and @abc.com and in results I am populating the company and location. After all this happens I have got a update record in flow which should ideally populate the value from the decision table to the user record. But as per the Logs its not fetching the company and location . Please ignore the logs in the flow. I have also tried input as reference but that also did not work is there any other way or how can refine this?

chiragpathak_0-1760073830304.png

chiragpathak_1-1760073907031.png

 

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@chiragpathak 

so when flow runs, what input is passed to decision table?

Did you test the decision table if Contains operator works fine?

💡 If my response helped, please mark it as correct ✔️ and close the thread 🔒 — this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

chiragpathak_1-1760097990892.png

I hope this helps

Ankur Bawiskar
Tera Patron
Tera Patron

@chiragpathak 

It worked fine for me.

Seems you are not passing the correct user_id as input to Decision table from your flow

AnkurBawiskar_1-1760078012010.png

 

AnkurBawiskar_0-1760077993581.png

 

💡 If my response helped, please mark it as correct ✔️ and close the thread 🔒 — this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar,

Yes when I pass the user id while testing the decision table it does work but its not taking user_name which is also a string field when I use the decision table in flow

chiragpathak_0-1760098118598.png