function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Eswari_12Eswari_12 

Api Intergration Issue

Hi All,
I have created an api integration in salesforce. From client's website a request will send to Salesforce in form of JSON. This will create record in Salesforce. Sometimes multiple requests are sending. This is causing duplicates. I don't have option to control from Client's website. Can you please tell do we have control in salesforce ??
Actual problem is there is some delay is insert operation. Due to this existing record checking is not performing. Hence duplication is causing.
Thanks
Sean 94Sean 94
try upsert ,not insert
ANUTEJANUTEJ (Salesforce Developers) 
Hi Eswari,

I found these two ways that you can try checking:

>> creating a matching rule so that the duplicates are not entered.

>> another way is to have an external id that you can send from the third party website so you can use this to check duplicates.

https://developer.salesforce.com/forums/?id=906F0000000BR1eIAG

Also, can you check if you can increase time out?

I hope this helps and in case if this comes in handy can you please choose this as the best answer so that it can be useful for others in the future.

Regards,
Anutej