Integrations and APIs for Service

Get Involved. Join the Conversation.

Posts

  • Chethana KM
    How to access attributes of an article using REST API2
    Topic posted August 16, 2019 by Chethana KM, tagged REST 
    Title:
    How to access attributes of an article using REST API
    Summary:
    How to access attributes of an article using REST API
    Content:

    Hi,


    We have some attributes defined inside answer in Agent Desktop. Some of the attributes are <Title>, <Regulations>, <Change_Type> etc.. So, when we create an article in Authoring, we can set the values for these attributes and save the article.

    For some business requirement, we need to fetch all the articles having a specific value, say "N/A" inside <Regulations> attribute using REST API
    We tried the following Content REST API call with <title> attribute in the query parameter. It worked.
    https://sitename-irs.custhelp.com/km/api/latest/content?q=title likeAny ('*Request*')

    But, when we try to query for a custom attribute like <Regulations> as below, we are getting an error:
    https://sitename-irs.custhelp.com/km/api/latest/content?q=REGULATIONS likeAny ('*N/A*')

    Error is as follows:
    "An application error has occurred. Root Cause: One or more fieldNames used in the criteria are unknown and hence the query cannot be evaluated!"
    I have attached the error snapshot from Postman (Postman_Error_CustomAttribute.PNG)

    Could you please let us know how to query for attributes inside an article using REST API?

    Note:
    I have attached the sample response of below Content API call for an answer-1002441
    https://sitename-irs.custhelp.com/km/api/latest/content/answers/1002441?isForEdit=true&mode=FULL
    Please note that the attributes like Regualtions,title etc are inside "xml" field in the Content API response.
    "xml": "<PROCEDURES><TITLE><![CDATA[Requesting a copy of an overdraft/insufficient available funds notice ]]></TITLE><LAST_REVIEW_DATE><![CDATA[2019-04-30 05:00:00 Etc/GMT]]></LAST_REVIEW_DATE><REGULATIONS SECURITY=\"RN_ACCESS_LEVEL_13\"><VALUE><![CDATA[N/A]]></VALUE><DISPLAY><![CDATA[N/A]]></DISPLAY><GUID><![CDATA[6402216618fb1201656f1f09790065eb]]></GUID></REGULATIONS></PROCEDURES>"

    Response file attached: Content_API_Response1.txt

    Thanks,
    Chethana

    Version:
    18D
    Image:
  • Janusz Jasinski
    OSC-CREST-00013 - Unrecognised resource25.0
    Topic posted July 17, 2019 by Janusz JasinskiBronze Crown: 15,000+ Points, tagged Connect PHP, REST 
    Title:
    OSC-CREST-00013 - Unrecognised resource
    Content:

    Hi,

    Please see code below - so I'm trying to upload Base64 data as an attachment to an incident.

    However I get this error:

    {
        "type": "https://mydomain.custhelp.com/services/rest/connect/exceptions/OSC-CREST-00013",
        "title": "Unrecognised resource",
        "status": 404,
        "detail": "Resource with id 705951 not found",
        "instance": "https://mydomain.custhelp.com/services/rest/connect/v1.3/incidents/705951/fileAttachments",
        "o:errorCode": "OSC-CREST-00013"
    }

    This incident exists though - I can confirm this by going to the link the error says does not exist. This code sits in the model.

    Am I doing anything obviously wrong?

    Code Snippet:
  • madan mohan
    To get the Absence Types available1
    Topic posted July 9, 2019 by madan mohan, tagged REST 
    Title:
    To get the Absence Types available
    Summary:
    To get the Absence Types available in an organization
    Content:

    Hi,

    We are trying to utilize the APIs for creation of absence request. We are able to post an absence request . As an input we need to provide the absence type for creating an absence request. Is there any API which we can utilize to get the list of absence types configured in an organization?

    Thanks in advance.

    Regards,

    Madan

    Version:
    hcmRestApi/resources/11.13.18.05
  • Simone Vanotti
    OIC Use CriptJS Library
    Topic posted July 1, 2019 by Simone VanottiRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP 
    Title:
    OIC Use CriptJS Library
    Summary:
    OIC Use CriptJS Library
    Content:

    Hello,

    I need to use a CriptoJS Library in call JS in an integration ( Oracle Integration Cloud Service).  Somebody know how to do it ?

    I should write the follow code in my js call but when run the integration, It finish in error becaus does not identifier "CryptoJS":

    var signature = CryptoJS.HmacSHA1(baseString, key).toString(CryptoJS.enc.Base64);

     

    Thanks,

    Simone

  • Simone Vanotti
    OIC Netsuite Connection Timeout1
    Topic posted July 1, 2019 by Simone VanottiRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP 
    Title:
    OIC Netsuite Connection Timeout
    Summary:
    OIC Netsuite Connection Timeout
    Content:

    Hello,
    I'm using a trial version of OIC. My scope is that to create an integration between oracle HCM and Netsuite. I've create HCM connection, tested e validated with successfull it.
    When I created the Netsuite Connection with your adapter, It went in Timeout error, I tried with the Credential Authentication and with Token Based Auth in security configuration. I received ever the follow error:
    CASDK-0002 : Unable to access the host javax.xml.soap.SOAPException: Message send failed: Connection timed out (Connection timed out) ===== reqeust ======== SOAPAction:getDataCenterUrls Content-Type:text/xml; charset=UTF-8 Content-Length:261 <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><urn:getDataCenterUrls xmlns:urn="urn:platform_2019_1.webservices.netsuite.com"><urn:account>TSTDRV2123673</urn:account></urn:getDataCenterUrls></env:Body></env:Envelope>
    javax.xml.soap.SOAPException: Message send failed: Connection timed out (Connection timed out) ===== reqeust ======== SOAPAction:getDataCenterUrls Content-Type:text/xml; charset=UTF-8 Content-Length:261 <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><urn:getDataCenterUrls xmlns:urn="urn:platform_2019_1.webservices.netsuite.com"><urn:account>TSTDRV2123673</urn:account></urn:getDataCenterUrls></env:Body></env:Envelope>
    Message send failed: Connection timed out (Connection timed out) ===== reqeust ======== SOAPAction:getDataCenterUrls Content-Type:text/xml; charset=UTF-8 Content-Length:261 <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><urn:getDataCenterUrls xmlns:urn="urn:platform_2019_1.webservices.netsuite.com"><urn:account>TSTDRV2123673</urn:account></urn:getDataCenterUrls></env:Body></env:Envelope>
    Connection timed out (Connection timed out)
    The security configuration is correct because I've tested a SOAP call with the same configuration in postman and I get a success.
    Can you help me please?

    Version:
    1
  • Julie F
    OSC-CREST-00028 You are forbidden to access this site.Answered10
    Topic posted June 28, 2019 by Julie FBronze Trophy: 5,000+ Points, tagged Connect PHP, REST 
    Title:
    OSC-CREST-00028 You are forbidden to access this site.
    Summary:
    API to update custom objects gives 403 Forbidden error
    Content:

    We have set these two configurations settings correctly for our domain:

    SEC_PAPI_INTEG_HOSTS_REST

    PAPI_CORS_DOMAIN_LIST

    We have given a user specifically set up permissions for our custom objects and have also tried with a full admin account.

    We keep getting 403 Forbidden error which shows OSC-CREST-00028 You are forbidden to access this site.

  • Camilo Peña
    ¿How to? API RN OSvC connected to DialogFlow5.0
    Topic posted June 17, 2019 by Camilo Peña, tagged REST 
    Title:
    ¿How to? API RN OSvC connected to DialogFlow
    Summary:
    Hi, I need to retrieve or create an incident with the fullfillment option in dialogflow, obtaining an answer from the API REST of OSvC
    Content:

    The Main idea is to connect the RN API REST to DialogFlow, and with a fullfillment option, retrieve info of an incident or maybe create one. 

    If you could help me, would be great.

     

    Thanks. 

    Version:
    1.3
  • Sreedhar Loorthu
    How to use CURLFile() with File Attachment of...15.0
    Topic posted June 10, 2019 by Sreedhar Loorthu, tagged Connect PHP, Custom Process Models - CPMs, REST 
    Title:
    How to use CURLFile() with File Attachment of Incident
    Summary:
    Fetch File Attachment from Incident and Pass it to CURLFile() function using PHP
    Content:
    As part of Integration, I need to pass an image file to REST API. 
    It was recommended to use CURLFile('') function for assigning file.
    So, I need to get the file from a particular Incident's FileAttachment and assign it in JSON using PHP.
    Find the bleow sample code for CURLOPT_POSTFIELDS.
     
    CURLOPT_POSTFIELDS:
     
    array('file'=> new CURLFILE('imagefile.jpg'),
      'method' => 'method_name',
      'api_key' => 'XXXXXXXAPIKEYXXXXXXX',
      'body' => '{
    "to":"to_number",
    "type": "image", 
    "image" : {
    "caption" : "Image File"
    },
    }',
    'from' => 'from_number',
    'format' => 'json')
     
     
    How to get the file from Incident and pass it to CURLFILE('') function?
  • neha agarwal
    running a query in Postman but getting error
    Topic posted June 3, 2019 by neha agarwal, tagged REST 
    Title:
    running a query in Postman but getting error
    Summary:
    i am trying to generate a JSON file for the below query but not able to , can someone suggest what is wrong with my request, i have looped filter used, hope i have set it correct
    Content:

    Request:

    {

        "id": 100443,

        "filters": [

            {

                "name": "Survey",

                 "values":{

                    "EnergyAustralia":{

                   "Email Surveys":

                   [

                    "Billing Episode Survey- Email",

                    "Billing Episode Survey- Email_June2017",

                    "Episode -Power of Choice",

                    "First Bill Survey",

                    "Move Home",

                    "Transactional Survey",

                    "Transactional Survey-Email-V1.1"

                ]

                                                    }

                                                    }

            },

            {

                "name": "Survey Completed Date",

                "values": [

                   "2018-09-01T12:00:00.000Z",

                    "2018-09-02T12:00:00.000Z"

                ]

            }

        ]

    }

     

    Response:

     

    {

        "type": "https://energyaustralia--tst.custhelp.com/services/rest/connect/exceptions/OSC-CREST-00006",

        "title": "An attempt to write a resource failed",

        "status": 400,

        "detail": "A problem setting a property was encountered: Invalid ObjectType: 6",

        "instance": "https://energyaustralia--tst.custhelp.com/services/rest/connect/v1.4/analyticsReportResults",

        "o:errorCode": "OSC-CREST-00006"

    }

  • Sanjay Kumar
    Advance knowledge API, how to find/update schema attribute...
    Topic posted May 21, 2019 by Sanjay Kumar, tagged REST 
    Title:
    Advance knowledge API, how to find/update schema attribute permissions assigned to articles
    Summary:
    How to find/update schema attribute permissions assigned to articles using OKCS API
    Content:

    hi Team, I have been asked to find articles who has a specific attribute set with particular permissions (user groups) assigned. we are using OKCS API since last 3 years but there were few articles that were set with old schema attribute that has a particular UG assigned. now we need to remove those permissions from that attribute so that it can inherit article level permissions. we have around 10000 articles and it would be a good idea to use API instead of manually going through each article and find and fix the articles. I couldn't find any reference to this approach, any help would be appreciated

    thank you

    Sanjay

     

    Version:
    17 -D

Filter by Date

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