Legacy Dev Forum Posts

 View Only

Sign Up

Data Action Request for Integer

  • 1.  Data Action Request for Integer

    Posted 06-05-2025 18:40

    Samuel_Polgar | 2018-07-25 00:55:44 UTC | #1

    Dear PureCloud

    May I please ask for your advice regarding data actions that request an integer?

    I would like to use a PUT request that updates an integer in a data table. When I change the action to type string, and try to update a string in a datatable, the action works. When I try to update a datatable of type integer with number 6 the error received is '6' is not of type 'integer'. Please may I ask for your help to help me see where I could be going wrong?

    Input Contract "Count": { "description": "Counter", "type": "integer" },

    Request Template "requestTemplate": "{\"Count\": \"${input.Count}\"


    Jason_Mathison | 2018-07-25 01:23:01 UTC | #2

    I don't think that you want to have quotes around an integer, so your request template should be something like

    "requestTemplate": "{\"Count\": ${input.Count}}"

    If that doesn't work please export your action so we can have a look at it. It exports as a text file, so you can replace anything sensitive with placeholders. Also please include a copy and paste or screenshot of the exact error you are getting.


    Samuel_Polgar | 2018-07-25 01:56:17 UTC | #3

    Dear Jason

    Hope you are well, and thank you very much for your prompt response.

    That works very well, thank you.


    system | 2018-08-25 01:56:17 UTC | #4

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