Integrations and APIs for Service

Get Involved. Join the Conversation.

Posts

  • Alanna Larson
    REST API: Creating a Custom Object With a RelationshipAnswered2
    Topic posted October 18, 2019 by Alanna LarsonBlue Ribbon: 750+ Points, tagged REST 
    Title:
    REST API: Creating a Custom Object With a Relationship
    Content:

    Hi,

    I would like to create a custom object using the REST API that has a relationship with the incident ID field. I am able to create custom objects that don't have a relationship but I'm having trouble figuring out how to represent the incident ID in the body of the request when there is a relationship. Attached image shows the details for a much-simplified version of the object I'm dealing with. 

    When I try to represent the incident ID value with a simple int or string I get back a 400 error: " Invalid type specified for property SimpleThread.incidentID". When I GET a thread I receive a list of links for the incidentID field. I included the code showing what is returned below. I tried using something similar to represent the incident when I create the object but that also throws up errors.

    Basically I am looking for the content that should replace the ??? in the body of my REST call.

    {
        "incidentID": ???,
        "text": "I'm the text content",
    }


    Thanks!

    Image:
    Code Snippet:
  • Mario Suzuki
    OSvC Chat integrated to Oracle Engagement Cloud
    Topic posted October 18, 2019 by Mario SuzukiRed Ribbon: 250+ Points 
    Title:
    OSvC Chat integrated to Oracle Engagement Cloud
    Summary:
    How to integrate OSvC Chat to Oracle Engagement Cloud?
    Content:

    Due to some limitations on the usage of Chat Inlay and Chat VBCS of Oracle Engagement Cloud we have been analysing the approach to integrate the standalone OSvC Chat to Oracle Engagement Cloud to capture all the contacts interactions from Chat channel.

    Please I appreciate if you could share some use cases already implemented with this approach and documentation on how to implement it.

    Thanks and regards

    Adolfo Sanches

  • Vijay Krishna
    Chat REST ServiceAnswered25.0
    Topic posted October 16, 2019 by Vijay KrishnaBlue Ribbon: 750+ Points, tagged REST 
    Title:
    Chat REST Service
    Summary:
    Issue with establish session - Chat REST API
    Content:

    Hi,

    I'm trying to invoke Chat REST services for a custom integration. But I am getting an error while calling establish session REST API. Please find the details below. .

    API: https://xxxxx.custhelp.com/services/rest/crossChannelServices/latest/establishSessions

    Body

    {
     "sessionInformation": {
     "emailAddress" : "vijay.krishna@speridian.com", 
     "firstName" : "Vijay",
     "lastName": "Krishna", 
     "question" : "Test Chat",
     "auxiliaryData" : {
    "BROWSER" : "Mobile Safari 11.0", 
    "OPERATING_SYSTEM" : "iPhone OS", 
    "USER_AGENT" : "Mozilla/5.0 (iPhone; CPU iPhone OS 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1"

      }
     }
     
    Response
    {
    "type": "https://xxxxx.custhelp.com/services/rest/crossChannelServices/exceptions/OSC-CREST-00006",
    "title": "An attempt to write a resource failed",
    "status": 400,
    "detail": "A problem setting a property was encountered: not an object; EstablishSession.SessionInformation",
    "instance": "https://xxxxx.custhelp.com/services/rest/crossChannelServices/latest/establishSessions",
    "o:errorCode": "OSC-CREST-00006"
    }

     

     Please suggest if any parameter is missing.

    Thanks,

    Vijay Krishna

    Version:
    19B
  • Hector Arreola
    How can I retreive the Primary Contact of a ticket with...1
    Topic last edited October 15, 2019 by Hector ArreolaRed Ribbon: 250+ Points, tagged Connect PHP 
    Title:
    How can I retreive the Primary Contact of a ticket with Connect PHP?
    Summary:
    How can I retreive the Primary Contact of a ticket with Connect PHP?
    Content:

    Hi community,

    I am trying to retreive the contact from the sample ticket on my process designer script, but I get the error "trying to get property of non-object" for most attempts, for others it just doesnt print anything (and I believe the contact is required while creating the ticket so it could not be null, right?.

    Thanks for helping!!

    EDIT

    Solution:

    $contact = $inc->PrimaryContact->LookupName;

  • Max
    How to call an external API using CPM25.0
    Topic posted October 15, 2019 by Max 
    Title:
    How to call an external API using CPM
    Content:

    HI all,

    I am trying to create an Object event handler in Process Designer that will do the following: 

    1. Call an external API (my test API is: http://data.fixer.io/api/latest?access_key='KEY'&&symbols=GBP)
    2. GET the specific data from this API 
    3. UPDATE the data we got under specific custom field in Contacts table. 

    Can anyone give us a directions on how can we achieve this goal as well as provide some sample code? Maybe someone already had this kind of task before. 

    Thank you,

    Max 

    Version:
    19B
  • Peter Keegan
    SOAP API Contacts - convert code from Custom Field to Obj...2
    Topic last edited October 9, 2019 by Peter KeeganGreen Ribbon: 100+ Points, tagged SOAP 
    Title:
    SOAP API Contacts - convert code from Custom Field to Obj Designer Package fields
    Summary:
    how do we convert our C# code to update Contact package fields instead of Custom Fields
    Content:

    We've been updated Contact custom fields successfully for years, however in OSvC we are converting these CFs to fields in the Object Designer in a Contacts package "CO".

    What is the simplest way to convert our C# code to update Contact package fields instead of custom fields?

    (the package fields will have the same name). Code snippet is the skeleton of the c# that is currently used to update on CF "dept".

    On attached PNG, there is the new "Dept" field in Object Designer package.

    ***UPDATED: I attached a document of new code that is attempting to add an object as a child field to Contact package "CO".

    using the sample code from http://documentation.custhelp.com/euf/assets/devdocs/cloud19c/Connect_Web_Services_for_SOAP/Default.htm

    I am getting an null reference error when I run a CREATE with the new object:  StackTrace: " at <>x.<>m0(RightNowClient <>4__this)"

    In sample code, what are Namespace and Typename?

    Do these correspond to the OSvC package name?

                    objType.Namespace = "CO";
                    objType.TypeName = "RMA";

    Version:
    WSDL 1.3
    Image:
    Code Snippet:
  • Conor Hughes
    Bulk Export of Incidents via Print Preview using SOAPAnswered3
    Topic posted August 30, 2019 by Conor HughesGreen Ribbon: 100+ Points, tagged SOAP 
    Title:
    Bulk Export of Incidents via Print Preview using SOAP
    Summary:
    Bulk Export of Incidents via Print Preview using SOAP
    Content:

    I recently received a request from a client for the bulk exporting of a large volume of incidents in a readable format. Looking at the 'Incident Print' message template, I can see that a SOAP API call for 'message_render' is being made when pressing the 'Print' button on incidents - however looking in the WSDL on our site I can see that this call isn't exposed to us for use elsewhere.

    Does anyone know of any exposed functionality that would allow for the bulk exporting of incidents in a user-friendly format? I know I could pull back the incident fields & iterate over the threads and export via a few of the API's, but that is rather involved for the volumes we need to export in the given time frame.

    Version:
    19A
  • Julie F
    Write data from Custom Object field to Contact custom field1
    Topic posted October 7, 2019 by Julie FGold Trophy: 10,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
  • Carl Bramblett
    Giving an Account Permissions to Access the REST APIAnswered8
    Topic posted September 27, 2019 by Carl BramblettSilver Medal: 2,000+ Points, tagged REST 
    Title:
    Giving an Account Permissions to Access the REST API
    Summary:
    What is the setting in the console that allows a user to access the REST API?
    Content:

    Hi,

    What is the setting to allow a user to access the REST API? We currently have one admin account that is able to do it, but wish to create a second one that will be used exclusively for automated scripts. As far as I can tell both accounts are identical (both admin accounts), but only one of them is able to use the API. The other account receives an error that they are not authorized.

     

    I'm sure it's a simple setting, but helping me locate it in the Oracle labyrinth would be greatly appreciated! :)

     

    Thanks, 

    Carl

    Code Snippet:

Filter by Date

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