The CreatorCon Call for Content is officially open! Get started here.

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

 

3 REPLIES 3

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

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

Anand2799
Tera Guru

Hi @chiragpathak ,

 

Could you please provide the screenshot of your flow decision action?

How are you passing userid to the decision table?

 

Make sure decision table is published.

 

Thanks

Anand