Integrations and APIs for Service

Get Involved. Join the Conversation.

Posts

  • Padma Prabha Varadarajan
    Hash Functions usage15.0
    Topic posted November 11, 2019 by Padma Prabha VaradarajanRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST 
    Title:
    Hash Functions usage
    Summary:
    Alternate workaround for Hash function
    Content:

    Hi Team, 

    We are in need of using Hash Functions for one of our business requirement that needs to be implemented in Oracle Service Cloud. We have been notified that the Hash Functions are disabled for the php versions available in our application. In this case, please suggest us on the ways that we have to follow to implement the similar functionality as in Hash Functions. 

    Thanks

    Version:
    18C
  • Mike
    RESTFUL Bulk Delete Incident AttachmentsAnswered13
    Topic posted May 10, 2019 by MikeBronze Medal: 1,250+ Points, tagged REST 
    Title:
    RESTFUL Bulk Delete Incident Attachments
    Summary:
    Is there a method to bulk delete attachments from incidents?
    Content:

    Referencing the API Guide I was able to figure out how to delete attachments from individual incidents. For example 

    curl -k -H 'OSvC-CREST-Application-Context:Delete incident attachments' -X DELETE "https://rest_user:xxxxxxxx@acme--tst.custhelp.com/services/rest/connect/v1.3/incidents/15339/fileAttachments/169050"

    I was curious if anyone know's of a way to perform a bulk delete of attachments but preserve the incident?

    Thanks 

    Mike 

    Version:
    18A
  • jagadeesh gattupalli
    Access Service cloud Managed tables through REST API and...Answered1
    Topic posted November 6, 2019 by jagadeesh gattupalliBlue Ribbon: 750+ Points, tagged Connect PHP, REST 
    Title:
    Access Service cloud Managed tables through REST API and ROQL
    Summary:
    How to access Service cloud Managed tables into REST API and ROQL
    Content:

    HI ,

    Can any one help me how to access Managed tables from REST API and  through ROQL ?

    SurveyQuestions

    SurveySession

    ContentRatingSummaries

    ...... (more)

    From ROQL when I execute below query I am getting error "Invalid object name: Survey".

    SELECT SurveyQuestions.* FROM Survey WHERE ID=3;

     

    Kind Regards

    Jagadeesh G

    Version:
    19B
  • Jim Reynolds
    Bulk Extract Incidents1
    Topic posted November 3, 2019 by Jim ReynoldsRed Ribbon: 250+ Points, tagged REST 
    Title:
    Bulk Extract Incidents
    Content:

    Hello,

    I am running a bulk extract of incidents using the REST API. Has anyone done this before? Can anyone give me a rough estimate of the time it will take before I am able to download the extract?

    When looking up the progress of the extract the only information is available is that is is still in the "run" state. 

     

    Image:
  • David Ritchie
    Filter format for date between in Rest APIAnswered2
    Topic posted October 30, 2019 by David RitchieBlue Ribbon: 750+ Points, tagged REST 
    Title:
    Filter format for date between in Rest API
    Summary:
    Format for an analyticsReport filter for date between
    Content:

    Hi,

    I'm trying to use the RESTful API to trigger an analyticsReportResults programmatically.  This is working fine but now I am trying to pass through a filter.  I looked in the documentation and it hows how to send a filter for name but my report has a filter which is between two dates.  I can't find anything in the documentation which shows how these two dates should be formatted.  I don't know if each date is a different filter, or if they both go in the same filter with some kind of differentiation.

    Any help appreciated,

    Dave

    Version:
    19B
  • Igor Touguinhó
    [Knowledge Advanced] Adding attachment to content2
    Topic posted October 30, 2019 by Igor TouguinhóBlue Ribbon: 750+ Points, tagged REST 
    Title:
    [Knowledge Advanced] Adding attachment to content
    Summary:
    How can I add attachments to content using rest api
    Content:

    I'm trying to develop an application that creates contents on my KA. First, I was only creating and publishing contents with text fields, but now I want to add attachments to the contents, even using UPDATE or CREATE service.

    I did not found on documentation how can I do this. 

    Need some help to create this integration, anybody can help me ?

    Version:
    KA 19C
  • Igor Touguinhó
    [Knowledge Advanced] Update content errorAnswered5
    Topic posted October 28, 2019 by Igor TouguinhóBlue Ribbon: 750+ Points, tagged REST 
    Title:
    [Knowledge Advanced] Update content error
    Summary:
    I can't update any content because of a recordId invalid error
    Content:

    Hello,

    I'm testing update content service on KA Rest API, but I'm getting the following error (see code below):

    {
        "error": {
            "title": "An application error has occurred. Root cause: Invalid value for [299EF269FFDE46789E02D43A2C8E952C]",
            "errorPath": null,
            "errorCode": "OK-GEN0003",
            "type": "APPLICATION",
            "detail": null
        },
        "errorDetails": [
            {
                "title": "Invalid value for [299EF269FFDE46789E02D43A2C8E952C]",
                "errorPath": "recordId",
                "errorCode": "OK-GEN0024",
                "type": "VALIDATION",
                "detail": null
            }
        ]
    }

     

    I got this recordId on GET content service:

    {
        "recordId": "299EF269FFDE46789E02D43A2C8E952C",
        "versionId": "2EFC2007AAC543DAB3989CDB80864F82",
        "documentId": "INT95",
        "title": "TEST CONTENT",
        "version": "1.0",
        "answerId": 1004336,
        "locale": {
            "recordId": "pt_BR"
        },
        "dateModified": "2019-10-25T17:02:52-0300",
    }

    I need help !!!

    Version:
    19C
    Code Snippet:
  • 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:
  • 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
  • Julie F
    Write data from Custom Object field to Contact custom field1
    Topic posted October 7, 2019 by Julie FBronze Crown: 15,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.

Filter by Date

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

Filter by Type