Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Pass logged in contact to OPA interview embedded in div — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Pass logged in contact to OPA interview embedded in div

Received Response
10
Views
3
Comments
edited Sep 13, 2017 1:33AM in Intelligent Advisor for Fusion Service 3 comments

Content

I have been trying to implement "embed an interview using a div" as outlined here .

I am having trouble passing user data to OPA, for a logged in contact on the Customer Portal.

The interview is sitting on the customer portal and is connected to service cloud

What parameters does the request expect to be able to determine the user is logged in and fetch the user data?

Thanks

Version

OPA August 2017

Code Snippet

             <!DOCTYPE html>
<html>
<head>
    <link href="https://xxxx.custhelp.com/web-determinations/staticresource/interviews.css"
          rel="stylesheet" type="text/css"/>
    <link href="https://xxxx.custhelp.com/web-determinations/staticresource/fonts/fonts.css"
          rel="stylesheet" type="text/css"/>
    <script src="https://xxxx.custhelp.com/web-determinations/staticresource/interviews.js"></script>
    <title>My First Embedded Interview</title>
</head>
<body>
    <div style="display: inline-block; width:100%">
        <div id="interviewDiv"
             style="width: 100%; display: block; margin-left: auto; margin-right:auto; float: left"></div>
    </div>

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!