Integrations and APIs for Service

Get Involved. Join the Conversation.

Posts

  • Vijay Krishna
    Chat REST ServiceAnswered25.0
    Topic posted Yesterday 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 posted 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 posted October 8, 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:
  • 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
  • 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:
  • 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:
  • Devi Dutt Gautam
    How I can change the OIC integration trigger after...2
    Topic posted September 27, 2019 by Devi Dutt Gautam 
    Title:
    How I can change the OIC integration trigger after integration implementation completed?
    Summary:
    How I can delete the existing trigger and add new trigger?
    Content:

    Hi,

    I have created the OIC integration which is triggered by the JMS queue. Integration implementation completed but, now I want to replace the trigger of the integration(marked in the red circle in Pic) from JMS Queue to Rest trigger.

    How I can delete the existing OIC integration trigger and add a new trigger?

    Image:
  • chidambaram CT
    Left Join contact with Custom ObjectAnswered1
    Topic posted September 23, 2019 by chidambaram CTBronze Trophy: 5,000+ Points, tagged Connect PHP, SOAP 
    Title:
    Left Join contact with Custom Object
    Summary:
    Left Join contact with Custom Object
    Content:

    I have custom object CO.EmploymentDetails with fields Branch,ContactID etc.. This custom object is related to Contact.


    select ID,Contact.CustomFields.c.membership_number,Branch from custom object from Contact C 
    where Emails.EmailList.AddressType.ID=0 and ID=163085


    Can you provide me syntax to get branch?

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