For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.
Hello,
I'm trying to be able to start an interview with pre-populated data in an attribute, as noted in this article, but not having any luck getting it to work. The test form is https://uqcurrent.crm.test.uq.edu.au/app/opa/website_feedback/
The attribute we want to pre-populate is named “website” and has <url parameter> mapped in on Policy Modeling, shown in the screenshot.
I've tried different variations of URLs, some below:
https://uqcurrent.crm.test.uq.edu.au/app/opa/website_feedback?seedData=website%dtest https://uqcurrent.crm.test.uq.edu.au/app/opa/website_feedback/web-determinations/startsession/website_feedback?seedData=website%dtest https://uqcurrent.crm.test.uq.edu.au/app/opa/web-determinations/startsession/website_feedback?seedData=website%dtest
Any advice or suggestions greatly appreciated!
Hi Ross,
The format that should work most reliably is to URL encode a JSON structure that looks like this:
{"website":"test"}
Which means something like this should work:
https://uqcurrent.crm.test.uq.edu.au/app/opa/web-determinations/startsession/website_feedback?seedData=%7B%22website%22%3A%22test%22%7D
If that's not working to populate the question, try putting a label on your screen that uses that attribute instead and see if it is getting a value.
If it is, then possibly your question isn't bound to the correct attribute?
Davin.
Actually, I just realised what is happening here: you have a portal page that is embedding the interview. You'll need to change the JavaScript that launches the opainterview control within the div on that page to set the seedData parameter as part of the object parameters to the StartInterview method. See:
https://documentation.custhelp.com/euf/assets/devdocs/unversioned/IntelligentAdvisor/en/Content/Guides/Customize_extend/Web_Interviews/Integration/JavaScript_object_parameters_embedded_interview.htm
An example of how to set seedData for embedded interviews in B2C Service portal is here:
https://documentation.custhelp.com/euf/assets/devdocs/unversioned/IntelligentAdvisor/en/Content/Guides/Implement_Intelligent_Advisor/Integrate_other_applications/Integrate_with_B2C/Insert_widget_Cust_Portal_page.htm
Hi @davin-fifield-oracle ,
Thanks very much for your advice so far.
I've attached a text version of the php file with where I'm at based on the documentation, but still not having any success.
In the file, ('website') is the name given to the attribute in the policy model I want to populate in the interview.
I've then tried some URL variations to test, e.g. https://uqcurrent.crm.test.uq.edu.au/app/opa/website_feedback?seedData=website%3dwww.test.uq.edu.au
Any further suggestions much appreciated!
website_feedback.txt
I think you need to change
$seedData->stringParam
to
$seedData→website
to match the name of the parameter you want to be passed to Intelligent Advisor.
Hi Davin,
Thanks very much.
I've managed to get it to work now. The 3 key changes were: