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
GV1GV1 

Unable to identify the error

In my Workflow Rule:

Step 2: Configure Workflow Rule

              Rule Criteria: Run this rule if the following Formula evaluates to true:

 

ISPICKVAL(Referral__r.Referral_Status_n__c, “Create Opportunity”)

 

Error: Syntax error

 

Kindly help me to fix this

Best Answer chosen by Admin (Salesforce Developers) 
MellowRenMellowRen

Hi

 

Assuming this is a direct paste from your system then whatever app/browser you are using has smart quotes turned on. Change the and to " as follows:

 

ISPICKVAL(Referral__r.Referral_Status_n__c, Create Opportunity)

    to:

ISPICKVAL(Referral__r.Referral_Status_n__c, "Create Opportunity")

 If the smart quotes are not present in your real code then I think you'll need to post some more details about your data structure and field types.

 

Regards

MellowRen

All Answers

MellowRenMellowRen

Hi

 

Assuming this is a direct paste from your system then whatever app/browser you are using has smart quotes turned on. Change the and to " as follows:

 

ISPICKVAL(Referral__r.Referral_Status_n__c, Create Opportunity)

    to:

ISPICKVAL(Referral__r.Referral_Status_n__c, "Create Opportunity")

 If the smart quotes are not present in your real code then I think you'll need to post some more details about your data structure and field types.

 

Regards

MellowRen

This was selected as the best answer
GV1GV1

I figured it out on my own. But after wasting 1-2 hours.

Thanks for the reply