Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  External Contacts Scan

    Posted 04-04-2025 09:16

    We are trying to run a scan against all of our external contacts to capture their backend id in order to do a bulk PUT to add a custom field parameter to the contacts. There are around 12k contacts so we tried using the javascript on the developer git located at: developercenter-tutorials/scan-external-contacts/nodejs/index.js at master · MyPureCloud/developercenter-tutorials

    GitHub remove preview
    developercenter-tutorials/scan-external-contacts/nodejs/index.js at master · MyPureCloud/developercenter-tutorials
    Developer center tutorials. Contribute to MyPureCloud/developercenter-tutorials development by creating an account on GitHub.
    View this on GitHub >

     

    The problem we are running into is that it runs fine and then stops randomly saying it completed succesfully after pulling anywhere from 140 to 190 records. Has anyone used this script recently and found a fix to this issue or know of another way to bulk scan and address the pagination? I did try to setup a one time job in Workato and the recipe works except it isn't consistently passing the variable but it did prove out that there are far more contacts than what the javascript is pulling by getting to around 1k records.


    #PlatformSDK

    ------------------------------
    Chip Schutte
    ------------------------------