I have added two conditions inside a foreach loop but from the logs, it looks like it is only executing the first condition and then the loop exits somehow or I don't know what's going on after that.
Here is my tree that executes on the update issue
Here are my logs
I am not able to find any potential issue in this. I have also tried the second condition with just the value CT79 and without using trim in the first part of the condition but none works. if I put it as first condition, it then works. It looks like the second condition is not checked after the first condition. I am not getting any idea how it goes.
Thanks
Hi Ramshaid,
Yes, the If conditions under a branch are not If/Else conditions so if the first condition fails then the rule will stop.
And you can’t put If/Else conditions under a branch. So maybe try multiple branches with the different condition under each branch.
Thanks, @John Funk, for clarifying the point. Could you please point me to some references on how to use branches? I will be dealing with multiple automation processes, and I don't want to keep asking questions here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just use them are you are doing now. Just add a new branch below the current branch and move the second condition and action down under it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@John Funk Thanks. I got it working.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.