You need to sign in to do that
Don't have an account?

Error: Incorrect parameter type for function 'ISPICKVAL()'. Expected Picklist, received Object
Hello,
This is the validation rule:
ISPICKVAL( $ObjectType.Agreement__c.Fields.Agreement_Motive__c ,'Location Changed'). Where Agreement_Motive__c is a picklist. I am currently working on Opportunity object. Unfortunately, I am faced with this error:
Error: Incorrect parameter type for function 'ISPICKVAL()'. Expected Picklist, received Object.
Could you, please, help me with this issue?
I thank you.
Regards,
Vijay.
Then you can directly use like above right?
All Answers
You can do as Neetu said:
ISPICKVAL(Agreement_Motive__c ,'Location Changed')
Or
TEXT(Agreement_Motive__c) == 'Location Changed'
Please Select this as Best Answer if it helps you.
Hello,
@Hitendar: Yes, Opportunity and Agreement__c are related through the Opportunity_Agreement__c field.
Regards,
Vijay.
Then you can directly use like above right?
Hello,
@Hitendar: It does work. Thanks!!
Kind Regards,
Vijay.