Integrations and APIs for Service

Get Involved. Join the Conversation.

Posts

  • jagadeesh gattupalli
    delete record from custom process in report3
    Topic posted Yesterday by jagadeesh gattupalliBronze Medal: 1,250+ Points, tagged Connect PHP 
    Title:
    delete record from custom process in report
    Summary:
    delete record from custom process in report
    Content:

    Hi ,

    Is there a way I can remove few records from report based on condition using custom script ? The report is based on Incident object and a custom object. I need to remove records from custom object.

    Please let me know.

    Regards

    Jagadeesh G

     

     

    Version:
    19B
  • jagadeesh gattupalli
    how to add incident field values into thread text3
    Topic posted December 5, 2019 by jagadeesh gattupalliBronze Medal: 1,250+ Points, tagged Connect PHP 
    Title:
    how to add incident field values into thread text
    Summary:
    add incident field values into thread text
    Content:

    Hi ,

    Plz let me know how to add Field values into Thread text.

    $parent_inc and $inc_tmp are two objects.

                              $f_count = count($parent_inc->Threads);
                                $parent_inc->Threads[$f_count] = new RNCPHP\Thread();
                                $parent_inc->Threads[$f_count]->EntryType = new RNCPHP\NamedIDOptList();  
                                $parent_inc->Threads[$f_count]->EntryType->LookupName = 'Staff Account';  
                                $parent_inc->Threads[$f_count]->ContentType->ID=2;           

    //this red color code giving me error   

                 
                                $parent_inc->Threads[$f_count]->Text = "This Incident was closed and merged into "   . $inc_tmp.ReferenceNumber . " - " . $inc_tmp.Subject ;

     

    Error : Object of class RightNow\Connect\v1_3\Incident could not be converted into string.

    Help is needed. It is urgent.

     

    Regards

    Jagadeesh 

     

    Version:
    19B
  • jagadeesh gattupalli
    How to get Values of System Attributes attached to Incident...Answered15.0
    Topic posted December 5, 2019 by jagadeesh gattupalliBronze Medal: 1,250+ Points, tagged Connect PHP 
    Title:
    How to get Values of System Attributes attached to Incident object using ROQL
    Summary:
    System Attributes attached to Incident object using ROQL
    Content:

    HI ,

    I am writing object event handle using connect PHP and querying incident object as below to fetch value from a system attribute which is highlighted in RED color.

     

    $roql_result_set = RNCPHP\ROQL::query("SELECT Incident.ID ID, Incident.PrimaryContact.ParentContact.ID CID, Incident.CustomFields.CO.ParentIncident CHILD FROM Incident WHERE Incident.ID = " . $object->ID); 

     

    This query works fine Connect object Explore ( ROQL Editor in Customer Portal),

    The same is not working in Connect PHP in below mentioned code.

                    while ($roql_result = $roql_result_set->next())
                    {
                        while ($row = $roql_result->next())
                        {

                            $inc_tmp = RNCPHP\Incident::fetch($row[CHILD]);

                        }

                   }

    I am getting error undefined constant .

    Need your help on this . Appreciate  fast reply.

    I am using connect PHP v1_3 on 19B version.

    Regards

    Jagadeesh 

     

     

    Version:
    19B
  • Sylvia S
    Setting trigger in Service Cloud to OIC2
    Topic posted December 2, 2019 by Sylvia SBronze Medal: 1,250+ Points, tagged Connect PHP, Custom Process Models - CPMs, SOAP 
    Title:
    Setting trigger in Service Cloud to OIC
    Summary:
    Setting trigger
    Content:

    Hi Guys,

    I am trying to achieve an integration between Service Cloud and Eloqua where if a contact is updated in Service Cloud, the contact is updated in Eloqua through OIC. Based on the documentation am using, an event handler should be created to trigger the process. Can anyone share any information, ideas or documentation on how to go about this?

    Thanks,

    Sylvia

  • Eric Gottesman
    shareFile adding attachments to every thread item?3
    Topic posted November 27, 2019 by Eric GottesmanBlue Ribbon: 750+ Points, tagged Connect PHP, Custom Process Models - CPMs 
    Title:
    shareFile adding attachments to every thread item?
    Content:

    I am developing a CPM that copies a number of fields from a parent incident to a child incident. I found the "shareFile" functionality, which is great for the attachments. It's working great, except that after the attachments have been copied, the child incident shows the attachments connected to every single thread item. (See attached picture.) If I look at the attachment tab, there are just the two attachments, so it's doing the right thing, except for how it appears to be attached to every thread item.

    Here's the relevant code:

    $incident->FileAttachments = new RNCPHP\FileAttachmentIncidentArray();
     
    for ($i=0$i < count($parentIncident->FileAttachments); $i++) { 
          $incident->FileAttachments->shareFile($parentIncident->FileAttachments[$i]);
    }

    Any ideas?

     

    Version:
    19C
    Image:
    Code Snippet:
  • 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);

  • 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
  • jagadeesh gattupalli
    Access Service cloud Managed tables through REST API and...Answered1
    Topic posted November 6, 2019 by jagadeesh gattupalliBronze Medal: 1,250+ 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
  • Hector Arreola
    How can I retreive the Primary Contact of a ticket with...1
    Topic posted October 15, 2019 by Hector ArreolaRed Ribbon: 250+ Points, tagged Connect PHP 
    Title:
    How can I retreive the Primary Contact of a ticket with Connect PHP?
    Summary:
    How can I retreive the Primary Contact of a ticket with Connect PHP?
    Content:

    Hi community,

    I am trying to retreive the contact from the sample ticket on my process designer script, but I get the error "trying to get property of non-object" for most attempts, for others it just doesnt print anything (and I believe the contact is required while creating the ticket so it could not be null, right?.

    Thanks for helping!!

    EDIT

    Solution:

    $contact = $inc->PrimaryContact->LookupName;

  • Julie F
    Write data from Custom Object field to Contact custom field1
    Topic posted October 7, 2019 by Julie FBronze Crown: 15,000+ Points, tagged Connect PHP, Custom Process Models - CPMs, REST 
    Title:
    Write data from Custom Object field to Contact custom field
    Summary:
    Does anyone have an example of the above?
    Content:

    I have a custom object group. Lets call it GroupObject. It has a number of objects within it. Lets call those.CObject1, CObject2 etc.and they each have fields.

    In a CPM I want to write GroupObject.CObject1.time (time is one of the fields, it is not the current time) to:

    contact_data->CustomFields->c->last_saved    a contact record custom field called last_saved.

    Any example, for any part of this, would be greatly appreciated.

Filter by Date

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