Integrations and APIs for Service

Get Involved. Join the Conversation.

Posts

  • Nigel Oliver
    "class not found" when trying ti use...Answered2
    Topic posted June 3, 2019 by Nigel OliverBronze Medal: 1,250+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    "class not found" when trying ti use IncidentResponse
    Summary:
    Receving an erro when trying to use class IncidentResponse
    Content:

    Hi All

    I'm trying to create a custom PHP script that updates an incident with a response and sends it out to the customer,  I'm using the example code from the documentation for 18B but when I test the code a I get error "Class 'RightNow\Connect\v1_3\IncidentResponse' not found".

    Here is the code below, am I doing something wrong ?

    Thanks!

    Nigel

    Version:
    18B
    Code Snippet:
  • Lautaro Illescas
    Add an image to a report in a custom process45.0
    Topic posted December 5, 2018 by Lautaro IllescasGreen Ribbon: 100+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    Add an image to a report in a custom process
    Content:

    Hi

    We have to execute a report from a custom process, and add to it a signature, wich is received as a PNG from another system. Then send it by mail as an attachment.

     From what we understand, we can easily execute the report from PHP, and we can also easily send it by mail. The problem is that we can't add the bytes of the signature to the report.

    We tried to replace the image dynamically from the report, but we had no success. We also tried to get a report with images from SOAP and REST, to tried to replace it, but we also had no sucess. Is it possible to make an image of the report and overlap the image of the signature? We tried this but we coudn't do it.

    We are open to ideas/suggestions.

    Please let me know if this is possible,

    Thanks.

  • Jonathan Doringuez
    API for Application Level Menus
    Topic posted November 16, 2018 by Jonathan DoringuezBlue Ribbon: 750+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP 
    Title:
    API for Application Level Menus
    Summary:
    Importing and Exporting Workspaces API
    Content:

    Did someone found something like the API's or the command line interface (CLI) for Service Cloud? CLI should be applicable to both AD and Portal for the purpose of automating the migration of files to higher environment.

    I'm also looking for a documentation about command line interface for Oracle Service Cloud (CLI), where can I find it? This is for both AD and Portal pages, API for importing and exporting workspace

    In addition where can I find the API equivalent for all the application level menus and buttons?

    Version:
    18C
  • Senthil Krish
    calling cp model (custome script) code from CPM1
    Topic posted June 13, 2016 by Senthil KrishRed Ribbon: 250+ Points, tagged Custom Process Models - CPMs 
    Title:
    calling cp model (custome script) code from CPM
    Content:

    All,

    Can I call a method in my model class written in customer portal (or custom scripts) from CPM script (as shown in the code block)?

    Thanks in advance. 

    Senthil K

     

     

    Version:
    service cloud Feb-2016
    Code Snippet:
  • Kelvin Chung
    Check if Custom Object update from SOAP or from Agent...1
    Topic posted February 27, 2019 by Kelvin ChungGreen Ribbon: 100+ Points, tagged Connect PHP, Custom Process Models - CPMs, SOAP 
    Title:
    Check if Custom Object update from SOAP or from Agent Desktop in CPM
    Summary:
    Check if Custom Object update from SOAP or from Agent Desktop in CPM
    Content:

    Hi 

    Quick questions,

    (1) Is there a way to find out if Custom Object update from SOAP or from Agent Desktop in CPM in ActionUpdate ?

    (2) Is there a way to reject  RNCPM\ActionCreate of custom object in CPM script beside calling the object destroy() method ?

    Thanks!

    - Kelvin

     

     

    Version:
    August 2017
  • Saji Mathew
    ConnectPHP Error1
    Topic posted April 11, 2019 by Saji Mathew, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    ConnectPHP Error
    Summary:
    Not enough space for new variable
    Content:

    Hi Team,

    I'm trying to create variables (to keep answer detail page url)  with custom script, but after creating 700 record(s) get created the script is throwing an error which says "Not enough space for new variable" . Anybody knows the reason behind this error.

    As of now I have 3333 variable(s) in variable object. After I got this error, I tried to create variable from console, and I could able to create .

    Any help is appreciated.

     

    RightNow\Connect\v1_2\ConnectAPIErrorFatal Object
    (
        [message:protected] => Cannot save/update: Variable(ID=0): 
    Application Error
     Description: Not enough space for new variable, name: ANSWER_4285
    
        [string:Exception:private] => 
        [code:protected] => 7
        [file:protected] => /cgi-bin/wd_en.cfg/scripts/custom/variable.php
        [line:protected] => 2
        [trace:Exception:private] => Array
            (
                [0] => Array
                    (
                        [file] => /cgi-bin/wd_en.cfg/scripts/custom/variable.php
                        [line] => 2
                        [function] => save
                        [class] => RightNow\Connect\v1_2\RNObject
                        [type] => ->
                        [args] => Array
                            (
                                [0] => 196608
                            )
    
                    )
    
                [1] => Array
                    (
                        [file] => /cgi-bin/wd_en.cfg/scripts/custom/variable.php
                        [line] => 2
                        [function] => createAnswerVariable
                        [class] => answerVariable
                        [type] => ->
                        [args] => Array
                            (
                            )
    
                    )
    
                [2] => Array
                    (
                        [file] => /cgi-bin/wd_en.cfg/scripts/custom/variable.php
                        [line] => 2
                        [function] => performActionOnVariable
                        [class] => answerVariable
                        [type] => ->
                        [args] => Array
                            (
                            )
    
                    )
    
  • Lorna Rickett
    CPHP add new menu item2
    Topic posted November 29, 2018 by Lorna RickettSilver Trophy: 7,500+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    CPHP add new menu item
    Content:

    We have a requirement to show a dropdown menu in an incident workspace which has a list that changes. The list is part of a CO menu; so basically not everything in the CO menu but some of them depending on a different CO field. My idea was to build a new menu dynamically from a CPM when the CO was created/updated, and just show that menu in the workspace. However, I keep getting CPM errors saying I can’t create a new menu item.

    Is this possible and I’m just doing something wrong or is it not a possibility?

    If it’s not possible... does anyone have any wonderful suggestions to do this?! cool

    Version:
    18B, CP 3.7
  • Padma Prabha Varadarajan
    CPM Error Log2
    Topic posted October 2, 2019 by Padma Prabha VaradarajanRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    CPM Error Log
    Summary:
    Unable to diagnose the reason behind the Error
    Content:

    Hi Team, 

    Below mentioned Error is getting logged in CPM Error logs report.

    "Uncaught exception 'RightNow\Connect\v1_3\ConnectAPIErrorFatal' with message 'Cannot save/update"

    We are unable to exactly recognize from where the error might be occuring in the script.

    what is the meaning of the exception saying: "Cannot save/update"

    Please help us here 

    Thanks In Advance

     

    Padma

    Version:
    18C
  • Padma Prabha Varadarajan
    CSS in PHP1
    Topic posted November 11, 2018 by Padma Prabha VaradarajanRed Ribbon: 250+ Points, tagged Custom Process Models - CPMs 
    Title:
    CSS in PHP
    Summary:
    Fontawesome CSS Usage
    Content:

    Hi,

     

    I am using font awesome package in file manager script to format mail message for our requirement. 

    when I try to invoke this in mail API, the formatting is not being applied and I couldn't view the font awesome icons in my output. 

    Please help me on how to proceed on this.

     

    Thanks

    Padma

    Version:
    Oracle Service Cloud, 18C
  • jraynor
    CURL Certificates in a CPMAnswered75.0
    Topic posted February 11, 2019 by jraynor Silver Medal: 2,000+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    CURL Certificates in a CPM
    Summary:
    Need help with a curl error due to lack of certificates in CPM
    Content:

    I have created an asynchronous CPM that uses cURL to call a json web API we have outside of Oracle. The web API is actually hosted as an Azure API, and I am able to successfully reach the API, and get a valid response in Postman with no custom certificates. When I insert the cURL part of the code into the CPM. I get the following error. 

    ---------------------------------------------------
    error setting certificate verify locations:
    CAfile: /etc/pki/tls/certs/ca-bundle.crt
    CApath:none
    ---------------------------------------------------

    Has anyone come across how to resolve this? I do not wish to disable verify peer.

     

Filter by Date

< < October 2019 > >
S M T W T F S
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    

Filter by Type