Posts

Posts

  • Vanessa Abelardo Viana Beserra
    Set date and time field in a CPM4
    Topic posted August 5, 2019 by Vanessa Abelardo Viana Beserra, tagged Connect PHP, Custom Process Models - CPMs in B2C Service > Integrations and APIs for Service public
    Title:
    Set date and time field in a CPM
    Content:
    Hi,
    I have a custom process that makes a  logs information. I use the field DATA_FINAL (type: data and time) of object CO \ LOG_LUGGO. I just want to set a date in this field. I did a lot of tests, including setting a fixed date and still can't set it.
     
    My OSvC version is 19B. 
     
    Is there any configuration I should enable to use this? 
     
    Below is a script of how I am trying to set this field in PHP.
     
    Thanks for the help!
    Version:
    19B
    Code Snippet:
  • Victor Oviedo
    queryObject with empty resultAnswered4
    Topic posted July 29, 2019 by Victor Oviedo, tagged Connect PHP in B2C Service > Integrations and APIs for Service public
    Title:
    queryObject with empty result
    Summary:
    queryObject with empty result
    Content:

    I have developed a php script where I use a query to bring specific items of a Custom Object (Resource), when I use the following code:

    $queryResult = RNCPHP\ROQL::queryObject("select R from CO.Resource R where ID=3021 or ID=3019 or ID=3018 or ID=3015")->next(); var_dump($queryResult);

    When I execute this code this is the var_dump result:

    object(RightNow\Connect\v1_3\ROQLResult)#4 (0) { }

    Why is this happening?, it is something I should add/change/remove?

    Version:
    1_3
  • 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 B2C 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 VanottiRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP in B2C 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 VanottiRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP in B2C 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 B2C 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 B2C 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 B2C 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 B2C 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 B2C 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.