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.

  • Pandurang Hargude
    Connect for PHP initConnectAPI() user authentication...Answered35.0
    Topic posted June 1, 2018 by Pandurang Hargude, tagged Connect PHP 
    Title:
    Connect for PHP initConnectAPI() user authentication change username
    Content:

    Hello,

    When connecting by using initConnectAPI() I notice that you can do so without specifying a username and password and the documentation recommends this'. This has some impact regarding accountability as the Audit Log stamps the action as performed by 'UserName'.

    However when you do specify a username and password of a Connect enabled account , it correctly comes in audit log with specified username, But when not specifying the username & password it takes one default user, I want to change this Username so need to know where it is configured.

    Thanks in advance.

     

    Version:
    Service Cloud may 2015
    Code Snippet:
  • Janusz Jasinski
    OSC-CREST-00013 - Unrecognised resource25.0
    Topic posted July 17, 2019 by Janusz JasinskiSilver Crown: 22,500+ Points, tagged Connect PHP, REST 
    Title:
    OSC-CREST-00013 - Unrecognised resource
    Content:

    Hi,

    Please see code below - so I'm trying to upload Base64 data as an attachment to an incident.

    However I get this error:

    {
        "type": "https://mydomain.custhelp.com/services/rest/connect/exceptions/OSC-CREST-00013",
        "title": "Unrecognised resource",
        "status": 404,
        "detail": "Resource with id 705951 not found",
        "instance": "https://mydomain.custhelp.com/services/rest/connect/v1.3/incidents/705951/fileAttachments",
        "o:errorCode": "OSC-CREST-00013"
    }

    This incident exists though - I can confirm this by going to the link the error says does not exist. This code sits in the model.

    Am I doing anything obviously wrong?

    Code Snippet:
  • 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:
  • jagadeesh gattupalli
    How to get Values of System Attributes attached to Incident...Answered15.0
    Topic posted December 5, 2019 by jagadeesh gattupalliBlue Ribbon: 750+ Points, tagged Connect PHP 
    Title:
    How to get Values of System Attributes attached to Incident object using ROQL
    Summary:
    System Attributes attached to Incident object using ROQL
    Content:

    HI ,

    I am writing object event handle using connect PHP and querying incident object as below to fetch value from a system attribute which is highlighted in RED color.

     

    $roql_result_set = RNCPHP\ROQL::query("SELECT Incident.ID ID, Incident.PrimaryContact.ParentContact.ID CID, Incident.CustomFields.CO.ParentIncident CHILD FROM Incident WHERE Incident.ID = " . $object->ID); 

     

    This query works fine Connect object Explore ( ROQL Editor in Customer Portal),

    The same is not working in Connect PHP in below mentioned code.

                    while ($roql_result = $roql_result_set->next())
                    {
                        while ($row = $roql_result->next())
                        {

                            $inc_tmp = RNCPHP\Incident::fetch($row[CHILD]);

                        }

                   }

    I am getting error undefined constant .

    Need your help on this . Appreciate  fast reply.

    I am using connect PHP v1_3 on 19B version.

    Regards

    Jagadeesh 

     

     

    Version:
    19B
  • 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
  • Sristy Arya
    Unable to download File Attachment using CURL5.0
    Topic posted September 29, 2019 by Sristy AryaBronze Trophy: 5,000+ Points, tagged Connect PHP, REST 
    Title:
    Unable to download File Attachment using CURL
    Content:

    Hi Everyone,

     

    I am stuck in downloading a file attachment from portal using CURL. I am able to get the response but unable to download the attachment. Anyone knows about this or has done this before can help.

     

    PFA the code .

     

    Thanks

    Code Snippet:

Filter by Date

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