Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all 2504 articles
Browse latest View live

C# Report Returns Incorrect Data (4 Comments)

$
0
0

Topic by Andrew Wooster

Content

The report has a filter based on the date the chat was requested, this is set to "Between".  When I run the report in the console for "01/01/2017 12:00 AM" to "01/01/2017 12:30 AM" I don't get any results, which is what I expect.  When I run the same report in my program, it returns data.  Do I need to do anything extra when applying the filter?

Version

November 16

Code Block


ROQL - Email address with single quote (2 Comments)

$
0
0

Topic by chidambaram CT

Following ROQL sentence throws error, because it contains single quote in the email address. 

select count(*) from Contact where Emails.EmailList.Address='gavin'north@gmail.com' and Emails.EmailList.AddressType.ID = 0

How to write ROQL without error?

Answer destroy fails within Custom Process Designer (3 Comments)

$
0
0

Topic by Britto Thatheyu

Content

The CPM reads an existing answer and update one of the answer custom fields.

In the upgrade site, test harness stop the execution without returning any results and status remains "Not tested". It is working fine when I remove the object destroy "$answer->destroy();" from the test harness clean up function.

The same CPM code was working fine in "lclone_upgrade" site as well. I am getting the above issue only in the upgrade site.

Please let me know, Is there any impact if I remove the object destroy from the test harness clean up? What is the actual reason behind this issue?

Version

18A

Query article notifications from all interfaces (1 Comment)

$
0
0

Topic by Andy Townshend

Content

Our company's website is split into various interfaces for different languages. Upon logging into their account page, in addition a list of their tickets, we would like our customers to see all their article notifications, regardless of which interface the article was subscribed from.

I attempted to do this with the AnswerNotificationManager widget, and then the Grid widget, but due to limitations in the widgets/report filters, I'm unable to pull article notifications from any but the logged-in interface.

 

I'm now running a query against the model (and then building the table using a For loop that adds a table row for each index). I'm using the following function below, but it is still only pulling from the logged-in interface - I assume because the data pulled in "$this->model" is only within the current interface? Is there another type of query or API that would allow me to access notifications from all interfaces?

 

Thanks!

Version

Customer Portal - Framework 3.6

Code Block

How to execute a report (AnalyticsReport in the Web Services API) by specifying the name instead of... (6 Comments)

$
0
0

Topic by Prashanth

Content

I need the ability to execute a pre-defined report by supplying the name instead of the ID. I looked at http://communities.rightnow.com/posts/55c19d921d, but my problem is a little different: I dont care for the report ID.

I tried the following options that I listed in the code block, all of them unsuccessful:

Thanks!

Prashanth

Code Block

Is there a way to upload Service Level Agreements via the REST api?

$
0
0

Topic by Joel Sunaz

We need an automation between our system of record and Oracle Service Cloud for SLAs. Is this possible via the REST API? I cannot find any information anywhere if it's possible.

unable to get updated value in the contact workspace through add-in (3 Comments)

$
0
0

Topic by chidambaram CT

In contact workspace, I have field bank_validation Yes/No custom field. Based on condition, I change value of field through workspace add-in. 
On save of another add-in, I try to retrieve custom field. But I am not getting the updated value. I have tried RefreshWorkspace() method also,still getting old value not the updated value.

 

 

// _recordContext.RefreshWorkspace();
ICfVal icfValBankValidation = ((IEnumerable<ICfVal>)this._contact.CustomField).FirstOrDefault<ICfVal>((Func<ICfVal, bool>)(cf => cf.CfId == 415));
bankvalidation = icfValBankValidation.ValInt;

Thirdparty Chat API integration error

$
0
0

Topic by Priya Gopal

Hello All,

We have tried and implemented a custom chat integration in Customer Portal using third party chat api provided by Oracle by using another hosted REST web service in the middle layer. The problem we are facing is when we give more number of concurrent requests the Oracle API gives "There is no end point listening error in the chat server url" after a certain number of requests. Does any one have come across this? This comes sometimes with SOAP services also and if so any fix that can be applied? Any help is much appreciated.

