Policy Automation for B2C Service

Get Involved. Join the Conversation.


    Scott Heidenreich
    How to pass data into an OPA model from the URL
    Topic posted August 17, 2018 by Scott HeidenreichBronze Trophy: 5,000+ Points 
    117 Views, 2 Comments
    How to pass data into an OPA model from the URL


    I am creating a help wizard for an online gateway.  The user will link to the OPA model from any of a number of different screens.  Since the link is being clicked within a known context, I would like to pass a value in to the OPA model so that it can "jump ahead" in the interview to the appropriate place based on where the user was in the site when the link was clicked.

    Is there a way to do this?

    For example, the user is logged into the large pickup request service and clicks "I need help" link.  The I need help link would pass "largepickup" into OPA so we can start with those questions instead of the more basic questions about are you having password problems or PIN problems, etc.





    • Davin Fifield

      Indeed there is Scott. Check out this help topic.

    • shankar

      Hi Davin,

      Can you pls. let me know if the mentioned topic would work on this scenario? User enters couple of input texts and we are calling an external Rest service to fetch other values in the screen for auto fill. I understand there is an option to use customsearch in javascript extension but it leads to a call being made every time an input text is entered.