You need to sign in to do that
Don't have an account?
anil Anil5
How to write Genaric Trigger on Parent Object to show error if child Objects fields having null.
How to write Genaric Trigger on Parent Object to show error if child Objects fields having null.
Parent Object is Opp
Child Objects are opp.lineitems [Field1__c,Field__2] and GD_Val__c[FieldJ__c,FieldZ__c]
If child Objects field are blank and child objects having attachments then have to show error msg[Update Fields & Remove Attmt] while updating User__c Field on Parent[Opp]
Parent Object is Opp
Child Objects are opp.lineitems [Field1__c,Field__2] and GD_Val__c[FieldJ__c,FieldZ__c]
If child Objects field are blank and child objects having attachments then have to show error msg[Update Fields & Remove Attmt] while updating User__c Field on Parent[Opp]
Greetings to you!
Please refer to the below link from the developer forums which has sample code which might help you with the above requirement. Kindly try to implement according to your requirement.
https://developer.salesforce.com/forums/?id=9060G0000005R5sQAE
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas