You need to sign in to do that
Don't have an account?
JoeyLen
multiple options for an IF statement
This is such a Newb question but I cannot for the life of me figure it out. I have the following IF statement in a trigger on the opportunity record:
If(o.StageName=='Closed Won'&& o.Type=='EMC - Mobius,EMC - Mobius,Evo,MP Upgrade,Sydekick Doc + AIO,Sydekick Med,Sydekick Med + AIO,Slimline w/ Mobius,Slimline + AIO,Slimline w/ Mobius w/ IN,Mobius Retrofit')
It works fine with one option for Type but when I try to do mutliple options it doesn't work. I have tried separating with, with ; with || and nothing works. How do I edit this so the trigger will fire if the opportunity is closed won and any of the included types?
Thanks.
If(o.StageName=='Closed Won'&& o.Type=='EMC - Mobius,EMC - Mobius,Evo,MP Upgrade,Sydekick Doc + AIO,Sydekick Med,Sydekick Med + AIO,Slimline w/ Mobius,Slimline + AIO,Slimline w/ Mobius w/ IN,Mobius Retrofit')
It works fine with one option for Type but when I try to do mutliple options it doesn't work. I have tried separating with, with ; with || and nothing works. How do I edit this so the trigger will fire if the opportunity is closed won and any of the included types?
Thanks.
In your code you are check the value of by == operator which check the excat value instead of one of them,
Use below code:
All Answers
In your code you are check the value of by == operator which check the excat value instead of one of them,
Use below code: