Customer Portal

Get Involved. Join the Conversation.

Comments

  • Prashant Chirania

    Hi Kenton,

    Please share your CP interface URL, I shall give you the loader.js path. 

    'custhelp.widget.custhelp.com/s/oit/latest/common/v0/libs/oit/loader.js' is not accessible.

    Thanks
    Prashant

     

  • Kenton Banyai

    Thanks for the reply! I followed the instructions and am still getting a ERR_NAME_NOT_RESOLVED error in the console. It is referencing custhelp.widget.custhelp.com/s/oit/latest/common/v0/libs/oit/loader.js. It also isn't showing up on the screen at all. Is their any formatting for entering it in the OIT_CORS_WHITELIST? I tried some variations I have seen but still not responsive.

  • Steven Robert

    OK, now I can answer my own question!

    Html codes seem to flow from fields to standard text entries, hence <br> renders a line break in standard text.

     

    Ryan, not sure if it matters any more, but if your widget replaced line breaks with <br> before saving then they would flow through to threads.

  • Steven Robert

    Bumping this thread as I have run into the same thing that Ryan did, namely:

    "standard text containing the custom fields is what is removing the formatting"

    When I put a field in standard text it strips the line breaks. Is there a way to persist line breaks in standard text?

    The field is populated by OPA, so if there a string that would force  line break we can substitute that in.

  • Prashant Chirania

    Hi Kenton,

    The code that you have shared above is for legacy syndicated widget not 'Chat Inlay'. Here is what you need to do to have chat inlay on standard.php -

    1. If you want to access chat inlay on abc.custhelp.com then please enter abc\.custhelp\.com  in OIT_CORS_WHITELIST

    2. Please put following code in standard.php [Note: site-url attribute does not contain protocol]

    <inlay-oracle-chat-embedded
        class="inlay"
        id="chatInlay"
        site-url="XXXX.widget.custhelp.com"
        >
        </inlay-oracle-chat-embedded>
    <script id="oit-loader"
        src="https://XXXX.widget.custhelp.com/s/oit/latest/common/v0/libs/oit/loader.js"
        async>

       </script>

    Thanks
    Prashant

  • Tushar Gupta

    It is not native to the existing Grid Widget.

    I have also made a similar functionality where I was editing multiple Incidents at one go using the checkbox column against each Object (Incident in my case).

    Similarly, you can delete multiple Tasks. Also, perform other actions if you want to do.

     

  • Scott Heidenreich

    Hi Tushar,  If I extend a widget - is it to allow the native delete link function from the OSvC report to surface through the grid, or to create a different delete function in the widget itself?

  • Tushar Gupta
    Hi Scott, You can do this in two ways: 1.) Do it completely with the Connect PHP API without the standard Grid widget 2.) Or extend the standard Grid Widget and make the changes in the Controller of that widget along with the view and logic.js files. Thanks
  • Narendra Muttineni

    Thank you for your response!! 

    I have implemented a script to call pre_login hook when try to login to service cloud. But the problem is the script is not at all being called.

    "Then I noticed that, Login is mandatory to login to osc cp pages. If we have only email address in the subject, then you can't call pre_login hook and it will check whether contact is having Login or not. However, if you use only conact.login in the subject, then we can call custom hook and can execute our script."

    Thanks,

    Narendra

  • Narendra Muttineni

    Yes, you are right!! I also follow the same principle "anything is possible".

    Extended custom widget and modified the controller to rename the products/categories. In getData() we need to write the logic.

    Thanks,

    Narendra

  • Scott Heidenreich

    Hi, I tried using the code, but it I couldn't get it to work.  I put it into the view.php page for the widget that manages the display of the logged in user's tasks.  On that view.php is a call to the reports/Grid widget that loads the report showing the logged in user's tasks.

    Thanks for trying.  I appreciate it.

  • Scott Heidenreich

    Ok. Thank you, I will try it.  I noticed there is a version identified for RightNow\Connect

    Does that mean I have to update that version each time Oracle does?

  • Sristy Arya

    Hi Scott,

    You can put the same on CP page which lists all the tasks of the logged in user.

     

    Thanks

    Sristy

  • Scott Heidenreich

    Thank you for the coding - how do I implement it?  Is this something that is a custom process, a custom script in the report, embedded in a widget, or put on a customer portal php page?

  • Sristy Arya

    Hi Scott,

    You can create an array of the Tasks & Delete them .

    User can select each task(checkbox) & delete / destroy the Task.

     

    if (isset($mytaskchk[0])) {
               for ($i = 0; $i < count($mytaskchk); $i++) {
                 $task_id = $mytaskchk[$i];
                 $task = RightNow\Connect\v1_2\Task::fetch($task_id);
    $task->destroy();
                 echo "Task Object having ID {$task_id} is destroyed";
    }
    }
     
     
    Where task_arr contains all the tasks of the logged in agent fetched from report.
    <?php
     
    for ($i = 0; $i < count($task_arr); $i++) 
    {
    ?>
     <input type="checkbox" name="mytaskchk[]" id="mytaskchk_<?php echo $i; ?>" value="<?= $task_arr[$i]['Task ID']; ?>"  /
    <?php
    }
    ?>
     
    Thanks
    Sristy