Integrations and APIs for Service

Get Involved. Join the Conversation.

Posts

  • kate James
    Unable to create a contact object1
    Topic posted Yesterday by kate JamesRed Ribbon: 250+ Points, tagged SOAP 
    Title:
    Unable to create a contact object
    Summary:
    .NET API to create contact and incidents
    Content:

    Hi all,

    I'm trying to follow the tutorial for connect Web Services for SOAP with .NET. However, for some reasons, my web application is throwing an error in Create

    Severity Code Description Project File Line Suppression State
    Error CS7036 There is no argument given that corresponds to the required formal parameter 'ProcessingOptions' of 'RightNowSyncPortClient.Create(ClientInfoHeader, APIAccessRequestHeader, RNObject[], CreateProcessingOptions, out RNObject[])'
     
    Tutorial link: http://documentation.custhelp.com/euf/assets/devdocs/cloud19c/Connect_Web_Services_for_SOAP/Default.htm
     
     
     
    Does anyone knows why I am getting this error?
     
    Thank you in advance!

    Kate

    Version:
    2018B
    Code Snippet:
  • kate James
    VB.Net and Soap web services5
    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
  • NickL
    Unable To Create Attachments Using RightNow Adapter When...1
    Topic posted September 19, 2019 by NickL, tagged SOAP 
    Title:
    Unable To Create Attachments Using RightNow Adapter When Using Create Incident
    Summary:
    Although attachments are created, they are not complete
    Content:

    I'm currently using the RightnNow adapter from BPEL to create new Incidents in Oracle Service Cloud.

    The Incidents are created successfully, along with the attachment, but when the attachment is viewed in AgentWeb, it shows as being only 57 bytes.

    The payload sent to Oracle Service Cloud is as below:

    <InvokeRightNowIncidentCreate_Create_InputVariable>
       <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters">
          <Create xmlns="http://xmlns.oracle.com/pcbpel/adapter/rightnow/[removed]/ProcessCXService/RightNowIncidentCreate/types">
             <Incident>
                <Category xmlns="urn:objects.ws.rightnow.com/v1_4">
                   <Name xmlns="urn:base.ws.rightnow.com/v1_4">Contracts</Name>
                </Category>
                <Channel xmlns="urn:objects.ws.rightnow.com/v1_4">
                   <Name xmlns="urn:base.ws.rightnow.com/v1_4">Post</Name>
                </Channel>
                <IncidentCustomFields xmlns="urn:objects.ws.rightnow.com/v1_4">
                   <c>
                      <sr_type>
                         <Name xmlns="urn:base.ws.rightnow.com/v1_4">Request</Name>
                      </sr_type>
                   </c>
                </IncidentCustomFields>
                <FileAttachments xmlns="urn:objects.ws.rightnow.com/v1_4">
                   <FileAttachmentList action="add">
                      <ContentType>application/pdf</ContentType>
                      <Data>
    JVBERi0xLjYKJfH59/YKJTMuNS1MTXgxOTIwLjE0NTcyCjUgMCBvYmoKPDwvRmlsdGVyL0ZsYXRl
    ...
    ...
    ...
                      </Data>
                      <FileName>GNTRXSM-1_20190822_2_6bb5cdc1-4270-4bbd-9e6a-110403946d8e_CX-GENERIC_HO.PDF</FileName>
                      <Description>GNTRXSM-1_20190822_2_6bb5cdc1-4270-4bbd-9e6a-110403946d8e_CX-GENERIC_HO.PDF</Description>
                      <Name>GNTRXSM-1_20190822_2_6bb5cdc1-4270-4bbd</Name>
                   </FileAttachmentList>
                </FileAttachments>
                <PrimaryContact xmlns="urn:objects.ws.rightnow.com/v1_4">
                   <Contact>
                      <Name xmlns="urn:base.ws.rightnow.com/v1_4">Scanning Dummy</Name>
                   </Contact>
                </PrimaryContact>
                <Product xmlns="urn:objects.ws.rightnow.com/v1_4">
                   <Name xmlns="urn:base.ws.rightnow.com/v1_4">Employee Changes</Name>
                </Product>
                <Subject xmlns="urn:objects.ws.rightnow.com/v1_4">Contracts</Subject>
             </Incident>
          </Create>
       </part>
    </InvokeRightNowIncidentCreate_Create_InputVariable>
    

    The call is successful, and returns the ID of the newly created Incident::

    <InvokeRightNowIncidentCreate_Create_OutputVariable>
       <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="parameters">
          <ns0:CreateResponse xmlns:n0="urn:messages.ws.rightnow.com/v1_4" xmlns:n2="urn:base.ws.rightnow.com/v1_4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:n1="urn:objects.ws.rightnow.com/v1_4" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/rightnow/[removed]/ProcessCXService/RightNowIncidentCreate/types">
             <ns0:Incident xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/rightnow/[removed]/ProcessCXService/RightNowIncidentCreate/types">
                <n2:ID id="2067"/>
             </ns0:Incident>
          </ns0:CreateResponse>
       </part>
    </InvokeRightNowIncidentCreate_Create_OutputVariable>
    

    However, when viewing the Incident in Oracle Service Cloud (see uploaded image) attachment file size is shown as 57 bytes.

    When downloading the attachment, and opening the file in Notepad++, only the following lines are present:

    %PDF-1.6
    %סשקצ
    %3.5-LMx1920.14572
    5 0 obj
    <</Filter/Flate
    

     

     

    Version:
    JDeveloper 12.1.2.3.0/WebLogic 12.1.2.3.0/Oracle Service Cloud 18B (Build 274) - Browser UI Version 3.19.09.06-b0002
    Image:
  • Junio Vitor de Paula
    What the correct REST/SOAP Service to insert values in List...
    Topic last edited November 14, 2019 by Junio Vitor de PaulaRed Ribbon: 250+ Points, tagged REST, SOAP 
    Title:
    What the correct REST/SOAP Service to insert values in List Of Values?
    Summary:
    What the correct REST/SOAP Service to insert values for List Of Values?
    Content:

    Hi folks,

    Someone know or use the SOAP/REST service to post values for "List of Values" in Oracle Cloud?

    Could you please share the services links or examples for it?

    Thanks,
    Junio Vitor

    Version:
    19D
  • Sristy Arya
    Rest API - Download all file attachments of an...
    Topic posted November 14, 2019 by Sristy AryaBronze Trophy: 5,000+ Points, tagged REST 
    Title:
    Rest API - Download all file attachments of an Object(Opportunities)
    Summary:
    Rest API - Download all file attachments of an Object(Opportunities)
    Content:

    Hello Everyone,

    I have a requirement wherein I need to download all file attachments of Opportunities (Zip) using Rest API . I used the below to do the same but it downloads only 1 attachment in the Zip and not all and there are around 35 attachments in each Opportunity and there are 717 Opportunities for which Attachments are to be downloaded.

    https://sitename/services/rest/connect/v1.3/opportunities/opp_id/fileAttachments?download&compress=tgz

    Can anybody help in this ?

     

    Thanks

    Sristy

    Version:
    19B
  • 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
  • Steven Robert
    REST API and Audiences (marketing rosters)Answered1
    Topic posted November 13, 2019 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);

  • 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

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