You need to sign in to do that
Don't have an account?
venkat bojja
Validation on Case
Hi Team,
I have a requirment.
I have a Case Objec having Lookup to Account And Asset.
After select Account on Case the selected Account related Assets only we need to select and save the case record. If the asset is not related to this seleected Account we need to throw the validation error like Please select the Selected Account related Asset and it should only applicable for recordtypename='service' on the Case object. Please help me on this ASASP.
Thanks in Advance.....
Thanks
Venkat.
I have a requirment.
I have a Case Objec having Lookup to Account And Asset.
After select Account on Case the selected Account related Assets only we need to select and save the case record. If the asset is not related to this seleected Account we need to throw the validation error like Please select the Selected Account related Asset and it should only applicable for recordtypename='service' on the Case object. Please help me on this ASASP.
Thanks in Advance.....
Thanks
Venkat.
Can you try the validation rule as below.
If this solution helps, Please mark it as best answer.
Thanks,
All Answers
Can you try the below trigger logic on Case object. Update the Asset__c field wirh your API name.
If this solution helps, Please mark it as best answer.
Thanks,
Thanks for your quick responce...
I don't want to go with trigger, need to wtrite a validatio rule for it on Case Object.
Thanks
Venkat
Can you try the validation rule as below.
If this solution helps, Please mark it as best answer.
Thanks,
It's not working ,Could you please once check it :
FYI:
AND(NOT(ISBLANK(AccountId)),NOT(ISBLANK( AssetId )), RecordTypeId ='Service', AccountId!= Asset.Account.Id )
Thanks
Venkat
Use RecordType.Name instead of RecordTypeId. You need to specify id if you are using RecordTypeId.
Thanks,