Thanks,

Priya 

 


[C #] How to call API via proxy

$
0
0

Topic by Yoshi Got

Content

Hello everyone.

I am implementing sample source code according to the contents of "Getting Started. NET".(http://documentation.custhelp.com/euf/assets/devdocs/cloud18a/Connect_Web_Services_for_SOAP/Default.htm)

I'd like to call the API using "RightNowSyncPortClient", but I need to pass through the proxy.
What kind of implementation is necessary when passing through a proxy?

Thanks!

Yoshi.

Version

Oracle Service Cloud 2017 August, Visual C# 2013

Backup Test Environment Data (7 Comments)

$
0
0

Topic by R R

Content

Hello and thank you for reading my question.  I am involved in an effort where I will be having PROD cloned down to TEST.  The user group would like the TEST data backed up should a restoration for functionality ever be necessitated.  Is there any feasible way I would be able to backup the environment myself?   I am aware that I could accomplish this via Service Request but I am hoping for a solution that I can manufacture.

Thank you very much for any help you are able to provide.

Version

May 2017

Making REST API available to a third party (1 Comment)

$
0
0

Topic by David Wright

We have a need for a third party - e.g. a printing company - to update OSvC with a status when they have fulfilled an item. I am keen to hear others advice on whether it is advisable to allow a third party access to update a custom object via the REST API (by creating a user account with API permission) and/or what approaches (if any) there are to security and being able to restrict what information can be updated.

Thanks,

David

Parsing XML in connect PHP received from external system

$
0
0

Topic by Umer

Hi,

I have to parse and traverse through a xml document which I will be receiving from an external system. The external system will be sending data which will be converted into incident, attachments and tasks. The data structure will be like, each incident will be having one or more tasks. 

I am trying to get this document, after parsing and reading values out of xml tags I will be creating incident and incident tasks.

Is it a good way to do it in custom script/connect PHP? Or can I use OOTB SOAP webservice and expose it to external webservice?

Currently I am using below PHP code and it is giving me tags and their values:

$response= "
<Siebel>
<servicerequest>
<sr_num>
12345
</sr_num>
<problem>
test problem
</problem>
<email>
test@gmail.com
</email>
</servicerequest>
</Siebel>"; //file_get_contents('php://input');
 
        //Parsing incoming XML Message
        $p = xml_parser_create(); 
        //xml_parser_set_option( $p, XML_OPTION_CASE_FOLDING, 0 );
        //xml_parser_set_option( $p, XML_OPTION_SKIP_WHITE, 1 );
        xml_parse_into_struct( $p, $response, $index );
       // xml_parser_free( $p );
        
        $_GET= array();
        foreach ($index as $tag) 
{
            if($tag["type"]=="complete")
{
                $temparr = array($tag['tag'] => $tag['value']);
                $_GET = array_merge($_GET, $temparr);
echo $tag['tag'];
            }
        }

But I am not sure how will I traverse for the childs (tasks, attachments) of the incidents like below:

<Siebel>

               <servicerequest>

                              <sr_num>

                                             12345

                              </sr_num>

                              <problem>

                                             test problem

                              </problem>

                              <email>

                                             test@gmail.com

                              </email>

               <tasks>

                              <task1>

                                             <id>1/</id>

                                             <name>first task</<name>

                                             <description> this is first task </description>

                              </task1>

                              <task2>

                                             <id>2/</id>

                                             <name>2nd task</<name>

                                             <description> this is 2nd task </description>

                              </task2>                            

               </tasks>

               </servicerequest>

</Siebel>

 

Update a incident by adding secondary contacts using connect PHP API. (2 Comments)

$
0
0

Topic by Riya Goel

Content

I need to add secondary contacts to an incident using Connect PHP. Can anyone please let me know which widget/model is being using for adding contacts as per the attached image. I have to implement similar to the image provided.

Thanks in Advance,

Riya

Version

Testing Environment Version : Feb 2017

File

117B9B9F.jpg(44KB)

Passing Generic Fields to Third Party Chat API

$
0
0

Topic by Priya Gopal

Content

Hi All,

I am trying to pass generic fields to Chat API but it is not getting sent through the API. It always comes as empty value though I have enabled the Chat in the CustomField. Below is the code in C#. Can please check through the code and let me know what I am missing?

Thanks,

Priya

Code Block

Search Criteria in SOAP Get Request

$
0
0

Topic by Umer

I need to fetch all incidents which are recently updated that is their status is changed. I want to use standard SOAP WSDL for this. The external application will send a date as input and rightnow will return all the incidents that were updated after that that. So I will be using Last Updated Date column here. It is also possible for external application to send a range of date to fetch updated incidents.

I downloaded a generic WSDL and in SOAPUI I am trying to achieve this but I could not apply search criteria and neither could find sample requests to get an idea. I tried with Lookup name by using GET request but it seems like GET is to fetch only a single record for incident or may be i am not understanding this at the moment.

On the 2nd thought I tried using ROQL but getting all the columns in the output:

Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="urn:messages.ws.rightnow.com/v1_3" xmlns:v11="urn:base.ws.rightnow.com/v1_3">
   <soapenv:Header>
      <v1:ClientInfoHeader>
         <v1:AppID>Query Objects</v1:AppID>
      </v1:ClientInfoHeader>
      <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" mustUnderstand="1">
         <wsse:UsernameToken>
            <wsse:Username>***</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">***</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security>
   </soapenv:Header>
   <soapenv:Body>
      <v1:QueryObjects>
         <v1:Query>SELECT Incident FROM Incident WHERE Incident.ID=2600</v1:Query>         
         <v1:PageSize>100</v1:PageSize>
      </v1:QueryObjects>
   </soapenv:Body>
</soapenv:Envelope>

Response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <n0:QueryObjectsResponse xmlns:n0="urn:messages.ws.rightnow.com/v1_3" xmlns:n2="urn:base.ws.rightnow.com/v1_3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:n1="urn:objects.ws.rightnow.com/v1_3">
         <n0:Result>
            <n0:RNObjectsResult>
               <n0:RNObjects xsi:type="n1:Incident">
                  <n2:ID id="2600"/>
                  <n2:LookupName>160108-000009</n2:LookupName>
                  <n2:CreatedTime>2016-01-08T17:59:51.000Z</n2:CreatedTime>
                  <n2:UpdatedTime>2017-04-28T15:01:58.000Z</n2:UpdatedTime>
                  <n1:AssignedTo>
                     <n1:Account>
                        <n2:ID id="440"/>
                     </n1:Account>
                     <n1:StaffGroup>
                        <n2:ID id="100001"/>
                     </n1:StaffGroup>
                  </n1:AssignedTo>
                  <n1:Category>
                     <n2:ID id="61"/>
                  </n1:Category>
                  <n1:Channel>
                     <n2:ID id="6"/>
                  </n1:Channel>
                  <n1:ClosedTime>2016-01-31T14:42:45.000Z</n1:ClosedTime>
                  <n1:CreatedByAccount>
                     <n2:ID id="510"/>
                  </n1:CreatedByAccount>
                  <n1:Disposition>
                     <n2:ID id="20"/>
                     <n2:Parents xsi:type="n2:NamedReadOnlyID">
                        <n2:ID id="16"/>
                     </n2:Parents>
                  </n1:Disposition>
                  <n1:InitialResponseDueTime>2016-09-15T20:31:00.000Z</n1:InitialResponseDueTime>
                  <n1:Interface>
                     <n2:ID id="1"/>
                  </n1:Interface>
                  <n1:Language>
                     <n2:ID id="1"/>
                  </n1:Language>
                  <n1:LastResponseTime>2016-01-30T13:32:10.000Z</n1:LastResponseTime>
                  <n1:Organization>
                     <n2:ID id="6"/>
                  </n1:Organization>
                  <n1:PrimaryContact>
                     <n1:Contact>
                        <n2:ID id="509"/>
                     </n1:Contact>
                  </n1:PrimaryContact>
                  <n1:Queue>
                     <n2:ID id="4"/>
                  </n1:Queue>
                  <n1:ReferenceNumber>160108-000009</n1:ReferenceNumber>
                  <n1:ResolutionInterval>15196</n1:ResolutionInterval>
                  <n1:ResponseEmailAddressType>
                     <n2:ID id="0"/>
                  </n1:ResponseEmailAddressType>
                  <n1:Severity>
                     <n2:ID id="3"/>
                  </n1:Severity>
                  <n1:Source>
                     <n2:ID id="1001"/>
                     <n2:Parents xsi:type="n2:NamedReadOnlyID">
                        <n2:ID id="32002"/>
                     </n2:Parents>
                  </n1:Source>
                  <n1:StatusWithType>
                     <n1:Status>
                        <n2:ID id="2"/>
                     </n1:Status>
                     <n1:StatusType>
                        <n2:ID id="2"/>
                     </n1:StatusType>
                  </n1:StatusWithType>
                  <n1:Subject>Do you ship outside the US?</n1:Subject>
               </n0:RNObjects>
            </n0:RNObjectsResult>
            <n0:Paging>
               <n0:ReturnedCount>1</n0:ReturnedCount>
               <n0:StartIndex>0</n0:StartIndex>
               <n0:QueryHandle/>
            </n0:Paging>
         </n0:Result>
      </n0:QueryObjectsResponse>
   </soapenv:Body>
</soapenv:Envelope>

 

But I only want to get the Status of the incidents in the response but Incident.Status is not working.

Please need help to proceed on this.


If a forward request is undelivered then a new incident got created. (1 Comment)

$
0
0

Topic by Riya Goel

Content

Forward a request by attaching a file of size around 45MB (whatever max size is allowed to attach). This request will be undelivered. Agent who forward a request did not got any failure message. But a new incident got created with thread message 'Unsupported message type - delivery-status, message attachment discarded.'. This new request did not have any reference to the original request. I need to add a private note in original request that the 'incident was undelivered due to attachment X'. It would be very helpful if anyone can tell me how to track the new Incident creation while forwarding a request.

Thanks in advance,

Riya

Version

Feb 2017

Setting MenuOnlyObject Value in Connect PHP (1 Comment)

$
0
0

Topic by Umer

Hi, I am trying to set a Mane filed value from connect php. The object is a custom object in which a menu field is being used.

The record is being created correctly but value is not being set in the menu field. I am using following code:

function AddNotesObj($newIncidentId, $Note, $NoteType, $Private)
{
try
{
$s_Notes = new RNCPHP\Halton\S_Notes();
 
$s_Notes->Incident = RNCPHP\Incident::fetch($newIncidentId);
$s_Notes->Note = $Note;
$s_Notes->S_NotesType = new RNCPHP\NamedIDOptList();
$s_Notes->S_NotesType->Name = 'Note';
$s_Notes->Private = $Private;
 
$s_Notes->save();
}
catch (Exception $err )
{
echo $err->getMessage();
}
}

'Note' is there as value as well as Label.

Please advice what is wrong I am doing here. 

Getting Incident Child Custom Object Records in QueryCSV (2 Comments)

$
0
0

Topic by Umer

I have a custom object S_Notes which is a child of Incident object. In the QueryCSV (SOAP), I need to get all the Notes records for an incident record. Just like we can use <v1:Query>SELECT Incident.ReferenceNumber, Incident.StatusWithType.Status.Name, Incident.Threads.* From Incident</v1:Query> to get all the thread records for an incident, can we also get S_Notes records for an incident?

Standard WSDL just for QueryCsV Operation (1 Comment)

$
0
0

Topic by Umer

Content

IS it possible to obtain a WSDL for a specific operation like QueyCSV only?

 

 

File

QueryCsv.PNG(17KB)

Read the content of an incident file attachment (1 Comment)

$
0
0

Topic by Riya Goel

Content

Hi,

I need to read the content of  incident file attachments using connect php api. Kindly let me know if it is possible and how to implement.

Regards,

Riya Goel

 

 

Version

Feb 2017
Viewing all 2504 articles
Browse latest View live