Integrations and APIs for Service

Get Involved. Join the Conversation.


    santhosh xavier
    Duplicated contact records - via SSO/Connect API
    Topic posted October 17, 2018 by santhosh xavierBronze Medal: 1,250+ Points, tagged Connect PHP 
    58 Views, 1 Comment
    Duplicated contact records - via SSO/Connect API

    We have Contact SSO implemented in an instance. So via pre_login hooks, the function checks whether a contact record is already in the system, if not create one. I searched all over the forum for how service cloud prevent duplicated contact records.

    So via two browser tabs I tried to loin to the SAML provider at the same time (same credentials) and it eventually created two duplicated contact records. Email sharing is disabled. Contact.login and address has the same exact data. It didn't even add the extension if there is duplicate (eg: username.001)

    There is no way to put a unique index on contact otherwise we would have tried that.

    There were other scenarios where there was a 1 minute delay between the Contact records creation but it has the same data.

    Please share if there is a way to prevent duplicate contact records from creating in customer portal via connect API.