Skip to main content Agentforce Virtual Hackathon에 참가해 혁신적인 솔루션을 구축하여 50,000달러 상금의 주인공이 되어보세요. 지금 등록하세요. 이용 약관이 적용됩니다.
오류

오류가 발생했습니다. 다시 시도하세요.

Hi, 

I create Validation Rule to stop service contract activation if lookup field is empty or blank but it gives me opposite result and not working as required, here is the syntax , If some one experience similar rule I would appreciate your advice.  

AND( 

ISBLANK(Service_Contract_Key_Contacts__r.Key_Contact_Phone__c), 

ISCHANGED( SVMXC__Active__c))  

 

#Salesforce Admin

답변 7개
  1. 3월 17일 오후 3:23

    @Abdelhakim Shrief, if  Service_Contract_Key_Contacts is a child table, that means your Service_Contract_Key_Contacts__r relation goes from the parent record, towards the children related records. That cannot work this way. I guess you should rather think about a validation rule on the child, testing the Key_Contact_Phone__c field when the key contact is saved, and use the relationship in the child>parent way to test the parent contract activation status. Could you please give it a try if compliant with your requirement ? Eric

0/9000