cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Rule editer syntax in C4C

pallavi_sahane
Explorer
0 Likes
541

Hello

I want to set mandatory rule on field Order Intake Date. When Project value is greater than 25000 and project status value is 40 or 60 then Order Intake date is mandatory.

AND (Root.ProcessingTypeCode == "ZPRO", Root.ExpectedRevenueAmount.content >= "25000", Root.ExpectedRevenueAmount.currencyCode =="EUR"), Root.Z_ProjectStatus == "40", Root.Z_ProjectStatus == "60")

How to set condition for two values for project status in condition?

Thanks and best regards,

Pallavi

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member226
Employee
Employee

Hi,

Can you please try something like this?

AND(Root.ProcessingTypeCode == 'ZPRO', AND( Root.ExpectedRevenueAmount.content >= 25000 ,  Root.ExpectedRevenueAmount.currencyCode == 'EUR', OR( Root.Z_ProjectStatus == '40',  Root.Z_ProjectStatus == '60', true, false), false),false)

Regards

Saurabh

pallavi_sahane
Explorer
0 Likes
AND(Root.ProcessingTypeCode =='ZPRO',AND( Root.ExpectedRevenueAmount.content >=25000,  Root.ExpectedRevenueAmount.currencyCode =='EUR',OR( Root.Z_ProjectStatus =='40',  Root.Z_ProjectStatus =='60')))

This is worked.
Thanks :-)