Is it possible to use startswith condition in if block in flow designer

jitusingh
Tera Contributor

Hi Everyone,

 

I have  custom table ''Hardware Models' . I am doing integration with external system. I am stuck where I need to put if condition after lookup records action.

 

Flows Steps:-

1. Lookup Hardware models records where Active=true

2. For each item in Hardware Models.

3. if Model Number Field value startswith 'RT' where Field is a string field
4. Then call the integration action else it will call otherwise it will create a new record

I don't understand how should i put the startswith condition in if?

Thanks in Advance.

2 REPLIES 2

Chaitanya ILCR
Kilo Patron

Hi @jitusingh ,

try this approach

apply a transform function on the model number field (string -> startswith) and in the if condition select is as a operator and in the value add "true"

ChaitanyaILCR_0-1742566351180.png

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

Hi Chaitanya,

Thanks for your help. The above solution works for adding starts with condition in flow designer.
Steps to follow are:
1. Select the flow logic as "if".
2. Then select the value of the field which you want to check the starts with by dot.walking
3. Then click on symbol with circle "fx".
4. Then select string from drop select followed by starts with and then add the value in String field which we want to use as starts with . ex String Value starts with "p"
5. Then click on apply.
6. Select the operator as "is"
7. Add value as "true".
8. The filter is applied using condition builder using if block value starts with and if the value matching is found the result will be true or else it will not execute the block.

Thanks,
Ajay Game.