Posts

Posts

  • Jonathan Doringuez
    API for Application Level Menus
    Topic posted November 16, 2018 by Jonathan DoringuezBlue Ribbon: 750+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP in B2C Service > Integrations and APIs for Service public
    Title:
    API for Application Level Menus
    Summary:
    Importing and Exporting Workspaces API
    Content:

    Did someone found something like the API's or the command line interface (CLI) for Service Cloud? CLI should be applicable to both AD and Portal for the purpose of automating the migration of files to higher environment.

    I'm also looking for a documentation about command line interface for Oracle Service Cloud (CLI), where can I find it? This is for both AD and Portal pages, API for importing and exporting workspace

    In addition where can I find the API equivalent for all the application level menus and buttons?

    Version:
    18C
  • Mohammed Shanab
    Integration Push Data from Oracle Service Cloud2
    Topic posted November 9, 2018 by Mohammed Shanab, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP in B2C Service > Integrations and APIs for Service public
    Title:
    Integration Push Data from Oracle Service Cloud
    Summary:
    How to call an API or push data into a queue on trigger of a data change
    Content:

    Hi,

    We would like to know if we could make an API call or push a message to a JMS queue on trigger of a data change so that we could propagate the change to other applications in the enterprise. We have a middleware which can expose an API or JMS stack. 

    The current implementation is a pull model where a poller regularly polls Oracle Service Cloud for a change via a watermark custom field which populated on a change. 

    Thanks

    Shanab

  • Sreeram Venkatramani
    Connect PHP for Bulk dataloadsAnswered7
    Topic posted November 8, 2018 by Sreeram VenkatramaniGreen Ribbon: 100+ Points, tagged Connect PHP, REST in B2C Service > Integrations and APIs for Service public
    Title:
    Connect PHP for Bulk dataloads
    Content:

    We are in the process of migrating data from Legacy applications to Oracle Service Cloud. The Legacy Data needs to be migrated to both Standard Objects and a few Custom Objects in Service Cloud.

    For some transactional entities, the volume of data is to the tune of 1 Million - 2 Million. And it is necessary to migate historical data to the new Service Cloud solution for reporting purposes.

    Also all references need to be built during data upload. Example: An Incident needs to be linked to the correct Organization and Contact.

    Currently we are using Connect PHP to import CSV data in bulk. But of late we see the throughput is very small. The PHP scripts have embedded ROQLs to fetch the IDs of the references (like Organization Id of the Organization to be linked to the Incident etc.)

    Would like to understand -

    a. is the use of Connect PHP a correct approach to load Bulk data into Service Cloud
    b. is Connect PHP architecture such that it is inherently slow in loading data
    c. what are the best practices when using Connect PHP for such Bulk data uploads
    d. will the use of REST APIs give better performance compared to Connect PHP

    Any guidance/pointers would help us in taking the next steps to improve performance of our loads.

    Regards,
    Sreeram V

    Version:
    18A
  • santhosh xavier
    Duplicated contact records - via SSO/Connect API1
    Topic posted October 17, 2018 by santhosh xavierBronze Medal: 1,250+ Points, tagged Connect PHP in B2C Service > Integrations and APIs for Service public
    Title:
    Duplicated contact records - via SSO/Connect API
    Content:

    We have Contact SSO implemented in an instance. So via pre_login hooks, the function checks whether a contact record is already in the system, if not create one. I searched all over the forum for how service cloud prevent duplicated contact records.

    So via two browser tabs I tried to loin to the SAML provider at the same time (same credentials) and it eventually created two duplicated contact records. Email sharing is disabled. Contact.login and Contact.email address has the same exact data. It didn't even add the extension if there is duplicate (eg: username.001)

    There is no way to put a unique index on contact otherwise we would have tried that.

    There were other scenarios where there was a 1 minute delay between the Contact records creation but it has the same data.

    Please share if there is a way to prevent duplicate contact records from creating in customer portal via connect API.

    Thanks,

    Santhosh

  • Peeyush Sharma
    Knowledge Advanced - Create Media API
    Topic posted October 12, 2018 by Peeyush SharmaGreen Ribbon: 100+ Points, tagged Connect PHP, REST, SOAP in B2C Service > Integrations and APIs for Service public
    Title:
    Knowledge Advanced - Create Media API
    Summary:
    How to upload images and file attachments in Knowledge Advanced using REST API
    Content:

    Hi,

    I am trying to upload file attachments and images on Knowledge Advanced server using REST API but always getting Errors.

    Anyone has ever tried it?

    This is how m trying it out but its failing.

    https://<IM Host>.custhelp.com/km/api/latest/media

    kmauthtoken        {"siteName":"<IM Host>","integrationUserToken":"","userToken":""}

    Accept             multipart/form-data

  • Muthulakshmi Muthaiah
    Validate a field whether it already exists or not and throw...1
    Topic posted October 9, 2018 by Muthulakshmi MuthaiahBronze Trophy: 5,000+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST in B2C Service > Integrations and APIs for Service public
    Title:
    Validate a field whether it already exists or not and throw an error in contact object
    Summary:
    Validate a field whether it already exists or not and throw an error in contact object
    Content:

    Hi All,

    I need to validate a custom field value whether it exists or not in contact level object. For example, in OSvC we have a validation for an email address, like that I need to achieve it for the custom field. If the value already exists, then it throws the error message.

    Could you please help me how to achieve this validation in OSvC?

    Thanks,

    Muthulakshmi

  • Pramod Vasudeva Murthy
    Skype Integration with OSvC
    Topic posted October 7, 2018 by Pramod Vasudeva MurthyBlack Diamond: 60,000+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP in B2C Service > Integrations and APIs for Service public
    Title:
    Skype Integration with OSvC
    Summary:
    Skype embodiment in OSvC Agent Desktop
    Content:

    Hi All,

    I have a requirement to integrate OSvC and Skype. There are two ways to go with:

    • Using APIs: Though this more like OSvC Chat APIs, we need to setup our own UI/UX. This is a long, tedious but sure shot process that will yield results.
    • Using Bots: There is a bot API available, but this more of a intermediary as bot answers customer first and then links agent. This is modern, technology ahead and time consuming. And not to mention, there are quite a few unknowns ahead.

    Are there any Connectors available for this? If Yes, please recommend a few.

    Thanks,

    VIP

    Version:
    18C
  • Pandurang Hargude
    Connect for PHP initConnectAPI() user authentication...Answered35.0
    Topic posted June 1, 2018 by Pandurang Hargude, tagged Connect PHP in B2C Service > Integrations and APIs for Service public
    Title:
    Connect for PHP initConnectAPI() user authentication change username
    Content:

    Hello,

    When connecting by using initConnectAPI() I notice that you can do so without specifying a username and password and the documentation recommends this'. This has some impact regarding accountability as the Audit Log stamps the action as performed by 'UserName'.

    However when you do specify a username and password of a Connect enabled account , it correctly comes in audit log with specified username, But when not specifying the username & password it takes one default user, I want to change this Username so need to know where it is configured.

    Thanks in advance.

     

    Version:
    Service Cloud may 2015
    Code Snippet:
  • Ramy NATOUR
    [Knowledge Foundation API && Connect PHP API] Getting...Answered1
    Topic posted July 1, 2015 by Ramy NATOURSilver Medal: 2,000+ Points, tagged Connect PHP in B2C Service > Integrations and APIs for Service public
    Title:
    [Knowledge Foundation API && Connect PHP API] Getting objects containing only NULL fields
    Content:

    Hello everyone,



    I'm currently facing a strange behaviour on both Knowledge Foundation API and Connect PHP API : Values returned by GetSmartAssistantSearch/SearchContent/Fetch are Objects containing only null fields.



    Here is a var_dump of a fetched account for example :





    ["Account"]=>
    object(RightNow\Connect\v1_2\Account)#22 (25) {
    ["ID"]=>
    NULL
    ["LookupName"]=>
    NULL
    ["CreatedTime"]=>
    NULL
    /* [...] */
    ["PasswordExpirationTime"]=>
    NULL
    ["Phones"]=>
    NULL
    ["Profile"]=>
    NULL
    ["SalesSettings"]=>
    NULL
    ["ServiceSettings"]=>
    NULL
    ["Signature"]=>
    NULL
    ["StaffGroup"]=>
    NULL
    }



    This behaviour seems strange to me because :



    • I called the InitConnectAPI() function after importing connect_init.phph file. I tried with both no args and with username + password
    • In case I give an incorrect account ID to the RNCPHP\Contact::fetch() function, it returns an error . Assuming this, he manages to find the searched contact when i supply the good ID but all its fields are NULL.
    • Not a single Exception is thrown nor a single error occurs (E_ALL is on)
    • All the needed permissions for the profile's account used are set to true
    • Getting those objects via ROQL(Object Explorer or Soap) returns the correct object with the correct values in the fields


    The above example treats only of the Connect PHP API behavior but I have more or less the same issue on the Knowledge Foundation API described in this post.



    Error(!= Warning) on the read-only init.php file:



    A call to the error_get_last() function after the fetches says that there is an error in the init.php read-only core's file  :




    Array
    (
    [type] => 8
    [message] => Undefined index: REDIRECT_URL
    [file] => /cgi-bin/siebeltocloud_fr.cfg/scripts/cp/core/framework/3.2.4/init.php
    [line] => 246
    )


     



    Questions:



    Assuming this issue touches both the Knowledge Foundation API and the Connect PHP API and behaves in a very close way:



    • Am I missing a configuration/initialization step (giving the permissions to the account used, calling InitConnectAPI(acc_usr, acc_pwd) )?
    • After finding the fetched contact, what step in the fields population could go wrong ?
    • Is the error coming from the init.php file the cause of this issue ? If yes, how can this issue be solved since the file is read-only and in the core (which I don't want to edit) ?
    • Is the field populating function from the Knowledge API and Connect PHP API the same ? How could it fail and what can be done to solve this ?


    If anyone has faced the same issue, giving a workaround/clues to solve it would be very kind.



    Thanks in advance,



    Have a nice day.



     



    Edit:



    • Tried using the function RNCPHP\ROQL::queryObject() and getting an empty result set as well
    Version:
    November 2014 Release
    Code Snippet:
  • Pramod Kumar
    Connect PHP API.1
    Topic posted March 20, 2014 by Pramod KumarRed Ribbon: 250+ Points, tagged Connect PHP in B2C Service > Integrations and APIs for Service public
    Title:
    Connect PHP API.
    Content:

    Hi, I am new to php. i want to integrate the rightnow to ebs through php.

    I am having some information in Oracle RightNow, and Oracle EBS. I need to exchange the information between each other by using php as an intermediate language. By using Connect phpAPI, is ther any way to connect the both instances by using php?? If so how to achieve that? Please i want some help to achieve this task. 
     
    http://documentation.custhelp.com/euf/assets/devdocs/may2013/Connect_PHP/Default.htm
     
    I am following this link. But still i am not having clear idea how to work with php. Can any one help me in doing the above task?