Legacy Dev Forum Posts

 View Only

Sign Up

Clear contacts in contactlist based on datetime value

  • 1.  Clear contacts in contactlist based on datetime value

    Posted 06-05-2025 18:07

    Swetha_K | 2024-09-11 20:50:42 UTC | #1

    Hi, I am trying to run a disposition process on a live contactList where we download the contactList and delete all the contacts in that list before the download time.

    I am using the search by filter api first and if the response gives any count, then use the Bulk remove api to clear the contacts i.e, /api/v2/outbound/contactlists/{contactListId}/contacts/bulk/remove

    Filtering is based on the SmsLastAttempt-PhoneColumn (this is a Genesys system generated column after the campaign is run and has datetime stamp values) POST /api/v2/outbound/contactlists/{contactListId}/contacts/search Request Body: { //"contactListFilterId": "", "criteria": { "clauses": [ { "filterType": "OR", "predicates": [ { "column": "latestSmsEvaluations.PhoneColumn.timestamp", "columnType": "alphabetic", "operator": "LESSTHANEQUALS", "value": "2024-09-04T15:54:00.000Z", //"value": "P-01DT-08H-30M" , "range": "", "inverted": true } ] } ], "filterType": "OR" } }

    However the request errors out with below message { "message": "An error has occurred, please contact support.", "code": "internal.server.error", "status": 500, "contextId": "97bb6f33-f0e0-4ecc-839b-0d872a6f017a", "details": [], "errors": [] }

    I tried other operators like LESSTHAN, GREATERTHAN, GREATERTHANEQUALS with the same error.

    Basically I need to remove the contacts who are already contacted before 9pm everyday.

    Regards Swetha


    system | 2024-10-12 20:50:47 UTC | #2

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 29027