
Hello,
Whenever a Contact record is created, we are creating XYZ entity record through plugin.Now, before actually creating the XYZ record, I would like to do a check to see if there is any matching record that is already present in the system based on some values. If a matching record is found I would like to stop the create of the record. Please advise the plugin code and best way to handle this. Thanks.
Hi,
You can use fetchXml to check for an existing record.
Check if count >0 throw an error/Do not create xyz record
You can register your plugin on post operation