CRM On Demand - Administration (MOSC)

MOSC Banner

Need help with the Field Validation syntax

edited Nov 20, 2014 10:02AM in CRM On Demand - Administration (MOSC) 1 commentAnswered

Hi,

We have the following field validation in place on one of the Custom date fields in Opportunity objects. This validation checks for certain sales stage ID and date and then if true throws an error. This is happening for all the records no. But now we have a requirement where we have to exclude a certain group of records for this validation..for example if the [<IndexedPick0>]='ABC' then it should ignore this validation...how can I incorporate this in the existing syntax.

(IIf([<SalesStageId>]='AAJA-HHTOL5' AND [<CloseDate>]>Today(),'Error',IIf([<SalesStageId>]='AAJA-HHTOL3' AND [<CloseDate>]>Today(),'Error',IIf([<SalesStageId>]='AAJA-HHTOP9' AND [<CloseDate>]>Today(),'Error',IIf([<SalesStageId>]='AAJA-HHTOQD' AND [<CloseDate>]>Today(),'Error',IIf([<CloseDate>]<[<IndexedDate0>],'Error',IIf([<CloseDate>]>[<dAnticipated_Order_Date_I_ITAG>],'Error',[<CloseDate>])))))))

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center