Integrations and APIs for Service

Get Involved. Join the Conversation.

Posts

  • Steven Robert
    REST API and Audiences (marketing rosters)
    Topic posted 12:05 AM by Steven RobertGreen Ribbon: 100+ Points 
    Title:
    REST API and Audiences (marketing rosters)
    Summary:
    Does REST API allow audience creation?
    Content:

    Hi wizards

    Documentation isn't clear to me - I understand that the REST API permits certain activities for Audiences (contacts lists) which are called marketing rosters in the API:

    https://docs.oracle.com/en/cloud/saas/service/19c/cxsvc/op-services-rest-connect-v1.4-contactmarketingrosters-id-patch.html

    Does the API allow for the creation of a list of contacts (i.e contact 12, 13, 42), or only the header object?

     

    Version:
    19C
  • Kenton Banyai
    FTP transfer2
    Topic posted November 11, 2019 by Kenton BanyaiRed Ribbon: 250+ Points, tagged Connect PHP 
    Title:
    FTP transfer
    Summary:
    We are trying to send files with our oracle server
    Content:

    We are trying to write a script that will inevitably send a report to the server we are trying to integrate with. Right now we are just trying to get a file to send, for testing. When we send a file through our site, we get the following error.

    Severity: Warning

    Message: file_get_contents(): open_basedir restriction in effect. File(***external server path*** ) is not within the allowed path(s):

    followed by some file paths. Is this a configuration setting that is preventing us from using php functions?

    Here is the code used, in case you need it for reference,

    $file ="***external server path***";
    $current = file_get_contents($file);
    $current .= "Test2 \n";
    file_put_contents(HTMLROOT . "/euf/assets/themes/standard/images/***",$current);

  • Padma Prabha Varadarajan
    Hash Functions usage
    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
  • 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
  • Jason Wagner
    Looking for the following settings and can't find within...2
    Topic posted October 28, 2019 by Jason Wagner 
    Title:
    Looking for the following settings and can't find within configuration
    Summary:
    Looking for the following settings and can't find within configuration within Oracle Service Cloud (Right Now)
    Content:

    We are looking for these settings in order to do bulk API pulling of incidents out of our environment a we are over our storage capacity.



    PAPI_BULK_EXTRACT_ENABLED
    PAPI_BULK_EXTRACT_INTERVAL_ROWS
    PAPI_BULK_EXTRACT_MAX_ROWS
    PAPI_BULK_EXTRACT_PURGE_DAYS 

  • 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:

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