Legacy Dev Forum Posts

 View Only

Sign Up

How to add eperationDateTime to DNC entries from a Data Action

  • 1.  How to add eperationDateTime to DNC entries from a Data Action

    Posted 06-05-2025 18:44

    Ruud_Reinold | 2023-03-21 14:37:03 UTC | #1

    I’m struggling to get the expirationDateTime set on the data action

    On the API Explorer call it's added with ?expirationDateTime=2023-03-27T09%3A00Z

    I can't use this in the Data Action as this causes an error. How do I add this to the Data Action?

    Request URL Template - /api/v2/outbound/dnclists/${input.DNCListId}/phonenumbers Request Body Template - ["${input.Phone1}","${input.Phone2}","${input.Phone3}"]

    Any suggestions welcome since we need this to make the addition regulatory compliant.


    Eos_Rios | 2023-03-15 02:59:11 UTC | #2

    Ruud_Reinold, post:1, topic:18902
    I can't use this in the Data Action as this causes an error.

    Have you tried using urlTool.optionalQueryParam ?


    Ruud_Reinold | 2023-03-20 14:12:51 UTC | #3

    You can't use that from a Rule Based action on Dialler. As this is the only way to trigger a data action it only uses inputs and has no way returning the output form an action back to the dialler so any conversion is not returning its result.

    I thought I had a way of doing this using https://www.timeapi.io/api/Calculation/current/increment but found another dialler limitation.


    tim.smith | 2023-03-21 14:38:33 UTC | #4

    If you can't accomplish what you need with only configuration of a data action, the recommended approach is to create a middleware endpoint that can do what you want and exposes a REST endpoint that the data action can call. This is commonly done using API Gateway and a Lambda function.


    Jason_Mathison | 2023-03-21 17:20:10 UTC | #5

    A couple of ideas you could vote on / add additional use cases: https://genesyscloud.ideas.aha.io/ideas/OP-I-337 https://genesyscloud.ideas.aha.io/ideas/OP-I-1605


    Ruud_Reinold | 2023-03-23 16:10:37 UTC | #6

    You have my vote on both


    system | 2023-04-23 16:10:55 UTC | #7

    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: 18902