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

Decision table is not reading the entire string when I use 'contains' in the condition

poorva1
Tera Contributor

Hi everyone,

I am using Decision table in a flow designer to set the assignment group and subcategory based on the mailbox address. The mailbox has multiple addresses and hence I am using the 'contains' when I am building the condition in the decision table. 

When I use the “contains” condition in a Decision Table (for example: checking if a string or list contains a certain value), it only matches when the value appears first in the string or comma-separated list and is not giving any output if the string does not appear first. 

 

Has anybody run into this issue before? Does anybody have any pointers for me to try?

 

Thanks in advance.

 

 

 

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

@poorva1 

share screenshots please

 

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

Hi @Ankur Bawiskar ,

Please find the screenshots. I have tried to hide some information. 

This is the decision table, where I have used the 'contains' condition to get the mailbox value and set the fields accordingly. 

poorva1_3-1760587127525.png

 

 

In this screenshot, since the mailbox id is not the first value of string, it's not populating the country, assignment group and sub - category.

poorva1_1-1760586678524.png

 

In this screenshot, since the mailbox id is the first value of string, so it is populating the country, assignment group and sub - category.

poorva1_2-1760586882055.png

 

Thanks,

Poorva

 

@poorva1 

did you Test decision table and it worked? 

💡 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

@poorva1 

it worked fine for me when I tested, seems the value is not getting passed properly in your case from flow to decision table

AnkurBawiskar_0-1760589835713.png

 

AnkurBawiskar_1-1760589849056.pngAnkurBawiskar_2-1760589882022.png

 

AnkurBawiskar_3-1760589894265.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