How to Enable OGL in CPQ

Because CPQ is a non-Fusion instance, we can use the default JS which is available in setup.

  1. Copy the code.


    image of setup menu with JS for copy to clipboard

  2. In CPQ Cloud, from Administration Platform, select Header & Footer from Style and Templates.


    image of administration platform menu in CPQ cloud

  3. In Header & Footer page add your JS (which is copied to either Header HTML or Footer HTML).


    image of header and footer menu

    To track user metric, replace the following line:

    //iridize("api.fields.set",{user_id:"LOGGED_IN_USER_ID_GOES_HERE"});

    with the following line of code:

    iridize(“api.fields.set”, {user_id:_BM_USER_LOGIN});

  4. Select Accept.

Possible Errors:

Widget may not appear on any page except the header and footer page.

To fix this, add ths line of code just below the iridize.env line:

iridize.loadJQuery=true;

Note:

If you are trying to use a cross app functionality add the below line into JS.
iridize.crossAppIframe=true;