Referencing Assessments on Validation Rule for OpportunityObject — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Referencing Assessments on Validation Rule for OpportunityObject

in Sales 7 comments

Trying to create a Groovy Script for a Validation Rule on the Opportunity Object. Essentially stating:

if(OpportunityType_c == 'NEWANNUITYACCOUNT' && Revenue >= 100000 && WinProb >= 75.00 && StatusCode == 'Open')

AND

Related Assessment doesn't exist or is not completed, there's an error message requesting Sales Rep to complete an Assessment.

Even though I see the Assessment fields on the "Fields" section of the Expression Palette, I can't reference any of the fields even when putting "AssessmentsVO?. [FIELD NAME]".

I understand there could be multiple Assessments templates but in our UI, there could only be 1 assessment per opportunity. Can you please help us figure this out?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!