Integrations and APIs for Service

Get Involved. Join the Conversation.

Posts

  • kate James
    VB.Net and Soap web services4
    Topic posted September 12, 2019 by kate JamesRed Ribbon: 250+ Points, tagged SOAP 
    Title:
    VB.Net and Soap web services
    Summary:
    .NET API to create user accounts
    Content:

    Hi,

    I am looking to automate the account provisioning for users. I've found useful information in the oracle documentation for Java, C# and so on. However, I am looking to use VB.Net, so I would like to know if someone in the community has attempted to do this. If so, can you please comment on your experience and challenges you encountered

    Thanks,

    Kathy

    Version:
    19A
  • Bryan Scarborough
    Custom Process Error/Confusion4
    Topic posted September 11, 2019 by Bryan ScarboroughBlue Ribbon: 750+ Points, tagged Connect PHP 
    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:
  • Sean O'Connor
    Assistance with Taleo Business Edition REST API - RESUME...1
    Topic posted September 4, 2019 by Sean O'Connor, tagged REST 
    Title:
    Assistance with Taleo Business Edition REST API - RESUME Attachment
    Summary:
    Taleo Business Edition REST API - RESUME Attachment
    Content:

    Hello Oracle User Community -

     

    Regarding the Taleo Business Edition REST API documented here:  https://www.oracle.com/technetwork/documentation/tberestapiguide-v15b1-2665296.pdf

     

    In particular, we're having issues using the RESUME Attachment end point.

     

    As outlined in the above documentation:

     

    Update a candidate resume

    POST /candidate/{id}/resume

    The update will replace the old attachment with the new attachment and description. Using “multipart/form-data” POST request.

    Optional request parameter: description If the request parameter description is not sent, the attachment entity description field will use the file name as the description.

    Example:

    http method POST

    https://stgweb1.tbetaleo.com/QANA3/ats/api/v1/object/candidate/82/resume

    Header must include: {:file=>#,:multipart=true}

    For additional information about multipart/form-data, refer to mutilpart/form-data specification (www.w3.org). http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2

    Example header for posting a Word attachment or resume:

    {:file => File.new(“/local/path/zip/resume.doc”, ‘rb’), :content_type => “application/msword”, :multipart => true}, {:cookies => {:authToken => “webapi26117672355175654454”}})

     

    We are having difficulty with the specification above for the headers. 

     

    Does anyone have a working client program that can be shared to assist us in determining the proper header configuration?  Doesn't matter what language or platform, we can decipher it from any example code.

     

    Here is an example of how we are currently constructing the client in Java.  This request is currently returning a 200 response (success) but the resume is not showing up on the candidate profile;  additionally, there is no additional json payload from the endpoint to help detail the call.  Thank you for any insights, sample code or ideas.

     

       public static void postResume(String authToken) throws IOException {

        // Connect to the web server endpoint

        URL serverUrl = new URL("https://chp.tbe.taleo.net/object/candidate/<candidateid>/resume");

        HttpURLConnection urlConnection = (HttpURLConnection) serverUrl.openConnection();

        

        String boundaryString = "*****" + Long.toString(System.currentTimeMillis()) + "*****";

        String fileUrl = "C:/_resume/resumeTest.docx";

        File resume = new File(fileUrl);

        

        // Indicate that we want to write to the HTTP request body

        urlConnection.setDoOutput(true);

        urlConnection.setRequestMethod("POST");

        urlConnection.addRequestProperty("Content-Type", utf8("multipart/form-data; boundary=" + boundaryString));  

        urlConnection.addRequestProperty("File", utf8(fileUrl + ", content_type=application/msword, multipart=true"));

        urlConnection.addRequestProperty("Cookie", utf8(authToken));

        urlConnection.setUseCaches(false);

        urlConnection.setDoOutput(true);

        urlConnection.setDoInput(true);

        

        OutputStream outputStreamToRequestBody = urlConnection.getOutputStream();

        BufferedWriter httpRequestBodyWriter = new BufferedWriter(new OutputStreamWriter(outputStreamToRequestBody));

        

        httpRequestBodyWriter.write(utf8("\n\n--" + boundaryString + "\n"));

        

        // Write the actual file contents

        FileInputStream inputStreamToLogFile = new FileInputStream(resume);

        

        int bytesRead;

        byte[] dataBuffer = new byte[1024];

        while((bytesRead = inputStreamToLogFile.read(dataBuffer)) != -1) {

            outputStreamToRequestBody.write(dataBuffer, 0, bytesRead);

        }

        

        outputStreamToRequestBody.flush();

        

        // Mark the end of the multipart http request

        httpRequestBodyWriter.write(utf8("\n--" + boundaryString + "--\n"));

        httpRequestBodyWriter.flush();

        

        // Close the streams

        outputStreamToRequestBody.close();

        httpRequestBodyWriter.close();

      

        // Read response from web server, which will trigger the multipart HTTP request to be sent.

        System.out.println(urlConnection.getResponseCode());

        BufferedReader httpResponseReader = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));

        String lineRead;

        while((lineRead = httpResponseReader.readLine()) != null) {

            System.out.println(lineRead);

        }  

      

    Version:
    19C
  • Azfar Hussain
    Need to Create New Incident via integration on oracle...2
    Topic posted September 4, 2019 by Azfar HussainRed Ribbon: 250+ Points, tagged REST, SOAP 
    Title:
    Need to Create New Incident via integration on oracle Service Cloud
    Summary:
    Need to Create New Incident via integration on oracle Service Cloud
    Content:

    Do we have any API / Web service available for creating an incident on oracle Service Cloud.??

     

    br

    Azfar.

  • Conor Hughes
    Bulk Export of Incidents via Print Preview using SOAPAnswered1
    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
  • Dev Aditya
    SOAP XML request to create SLA instance and assign it to...Answered4
    Topic posted August 29, 2019 by Dev AdityaGold Trophy: 10,000+ Points, tagged SOAP 
    Title:
    SOAP XML request to create SLA instance and assign it to new contact
    Summary:
    SOAP XML request to create SLA instance and assign it to new contact
    Content:

    Hi Experts,

    I couldn't find any documentation to create contact with multiple SLA instances assigned to it, using SOAP XML request. If anyone has worked on it, please help me with syntax.

     

    Many Thanks,

    Dev

  • Sagar Paswala
    SOAP XML TO Update Address and Custom field with Name and Id...
    Topic posted August 28, 2019 by Sagar Paswala, tagged SOAP 
    Title:
    SOAP XML TO Update Address and Custom field with Name and Id Configuration.
    Summary:
    Needs SOAP XML that Update Adress fields that includes City,Country,State and Custom Field with Name and ID Pair like Dorpdown
    Content:

    Hello All,

    I am Updating Contact Object Using SOAP API and want SOAP XML to update Address Field that includes all address configuration like City,State and Country.

    And Also needs help on How to update NameID,NameIDList Like Fields that have ID and Name as a pair of value

    Please Help me on this

    Version:
    Oracle Service Cloud SOAP API cloud19c
  • Bryan Scarborough
    Process Designer Error2
    Topic posted August 27, 2019 by Bryan ScarboroughBlue Ribbon: 750+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    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 
    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:
  • Chethana KM
    How to improve the performance of REST API calls?
    Topic posted August 21, 2019 by Chethana KMGreen Ribbon: 100+ Points 
    Title:
    How to improve the performance of REST API calls?
    Summary:
    How to improve the performance of REST API calls?
    Content:

    Hi,

    We have schema attributes defined for answers in Agent Desktop->Authoring. One such attribute is "Regulations", which is a datalist.

    The business requirement is as follows:
    We have to display all the Regulation attribute values as a dropdown on Customer portal. For ex: abc, xyz, pqr etc...
    User selects one of the Regulation, say - "abc" and clicks on "Download Report" button.
    This should download all the articles with Regulations attribute set to "abc" into a csv file.


    To achieve the above requirement, we are following the below steps in the code, making more than one API call inside loop:
    1. Firstly, we are hitting the Content REST API to get all the docIds existing in the Service cloud database
    2. For each DocId (obtained from Step#1), we are again hitting the Content API to search for the specific Regulatory attribute value inside the xml field of the article (in the REST API response). When we looped through the docIds, it was taking more time to process fetching of data. Then, to improve the performace, we are calling a function to implement multi curl to make more than one REST API call at a time. Still, the requests are getting executed sequentially only and the performance is not getting improved. Hence, we have thought of implementing parallel execution of multi-curl, for which we need the multi-threading concept/technique in Service Cloud.

    Request you to provide us some direction/suggestions on how to improve the performance on execution of REST API's parallely on Service cloud using multi-threading? (or).
    Is there anyway we can implement cron jobs in Service CLoud? So that, we will schedule the job to execute the code once in a day and store the generated files in Service cloud file system. Then, from Customer portal, we will just show these pre-fetched files for different Regulation types.

    Thanks,
    Chethana

    Version:
    18D

Filter by Date

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