Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

how I can avoid insertion of duplicate record in async insert business rule

akkk
Tera Contributor
 
5 REPLIES 5

yashkamde
Mega Sage

Hello @akkk ,

 

Your requirement is correct but - Preventive, 

Async insert Business Rules run after the record is already saved, so they can't prevent duplicates directly. The best way is to use a Before Insert Business Rule given by @Aditya_hublikar .

Because for prevention, always enforce uniqueness before the insert.

 

If my response helped mark as helpful and accept the solution.