You need to sign in to do that
Don't have an account?
mayur Kalbande
system admin can create only one record for per contact(lookup) if admin try to create another record with same contact then show error
system admin can create only one record for per contact(lookup) if admin try to create another record with same contact then show error
Can you confirm on which object you are trying this? And also can you confirm what is the API anme of the contact lookup on that object so can share the code accordingly .
Thanks.
Plz give me some hints
Sure will share the code in some time. So distributor cannot have more than one target setting created in an year? Is that your requirement. Correct me if any wrong in it.
Thanks,
Can you try below trigger on Target Setting object.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
Let me know if you face any issue using this code so Can modify it based on it.
Thanks,
I have developed trigger according to your ask. Can you check and confirm on it.
Thanks
Did you tried the code shared above.
Thanks,
It works in before insert only. Once you click on save then it will not save ans show you the error. It will not insert the second record.
Thanks,
Can we connect and check entire trigger once.
Thanks,
Can we connect over gmeet.
Thanks,