Posts

Posts

  • Janusz Jasinski
    OSC-CREST-00013 - Unrecognised resource25.0
    Topic posted July 17, 2019 by Janusz JasinskiBronze Crown: 15,000+ Points, tagged Connect PHP, REST in Service > Integrations and APIs for Service public
    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:
  • Simone Vanotti
    OIC Use CriptJS Library
    Topic posted July 1, 2019 by Simone VanottiGreen Ribbon: 100+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP in Service > Integrations and APIs for Service public
    Title:
    OIC Use CriptJS Library
    Summary:
    OIC Use CriptJS Library
    Content:

    Hello,

    I need to use a CriptoJS Library in call JS in an integration ( Oracle Integration Cloud Service).  Somebody know how to do it ?

    I should write the follow code in my js call but when run the integration, It finish in error becaus does not identifier "CryptoJS":

    var signature = CryptoJS.HmacSHA1(baseString, key).toString(CryptoJS.enc.Base64);

     

    Thanks,

    Simone

  • Simone Vanotti
    OIC Netsuite Connection Timeout1
    Topic posted July 1, 2019 by Simone VanottiGreen Ribbon: 100+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP in Service > Integrations and APIs for Service public
    Title:
    OIC Netsuite Connection Timeout
    Summary:
    OIC Netsuite Connection Timeout
    Content:

    Hello,
    I'm using a trial version of OIC. My scope is that to create an integration between oracle HCM and Netsuite. I've create HCM connection, tested e validated with successfull it.
    When I created the Netsuite Connection with your adapter, It went in Timeout error, I tried with the Credential Authentication and with Token Based Auth in security configuration. I received ever the follow error:
    CASDK-0002 : Unable to access the host javax.xml.soap.SOAPException: Message send failed: Connection timed out (Connection timed out) ===== reqeust ======== SOAPAction:getDataCenterUrls Content-Type:text/xml; charset=UTF-8 Content-Length:261 <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><urn:getDataCenterUrls xmlns:urn="urn:platform_2019_1.webservices.netsuite.com"><urn:account>TSTDRV2123673</urn:account></urn:getDataCenterUrls></env:Body></env:Envelope>
    javax.xml.soap.SOAPException: Message send failed: Connection timed out (Connection timed out) ===== reqeust ======== SOAPAction:getDataCenterUrls Content-Type:text/xml; charset=UTF-8 Content-Length:261 <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><urn:getDataCenterUrls xmlns:urn="urn:platform_2019_1.webservices.netsuite.com"><urn:account>TSTDRV2123673</urn:account></urn:getDataCenterUrls></env:Body></env:Envelope>
    Message send failed: Connection timed out (Connection timed out) ===== reqeust ======== SOAPAction:getDataCenterUrls Content-Type:text/xml; charset=UTF-8 Content-Length:261 <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><urn:getDataCenterUrls xmlns:urn="urn:platform_2019_1.webservices.netsuite.com"><urn:account>TSTDRV2123673</urn:account></urn:getDataCenterUrls></env:Body></env:Envelope>
    Connection timed out (Connection timed out)
    The security configuration is correct because I've tested a SOAP call with the same configuration in postman and I get a success.
    Can you help me please?

    Version:
    1
  • Julie F
    OSC-CREST-00028 You are forbidden to access this site.Answered10
    Topic posted June 28, 2019 by Julie FBronze Trophy: 5,000+ Points, tagged Connect PHP, REST in Service > Integrations and APIs for Service public
    Title:
    OSC-CREST-00028 You are forbidden to access this site.
    Summary:
    API to update custom objects gives 403 Forbidden error
    Content:

    We have set these two configurations settings correctly for our domain:

    SEC_PAPI_INTEG_HOSTS_REST

    PAPI_CORS_DOMAIN_LIST

    We have given a user specifically set up permissions for our custom objects and have also tried with a full admin account.

    We keep getting 403 Forbidden error which shows OSC-CREST-00028 You are forbidden to access this site.

  • Padma Prabha Varadarajan
    Stop trigger to another CPMAnswered5
    Topic posted June 13, 2019 by Padma Prabha VaradarajanRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs in Service > Integrations and APIs for Service public
    Title:
    Stop trigger to another CPM
    Summary:
    Suppress save to call another CPM Handler script
    Content:

    Hi,

    We have a script where we are setting a field value in another object and saving it.

    When the save triggers, it is triggering the CPM Handler script associated with the object.

    I don't want the script to be triggered but just update the field and save simply. 

    Tried using save(RNCPHP\RNObject::SuppressAll), But didnt work.

    Kindly suggest a way to overcome this

     

    Thanks

    Padma

    Version:
    18D
  • 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 in Service > Integrations and APIs for Service public
    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?
  • 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 in Service > Integrations and APIs for Service public
    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:
  • Praveen Woody
    How do I get a handle on Tasks to check if there any open...7
    Topic posted May 19, 2019 by Praveen WoodySilver Medal: 2,000+ Points, tagged Connect PHP, REST, SOAP in Service > Integrations and APIs for Service public
    Title:
    How do I get a handle on Tasks to check if there any open tasks before closing the incident
    Content:

    Everytime the status of the incident is set to closed, before incident save, I want to check (from Agent Console) if there are any open tasks associated with that incident. If there any open tasks, I want the agent to get a message asking them to close that task before closing the incident and should prohibit the user to close the incident till they close all open tasks associated with the incident.

    Is there a sample code I can use to have this done?

     

    Thanks in advance

    Version:
    18D.
  • Nigel Oliver
    Returning the Category Parents ID's in PHP API2
    Topic posted May 9, 2019 by Nigel OliverBronze Medal: 1,250+ Points, tagged Connect PHP, Custom Process Models - CPMs in Service > Integrations and APIs for Service public
    Title:
    Returning the Category Parents ID's in PHP API
    Summary:
    How to return the Parents ID of Category in PHP API
    Content:

    Hi All

    Ok so we are returning the Category ID's in PHP API By using the following:

    $catID = $incident->Category->ID;

    We are now trying to return the Category Parents ID as well but cant seem to figure it out, we have tried the following but get "cant return property of an object".

    $parCatID = £incident->Category->Parents->ID;

    Does anyone know the correct syntax ?

    Thanks!

    Nigel

    Version:
    18C
  • Manish Kumar
    OSvC capability to read messages from a message queue like...
    Topic posted May 3, 2019 by Manish KumarGreen Ribbon: 100+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP in Service > Integrations and APIs for Service public
    Title:
    OSvC capability to read messages from a message queue like JMS or IBM MQ
    Summary:
    Messaging Queue setup in OSvC
    Content:

    Hello Guys,

    We have a requirement to read messages from a queue unlike directly calling a web service.

    The message will be posted in a queue (e.x. JMS queue, IBM MQ). Does Oracle Service Cloud have the capability to read such queues and process the request?

    I have done the setup between Siebel CRM and IBM MQ, however I do not see any documentation to setup OSvC to any Messaging Queue.

    Any information will be helpful.

    Thanks in advance.