Legacy Dev Forum Posts

 View Only

Sign Up

How to get data from secure flow

  • 1.  How to get data from secure flow

    Posted 06-05-2025 18:43

    Ueno | 2022-01-12 07:08:43 UTC | #1

    Hi,

    I tried issuing an API with a data action to get the data from the secure flow, but the whitelist IP restrictions resulted in "Access_denied". I solved it by adding the IP address of the region to the white list, referring to the following post.

    https://developer.genesys.cloud/forum/t/data-action-put-datatables-code-invalid-credentials/11536

    I would like to avoid this as the whitelist will need to be re-registered if the IP address changes.

    As an alternative, I'm assuming that you can use Web Service Data Action to retrieve data from a secure flow under the following conditions: Is that correct?

    1. There is a web application registered in Genesys Cloud as an OAuth client.
    2. The source IP address of the web application is white-listed.
    3. Implement the process to call "/api/v2/conversations/${conversationId}" from the Web application.
    4. From "Execute Data Action" in the custom action of the script, call it with Web Service Data Action.

    I'm not good at English, so it may be difficult to convey the meaning. Please let me know if you have any missing information.


    Jason_Mathison | 2022-01-14 16:42:56 UTC | #2

    Hi Ueno,

    Our expectation is that those IP addresses will not change very often, if ever. We understand that changing these IP addresses would break many customers integrations.

    Here is what I think that you are asking: Setup an external web service with a fixed IP address that is added to the whitelist The data action will call this web service The web service will call into the public API and return the results to the data action

    I would expect that to work.

    The down side is that the new web service would have to be created and maintained. My guess is that the risks of cost/security/performance/reliability of that web service are greater than the risk our Data Action IP addresses changing without significant warning.

    If it doesn't exist already, you could submit an idea to be able to automatically include data action IP addresses in the whitelist without having to maintain them yourself.

    --Jason


    Ueno | 2022-01-31 08:38:34 UTC | #3

    Hi Jason,

    Sorry for the late reply. Thank you for answering. I understand the contents.


    system | 2022-03-03 08:39:32 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: 13185