Integrations and APIs for Service

Get Involved. Join the Conversation.

Posts

  • Faizan Basit
    URGENT - Reference Required : RightNow Service Integration...3
    Topic posted April 20, 2019 by Faizan Basit, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP 
    Title:
    URGENT - Reference Required : RightNow Service Integration with retail POS
    Summary:
    Integration reference required for deal closure - compliance requirement
    Content:

    Hi team,

    I urgently need a reference of RightNow integration with retail POS. Our closure is dependent on this.

    Customer is a large retailer and uses Microsoft Dynamics for POS.

    Customer is concerned how customer support agent will be able to check customer purchase/ return history.

    PLEASE HELP!

    Version:
    latest
  • Saji Mathew
    ConnectPHP Error1
    Topic posted April 11, 2019 by Saji Mathew, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    ConnectPHP Error
    Summary:
    Not enough space for new variable
    Content:

    Hi Team,

    I'm trying to create variables (to keep answer detail page url)  with custom script, but after creating 700 record(s) get created the script is throwing an error which says "Not enough space for new variable" . Anybody knows the reason behind this error.

    As of now I have 3333 variable(s) in variable object. After I got this error, I tried to create variable from console, and I could able to create .

    Any help is appreciated.

     

    RightNow\Connect\v1_2\ConnectAPIErrorFatal Object
    (
        [message:protected] => Cannot save/update: Variable(ID=0): 
    Application Error
     Description: Not enough space for new variable, name: ANSWER_4285
    
        [string:Exception:private] => 
        [code:protected] => 7
        [file:protected] => /cgi-bin/wd_en.cfg/scripts/custom/variable.php
        [line:protected] => 2
        [trace:Exception:private] => Array
            (
                [0] => Array
                    (
                        [file] => /cgi-bin/wd_en.cfg/scripts/custom/variable.php
                        [line] => 2
                        [function] => save
                        [class] => RightNow\Connect\v1_2\RNObject
                        [type] => ->
                        [args] => Array
                            (
                                [0] => 196608
                            )
    
                    )
    
                [1] => Array
                    (
                        [file] => /cgi-bin/wd_en.cfg/scripts/custom/variable.php
                        [line] => 2
                        [function] => createAnswerVariable
                        [class] => answerVariable
                        [type] => ->
                        [args] => Array
                            (
                            )
    
                    )
    
                [2] => Array
                    (
                        [file] => /cgi-bin/wd_en.cfg/scripts/custom/variable.php
                        [line] => 2
                        [function] => performActionOnVariable
                        [class] => answerVariable
                        [type] => ->
                        [args] => Array
                            (
                            )
    
                    )
    
  • Kelvin Chung
    Check if Custom Object update from SOAP or from Agent...1
    Topic posted February 27, 2019 by Kelvin ChungGreen Ribbon: 100+ Points, tagged Connect PHP, Custom Process Models - CPMs, SOAP 
    Title:
    Check if Custom Object update from SOAP or from Agent Desktop in CPM
    Summary:
    Check if Custom Object update from SOAP or from Agent Desktop in CPM
    Content:

    Hi 

    Quick questions,

    (1) Is there a way to find out if Custom Object update from SOAP or from Agent Desktop in CPM in ActionUpdate ?

    (2) Is there a way to reject  RNCPM\ActionCreate of custom object in CPM script beside calling the object destroy() method ?

    Thanks!

    - Kelvin

     

     

    Version:
    August 2017
  • Bruno Morgado
    Integration between Rightnow and Eloqua1
    Topic posted February 25, 2019 by Bruno Morgado, tagged Connect PHP, Custom Process Models - CPMs, REST, SOAP 
    Title:
    Integration between Rightnow and Eloqua
    Summary:
    Integrating Rightnow with Eloqua without ICS
    Content:

    I'm looking foward to integrate Rightnow with Eloqua but without using an integrator like an ICS.

    Wich ways out do I have?

    Version:
    18D
  • Padma Prabha Varadarajan
    Get TimeZone Value1
    Topic posted February 25, 2019 by Padma Prabha VaradarajanRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    Get TimeZone Value
    Summary:
    Fetch TimeZone using ROQL
    Content:

    Hi,

    I am trying to fetch the TimeZone value of a user from ROQL.

    But unable to get any values if I say as below:

    "Select timezone from Account"

    Should I query in a different way or is there anything else to be done here.

    Please help me here. 

     

    Thanks in Advance

    Padma

    Version:
    Oracle Service Cloud, 18C
  • Padma Prabha Varadarajan
    DateTime field mismatch5
    Topic posted February 25, 2019 by Padma Prabha VaradarajanRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    DateTime field mismatch
    Summary:
    Date field shows different value
    Content:

    Hi,

    We are stamping values in a date field from UI and picking the value from database for other logic calculations.

    In this, date value in UI is one day ahead of the value in ROQL. 

    Please provide us a solution on how to fix this.

     

    Thanks

    Padma

     

    Version:
    Oracle Service Cloud, 18C
  • Padma Prabha Varadarajan
    Error in execution of Php Script1
    Topic posted January 22, 2019 by Padma Prabha VaradarajanRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    Error in execution of Php Script
    Summary:
    CRON job failure from Oracle
    Content:

    Hi,

    We have scheduled a CRON job with oracle on one of our File Manager Scripts on daily basis. Some times, we are receiving a failure email from oracle stating the below:

     

    Cron job failed with the following message:

    Step 1 [php] failed: Execution Error: Non zero exit status 255 Tail end of php output:

    Status: 500 Internal Server Error

    Content-Type: text/html; charset=UTF-8

     

    Please let me know how to over come this issue. 

    Is this something to be done with the script or an error from oracle server end. 

     

    Thanks In Advance,

    Padma 

    Version:
    Oracle Service Cloud, 18C
  • Nital Joshi
    Magic method Sleep on CPM script121.0
    Topic posted January 7, 2019 by Nital JoshiRed Ribbon: 250+ Points, tagged Custom Process Models - CPMs 
    Title:
    Magic method Sleep on CPM script
    Summary:
    sleep method is not working in CPM php script
    Content:

    Is there any way to halt execution of CPM (incident_update) for some time until All_Chat report not have the data?

    Sleep(40) not working for me. 

     

    Code Snippet:
  • Earl Taylor
    Synchronizing the SLA field with a Custom Object
    Topic posted December 11, 2018 by Earl Taylor, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    Synchronizing the SLA field with a Custom Object
    Summary:
    We want to change an existing script to sync with the SLA container for the orgs table
    Content:

    We have a script that updates our Custom Object fields from the Organization table. This has been working great, but now we need to add a field on the Custom Object and have the SLA container object synch with this new field. this new field is used to identify end user support status, when a partner opens an incident for the end user.

    We were hoping to just be able to add a line of code in this process to do this. The new field name in the CompanyName$CN Custom Object is "sup_tier"

    We have the SLA Container showing in the Oragnization Work space, but the value displayed is not actually present in the orgs table itself.

    Does anyone have an idea how this can be done? The SLA tables are a pain to deal with as it is. Any help would be appreciated.

    The current code is as follows:

    <?php

    /*
    * CPMObjectEventHandler: organization_create_update
    * Package: OracleServiceCloud
    * Objects: Organization
    * Actions: Create, Update
    * Version: 1.2
    * Purpose: Pushing Org data to CompanyName$CN CBO
    */

    // This object procedure binds to v1_2 of the Connect PHP API
    use \RightNow\Connect\v1_2 as RNCPHP;

    // This object procedure binds to the v1 interface of the process
    // designer
    use \RightNow\CPM\v1 as RNCPM;

    /**
     * An Object Event Handler must provide two classes:
     * - One with the same name as the CPMObjectEventHandler tag
     * above that implements the ObjectEventHandler interface.
     * - And one of the same name with a "_TestHarness" suffix
     * that implements the ObjectEventHandler_TestHarness interface.
     *
     * Each method must have an implementation.
     */

    class organization_create_update implements RNCPM\ObjectEventHandler
    {
        public static function apply($run_mode, $action, $obj, $n_cycles)
        {
            $debug = true;
           
                self::debugJsOutput($debug, $obj->ID, "***********\n");
                self::debugJsOutput($debug, $obj->ID, "***********\n");
                self::debugJsOutput($debug, $obj->ID, date("Y-m-d H:i:s") . "\n");
                self::debugJsOutput($debug, $obj->ID, "***********\n");
                self::debugJsOutput($debug, $obj->ID, "- " . __CLASS__ . "::" . __FUNCTION__ . "\n");
                self::debugJsOutput($debug, $obj->ID, "-- Action: " . ( $action === RNCPM\ActionUpdate ? "Update" : "Create" ) . "\n");
                self::debugJsOutput($debug, $obj->ID, "-- Cycle number: " . $n_cycles . "\n");
                self::debugJsOutput($debug, $obj->ID, "-- run_mode: " . $run_mode . "\n");
               
                if($run_mode == 1)
                {
                    $obj = RNCPHP\Organization::fetch($obj->ID);
                    self::debugJsOutput($debug, $obj->ID, "-- LookupName = " . $obj->LookupName . "\n");
                   
                    if(!is_null($obj->CustomFields->CompanyName->CN))
                    {
                        $CN = RNCPHP\CompanyName\CN::fetch($obj->CustomFields->CompanyName->CN->ID);
                        self::debugJsOutput($debug, $obj->ID, "-- CN = " . $obj->CustomFields->CompanyName->CN->ID . "\n");
                    }
                    else
                    {
                        $CN = new RNCPHP\CompanyName\CN();
                    }
                     
        if(!is_null($obj->CustomFields->c->sfdc_acctno))
                    {
                        $CN->SFDC_no = $obj->CustomFields->c->sfdc_acctno;
                    }
                    else
                    {
                        $CN->SFDC_no = 'FAKE-' . rand(100000,999999);
                    }
                       
                    $CN->Comp_name = $obj->LookupName;
        $CN->save();
                    self::debugJsOutput($debug, $obj->ID, "-- CN ID = " . $CN->ID . "\n");
                   
                    $md = $obj::getMetadata();
                    $cf_type_name = $md->CustomFields->type_name;
                    $md2 = $cf_type_name::getMetadata();
                    $obj->CustomFields->CompanyName = new $md2->CompanyName->type_name;
                    $obj->CustomFields->CompanyName->CN = $CN->ID;
                    //$obj->save();
        $obj->save(RNCPHP\RNObject::SuppressExternalEvents);
                   
                    self::debugJsOutput($debug, $obj->ID, "-- Saved.\n");
        
        $obj = RNCPHP\Organization::fetch($obj->ID);
                    self::debugJsOutput($debug, $obj->ID, "-- LookupName = " . $obj->LookupName . "\n");
                   
                }
           
            try
            {
                return true;
            }
            catch(Exception $e)
            {
                self::debugJsOutput($debug, $obj->ID, "-- Exception: " . $e->getMessage() . "\n");
            }
        } // apply()
       
        private static function debugJsOutput($debug, $id, $data)
        {
            if(!is_dir("/tmp/CompanyName"))
                mkdir("/tmp/CompanyName");
           
            ob_start();
           
            echo 'Org' . $id . ' ';
           
            if(is_object($data))
            {
                echo "<pre>";
                print_r($data);
                echo "</pre>";
            }
            else
            {
                echo $data;
            }
           
            if($debug)
            {
                echo ob_get_clean();
            }
            else
            {
                file_put_contents("/tmp/CompanyName/cpm_organization_" . date("Ymd") . ".log", ob_get_clean(), FILE_APPEND);
            }
      
        }
    } // class organization_create


    /*
    The Test Harness
    */
    class organization_create_update_TestHarness implements RNCPM\ObjectEventHandler_TestHarness
    {
        static $org_invented = NULL;
        static $CN_invented = NULL;
     
        public static function setup()
        {
            //$CN = new RNCPHP\CompanyName\CN;
      $org = new RNCPHP\Organization;
            static::$org_invented = $org;
            //static::$CN_invented = $CN;
            return;
        }

        public static function
        fetchObject( $action, $object_type )
        {
            // Return the object that we
            // want to test with.
            // You could also return an array of objects
            // to test more than one variation of an object.
            //return(static::$CN_invented);
      return(static::$org_invented);
        }

        public static function
        validate( $action, $object )
        {
            #return(!is_null(static::$CN_invented->ID));
            return $object;
        }

        public static function cleanup()
        {
            // Destroy every object invented
            // by this test.
            // Not necessary since in test
            // mode and nothing is committed,
            // but good practice if only to
            // document the side effects of
            // this test.
            return;
        }
    }

     

    Thanks

    Earl Taylor

    Version:
    Feb 2018 version
  • Padma Prabha Varadarajan
    Query in REST API Call1
    Topic posted December 6, 2018 by Padma Prabha VaradarajanRed Ribbon: 250+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST 
    Title:
    Query in REST API Call
    Summary:
    Querying Currency code menu in Custom Object
    Content:

    Hi 

    We have a custom object and standard object related, and created a currency menu object (Standard object: Currencies) in the custom object. 

    Trying to fetch the currency lookupname using ROQL from the custom object.

    But we are getting the error saying "Currency is not a valid object"

    Able to fetch only the Currency ID and not the lookupname. 

    Also, when we try to use this field in standard object and do the ROQL the lookupname is fetched without any issue.

    Please provide some idea on the same 

     

    Thanks 

    Padma

    Version:
    Service Cloud 18B, 18C

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