Posts

Posts

  • 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 last edited 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 last edited 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 last edited July 2, 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?
  • Kurt Helfrich
    Connect for PHP - Can't see elements of an answer's...Answered3
    Topic posted May 22, 2013 by Kurt HelfrichGold Trophy: 10,000+ Points, tagged Connect PHP in B2C Service > Integrations and APIs for Service public
    Title:
    Connect for PHP - Can't see elements of an answer's Products array
    Content:

    I'm stumped.  I am trying to do some work with access control based on the products associated to an answer.

    I'm on a clone of the answers/detail page, and I added some code to start figuring out the syntax.

    The fetch of the answer is working OK, and when I print the answer ID or count($ans->Products), I get the right value.

    As my first test, I wanted to print the Name of each ServiceProduct in the array, but I can't.

    This seems to be working OK - not throwing an exception: $p = $ans->Products->fetch($i);

    How would I access the Name of $p, if not $p->Name?  I tried $p->Name->value, too.  No dice.

    Ultimately, I need to look at the root of the products and make some decisions based on that.

    Does anyone have any ideas?

    Version:
    August 2012
    Code Snippet: