Posts

Posts

  • Bryan Scarborough
    Custom Process Error/Confusion4
    Topic posted September 11, 2019 by Bryan ScarboroughBlue Ribbon: 750+ Points, tagged Connect PHP in B2C Service > Integrations and APIs for Service public
    Title:
    Custom Process Error/Confusion
    Content:

    Hello, 

    I am trying to setup my first Custom Process to create an entry in a Custom Object when an incident is saved.  I am currently running into an issue with the Setup Function in the TestHarness.  The code is below.  

    I am getting the following error on the $newPage->SentBy = $testObject->AssignedTo->Account->Name; line

    Type mismatch: Must be string

    The Custom Object field is a string and as far as can see the Name field should also be one, so why is this giving me an error?  There is an account Assigned to this Incident.

     

    Thank you

    Version:
    18D
    Code Snippet:
  • Bryan Scarborough
    Process Designer Error2
    Topic posted August 27, 2019 by Bryan ScarboroughBlue Ribbon: 750+ Points, tagged Connect PHP, Custom Process Models - CPMs in B2C Service > Integrations and APIs for Service public
    Title:
    Process Designer Error
    Content:

    Hello, 

    My company want to implement a solution that will be able to page our On Call techs from RightNow.  We are doing this by sending an email from RightNow to the paging company and that is working.  They also want to implement logging around this in RightNow.

    My thought was to implement a Custom Object with the Date/Time and the person triggering the page to the On-Call tech.  I was able to create the Custom Object, but I do not see a way to interact with it from the Business Rules. 

    From a previous post it was recommended that I use the Process Designer, which I have been trying to get setup.  Unfortunately, I have not found any full and functional examples in the documentation.

    I have include my current code, but when I try to test it I am getting this error "Object Event Handler create_contact\create_contact does not define class create_contact!".  However, when I setup the class I get the same error.  Can someone let me know what needs to be done to fix this, or give me a working example that I can work with.

    If there is another way to accomplish what I am looking to do, I am open to other ideas.

    Thank you

    Version:
    18D
    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 in B2C Service > Integrations and APIs for Service public
    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:
  • 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