function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Clayto63Clayto63 

error: Picklist fields are only supported in certain functions.

Hi,
I have created a process to get the value of a field (Model - which is of picklist type). This value should then update another field 'Name';
[GTProduct__c].Name =[GTProduct__c].Model__c 

I get the error "Picklist fields are only supported in certain functions."

any help thank you
Khan AnasKhan Anas (Salesforce Developers) 
Hi Ian,

Greetings to you!

Use the formula in the process builder and you need to use the ISPICKVAL function with picklist field. Or try replacing Model__c with TEXT(Model__c) to convert the picklist value into a text value, which can then be compared to the text literal.

Please refer to the below links which might help you further with the above issue.

https://salesforce.stackexchange.com/questions/203205/the-formula-expression-is-invalid-field-case-is-a-picklist-field-picklist-fiel

https://salesforce.stackexchange.com/questions/203149/using-ischangedispickvalstagename-in-process-builder-formula

https://developer.salesforce.com/forums/?id=9060G0000005NiMQAU

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Clayto63Clayto63
Thank you khan. I have tried TEXT but still get the same warning. There is no criteria for the picklist. I want to use the picklist value (whatever it is) and add it to the Name field. thanks. IanUser-added image
Paolo BroggiPaolo Broggi
Hi Ian,

you're almost there!

Just drop the first part in which you write "[GRProduct__c].Name=" because it's wrong, you only need to put in the formula the final value so, in your case, just write "TEXT([GRProduct__c].Model__c)", as you can see in my example screenshot.

User-added image

Let me know if this helped!

Paolo
Clayto63Clayto63
thanks Paolo. Yes it worked but I have to add a character in the name field first as it does not save if null
Paolo BroggiPaolo Broggi
Hi Ian,

yes, this is a standard behaviour, workflows and process builder only fire after you save the record so first you have to put some value in the name field and after that you overwrite it with your new field update.

Paolo
Clayto63Clayto63
ok thank you Paolo