You need to sign in to do that
Don't have an account?
mathews
wildcard with ISPICKVAL
HI All,
Is it possible to use wildcard with ISPICKVAL in a workflow formula field ?
ex. SPICKVAL(TargetX_Events__OrgEvent__r.TargetX_Events__type__c, "%Chat").
if not is there any workaround for this
Thanks
Abey
Okay for that you cannot use the CONTAINS function (at least nor directly). What you'll need to do is create a custom Formula(Text) field.
The Formula(Text) field will be:
Then in your WFR your criteria formula will be something like:
All Answers
Not a true wildcard like * or % but you can use INCLUDES or CONTAINS
.
.
.
.
CONTAINS
This formula checks the content of a custom text field named Product_Type and returns “Parts” for any product with the word “part” in it. Otherwise, it returns “Service.” Note that the values are case sensitive, so if a Product_Type field contains the text “Part” or “PART,” this formula returns “Services.”
INCLUDES
BEGINS
This example returns the text “Medical” if the text in any Product Type custom text field begins with “ICU.” For all other products, it displays “Technical.”
I am trying to use a Picklists value field in a work flow Rule.
Not possible to use wild card at maximum you can do this
Take this example we have a pick list which has three options
Active , InActive and Other and I want to write a formula to check both Active and InActive
This Will give true if selected value is Active or InActive
Hi Abey,
Can you post an example of the WFR Formula as it is currently written? Have you trying changeing it to use INCLUDES or CONTAINS functions like the ones I posted?
Hi Stevemo,
here is the formula .
AND(SPICKVAL(OrgEvent__r.type__c, "Online Chat"),Mode__c =1)
I am looking for something which work as follows
AND(SPICKVAL(OrgEvent__r.type__c, "%Chat%"),Mode__c =1)
Okay for that you cannot use the CONTAINS function (at least nor directly). What you'll need to do is create a custom Formula(Text) field.
The Formula(Text) field will be:
Then in your WFR your criteria formula will be something like:
Hi Abey,
Are you all set with this or do you still need help?
Cheers,
SteveMo
it works.Thanks Stevemo
Abey
That's 2 beers you owe me!!! ;-p
no ,Just 1 beer. You said it's 2 for 1 sale Today :)
**bleep** it!!! ;-p