Integrations and APIs for Service

Get Involved. Join the Conversation.

Posts

  • Chris Rogers
    PHP7 ?35.0
    Topic posted January 21, 2019 by Chris RogersBronze Medal: 1,250+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    PHP7 ?
    Summary:
    PHP5.6 is EOL, when is Oracle going to upgrade to 7
    Content:

    Hello

    Now that PHP 5.6 has reached it's end of life (http://php.net/supported-versions.php) and is unsupported by The PHP Group, does anyone know any Oracle plans to upgrade to PHP 7?

    Or does Oracle plan to continue to support PHP 5.6 in house (ie fix any future security issues, etc)?

    Thanks

    Chris

  • 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.

  • Jhamir Castiblanco
    Set task notes field using Connect PHP APIAnswered25.0
    Topic posted August 26, 2019 by Jhamir CastiblancoGreen Ribbon: 100+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    Set task notes field using Connect PHP API
    Content:

    Hi experts,

    I need your help. I want to set the Notes standard field that is displayed on the Task workspace using Connect PHP API but I cant find it. I was looking for it in the Connect PHP documentation, but I wasn't abble to find it's reference. I know this object have a relationship with Notes object, but i want to know if it's possible to set this field programmatically.

    Thanks in advance.

    Version:
    v1.3
    Image:
  • 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.

     

  • Seethalakshmi S
    how to store custom text value in date/time custom field75.0
    Topic posted December 13, 2018 by Seethalakshmi SBronze Medal: 1,250+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    how to store custom text value in date/time custom field
    Summary:
    Store custom text value in date/time custom field
    Content:

    Hi All,

    In ROQL I have received date/time in string format. So I converted into date/time in (MM:DD:YYYY HH:MM") format.

    After that, I need to store the converted date/time value in "Date/time" datatype custom field.

    While I am trying to store the converted value in date/time datatype field, I am getting error like "Type Mismatch"

    How to resolve this?

    Thanks,

    Seethalakshmi

    Version:
    Version 18C
    Code Snippet:
  • Padma Prabha Varadarajan
    Hash Functions usage15.0
    Topic posted November 11, 2019 by Padma Prabha VaradarajanRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST 
    Title:
    Hash Functions usage
    Summary:
    Alternate workaround for Hash function
    Content:

    Hi Team, 

    We are in need of using Hash Functions for one of our business requirement that needs to be implemented in Oracle Service Cloud. We have been notified that the Hash Functions are disabled for the php versions available in our application. In this case, please suggest us on the ways that we have to follow to implement the similar functionality as in Hash Functions. 

    Thanks

    Version:
    18C
  • Sreedhar Loorthu
    How to use CURLFile() with File Attachment of...15.0
    Topic posted June 10, 2019 by Sreedhar Loorthu, tagged Connect PHP, Custom Process Models - CPMs, REST 
    Title:
    How to use CURLFile() with File Attachment of Incident
    Summary:
    Fetch File Attachment from Incident and Pass it to CURLFile() function using PHP
    Content:
    As part of Integration, I need to pass an image file to REST API. 
    It was recommended to use CURLFile('') function for assigning file.
    So, I need to get the file from a particular Incident's FileAttachment and assign it in JSON using PHP.
    Find the bleow sample code for CURLOPT_POSTFIELDS.
     
    CURLOPT_POSTFIELDS:
     
    array('file'=> new CURLFILE('imagefile.jpg'),
      'method' => 'method_name',
      'api_key' => 'XXXXXXXAPIKEYXXXXXXX',
      'body' => '{
    "to":"to_number",
    "type": "image", 
    "image" : {
    "caption" : "Image File"
    },
    }',
    'from' => 'from_number',
    'format' => 'json')
     
     
    How to get the file from Incident and pass it to CURLFILE('') function?
  • Kelvin Chung
    Detect user response incident email and trigger CPM PHP...35.0
    Topic posted December 21, 2018 by Kelvin ChungGreen Ribbon: 100+ Points, tagged Connect PHP, Custom Process Models - CPMs, SOAP 
    Title:
    Detect user response incident email and trigger CPM PHP curl to call web service
    Summary:
    Tigger PHP c
    Content:

    I am new to RNT and try to detect user response incident email and trigger CPM  to call web service. I am using PHP to get the change in an incident when user response email in the thread automatically without customer service representation involves by checking the old and new thread to see if there is any change. See code below. I already verify curl_exec() works for soap request on my service.

    Q1) Do you think above will work to detect user reply incident email?

    Q2) I use Execute Async option, will above automatic retry if curl_exec() fail to connect remote server?

    I can only test in debugging and not able to test in deploy. That's why I would like to verify before sending the code to deployment.

    I appreciate any help.

     

     

     

     

    Version:
    August 2017
    Code Snippet:
  • Julie F
    Write data from Custom Object field to Contact custom field1
    Topic posted October 7, 2019 by Julie FBronze Crown: 15,000+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST 
    Title:
    Write data from Custom Object field to Contact custom field
    Summary:
    Does anyone have an example of the above?
    Content:

    I have a custom object group. Lets call it GroupObject. It has a number of objects within it. Lets call those.CObject1, CObject2 etc.and they each have fields.

    In a CPM I want to write GroupObject.CObject1.time (time is one of the fields, it is not the current time) to:

    contact_data->CustomFields->c->last_saved    a contact record custom field called last_saved.

    Any example, for any part of this, would be greatly appreciated.

  • 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

Filter by Date

< < November 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

Filter by Type