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

Auto create an Incident (17 Comments)

$
0
0

Topic by VIP

Content

Hi All,

Is there a way to auto-create an Incident? For Eg: Assume that Customer has a follow up task of maintaining Servers monthly or Weekly AC maintenance.

- VIP

Version

Feb 2016

CreatedTime in CPM (1 Comment)

$
0
0

Topic by Mohana Gopal Selvam

Hi Gurus,

I have tried to get the incident createdtime in CPM. When I print the field it returns some numeric value. But same value print correctly in ROQL. 

Let me know how to store it in correct format.

My code:

$date = $inc->CreatedTime;
print("\nCreatedDate".$date);

Thanks,

Mohan

 

Sample output:

---------------------------
Test Error
---------------------------

CreatedDate: 1453713418

---------------------------
OK
---------------------------

PHP file encoding for french accents

$
0
0

Topic by Harriet Laker

Hi,

I have a script that currently encodes a csv file to UTF-8:

   // CONVERT ALL TO UTF-8
    $file = "/tmp/contact_import/data/Contact_Data_".date("dmY").".csv";
    file_put_contents($file, utf8_encode(file_get_contents($file)));
    // CONVERSION COMPLETE

I want to change this encoding to Western Europe (Windows), is there a function for this or would I just use the following:

   // CONVERT ALL TO Windows-1252
    $file = "/tmp/contact_import/data/Contact_RN_Data.csv";
    $file = mb_convert_encoding($file, 'Windows-1252');
    // CONVERSION COMPLETE

Thanks!

ConnectPHP run report filter with between operator

$
0
0

Topic by Rajan Davis

Content

I have a report with a filter for incidents created. I want to know how to query the report using the incidents created filter such that I can query the report for all incidents created between two datetimes.

I know how to run a ROQL query for  this information as well as how to pass query information into a filter, just not sure how to pass in a date range into the filter to run the report. I pseudo coded it below, just need to know how to do pass in the values and set the operator to 'between'.

Version

Service Cloud May 2015, ConnectPHP version 1.3

Code Block

Cannot save/update DB API Error (1 Comment)

$
0
0

Topic by Mike

When trying to update 1 field in 933 objects

Cannot save/update: Answer(ID=220): 
DB API Error

While performing update on Answer

 

I found the below link and it suggests there is a problem on the server side:

http://communities.rightnow.com/posts/01a2c81744

 

Is there a way to programatically add a new value to menu type field (1 Comment)

$
0
0

Topic by Pavansatish Annavarapu

Content

Is there a way to programatically add a new value to menu type field? For say, I have a contact custom field of menu type with values A, B and C and if I want to add a new value D to you it.

Regards,

Pavan

Version

15.8

Set Incident Channel (1 Comment)

$
0
0

Topic by jraynor

Content

I am trying to set an Incident Channel to Email using an Add-In created in .NET.  Within the RN environment, if I go to Configuration, Service, Channels, I can see the ID number for each channel by placing the mouse over them, but not all of them seem to match. For example Email is supposed to be 9, but this one does not work and defaults to Phone, Store is supposed to be ID 1003, but somehow Chat is found at Channel ID 1003 instead (Chat should be ID 8). Am I looking for in the wrong place for Channel IDs? Or is there a better way for this? Code snippet provided

 

Version

August 2015

Code Block

Register Now! Ask the Experts Webinar: External Data Design Patterns & Read/Write Add-Ins (1 Comment)

$
0
0

Topic by Stephanie Kaleva

Oracle Service Cloud Ask the Experts Webinar

Register Now!

External Data Design Patterns & Read/Write Add-Ins

Wednesday, February 24th  @ 8 a.m. PST/11 a.m. EST

Join Roderick Peace, Service Cloud Integrations and Accelerators Product Manager, as he dives into how customers are migrating to real time design patterns for external data and how you can leverage concepts from the Accelerators in your projects today. During this webinar, Roderick will talk about:

  • Read/write add-ins
  • “Just in time” contact provisioning
  • Data jurisdiction options available through agent desktop add-ins
  • The expanding OData integration ecosystem

User level: moderate

About the Presenter:
Roderick Peace is the Product Manager responsible for the Oracle Service Cloud Accelerators (Open Source Reference Integrations to things like Siebel, EBS, and SFDC). Prior to joining the Service Cloud PM team, Roderick lead the global technical architecture team for RightNow professional services. His background includes everything from developing large scale database and interactive marketing initiatives for United Airlines to managing the teams that built theatrical campaigns for Twilight, Inception, and Avatar. Roderick has been with Oracle for the past 5 years and is based in Bozeman, Montana.


SendMailingToContact Log and Reports (4 Comments)

$
0
0

Topic by RD

Content

When we use SendMailingToContact, does it get recorded in the incident audit log as 'Mailing Sent'?

I used this function from CPM(Process Designer) but nothing gets updated in the audit log of incident.

Version

May 2015

RunAnalyticsReport Date Range Issue (2 Comments)

$
0
0

Topic by tsans

Content

I have been accessing an Analytic Report using RunAnalyticsReport via Connect Data Services/C# for several months without issue. The report has 2 datetime parameters (> and <=) to limit the results to a specific time frame and options of the report are set to use “Time Zone = Same as Interface” and when I run the report via the user interface everything is fine. However, when I pull the report via Connect the data returned looks as if the requested date range was passed as UTC.

 

Anyone have any idea why this change occurred and/or how to fix it?

 

Thanks,

Todd

 

Version: August 2015

Version

August 2015 - Connect

How to set system attribute of type Integer using JavaScrip API (1 Comment)

$
0
0

Topic by Pradeep Chandolu

Hi there,

I have a question related to this discussion thread: JavaScrip API for System Attribute of type menu 

How can we set the system attribute of type Integer using JavaScrip API. I am trying below code but its not working for me:

window.external.Contact.SetCustomFieldByName("CO$PurchaseOrder",2);

I tried in many ways but it did not worked for me. 

CO$PurchaseOrder(relationship column) is system attribute of  type "Integer". 

Thanks in advance for the help.

How to Set an "In List" Menu Filter Value Using the SOAP API (2 Comments)

$
0
0

Topic by Mike Waldron

Content

Here's something I figured out that I thought I'd share with the community.

I have a filter on a report that's "incidents.disp_hierarchy in list" that I was having difficulty setting a value for in my SOAP client. It's "filter3" in the code block below that causes the problem: when it was excluded, everything was fine; when it was included, I was getting the exception

System.ServiceModel.FaultException`1 was unhandled
Message=Cannot run AnalyticsReport: T&SItemAPITest(ID=104586): REPORT_ERROR_VIEWS_ENGINE

After flailing around for a while, I found the following note in the documentation (How Do I ... ? > Working With Reports > Working With Report Filters): When identifying Menu items, do so by ID instead of by name.

Ah-hah. Changing filter3 values as follows:

filter3.Values = new String[] { "220", "221", "222" };

fixed the problem. I was assuming I could use a lookup name for this, but in this case that didn't work.

Code Block

Saving form with a lookup on custom object (3 Comments)

$
0
0

Topic by Saniya Zahid

Content

I am making a .net application which is a contact form. all data (contact fields and contact custom fields) is saving except Area field. Area is a lookup object search field in contact (Area custom object, relation: area is parent and contact is child) 

I need help to get that area field 

Code Block

Image

File

test.png(69KB)

Sending emails to Contact

$
0
0

Topic by VIP

Content

Hi All,

I need to send an email on completion of form registration. I tried to do this using business rules but unfortunately my requirement deals with custom objects which cannot be used in biz rules.

I tried using Public Mail API but instance is of Feb 2014 version and wont be able to avail Public Mail API services(because it is enabled after Aug 2014 version).

Is there a way to send emails to Contact OOTB without above services? I had following things in mind as a work around - Need to know if these are feasible or valid?

  1. Use of SendEmailingtoContact via Web Services: Could I use cURL and invoke SendEmailingtoContact() for sending emails?
  2. White-listing of SMTP emails: Some of the basic features of SMTP mails should be neabled. Thinking of raising a request to Oracle team to enable this. Is this a good idea?

Please share your thoughts.

- VIP

Version

Feb 2014

Unable to send (null) values to web service with int/decimal/double fields.

$
0
0

Topic by Nishi Jahagirdar

Content

Hi All,

I am using an outbound service to send values to an EBS application from Service Cloud. My request consists of limited values and remaining fields will be null. The problem is I can't send null values to the web service for int/decimal/double fields and getting an error as 'Input string was not in correct format'. I tried using 'Nullable<fieldname>' as well as 'datatype?' in Reference.cs file for these three fields, but it didn't help. All the remaining fields are in correct format. I would appreciate if anyone could help me out here to resolve the issue.

Thanks,

Nishi

Version

Aug 15

Last logged in date (1 Comment)

$
0
0

Topic by Harriet Laker

Hi,

Is there a way to retrieve the last logged in date of a contact?

A customer wants to disable contacts that haven't logged in for 90 days - is there a field or a query I can call to get this information?

Thanks

SOAP: move FileAttachments from one Contact to another (3 Comments)

$
0
0

Topic by Nils Gotzhein

Content

Hi,

when synchronizing our legacy Customer Database into RightNow using "Connect Web Services for soap" we come to a point where we want to merge two Contacts belonging to the same person into one. By "merging" we mean to transfer all the Incidents, Tasks, Opportunites and FileAttachments associated to one customer account to the other and then deleting it after.

Moving Incidents, Tasks and Opportunites does work, however I have no clue how to sync the FileAttachments. Here is what I tried:

- get the Contact object of the "source" contact (using Get)

- get the Contact object of the "target" contact (using Get)

- copy the FileAttachments property from the source to the target Contact

- synchronizing the target Contact to RightNow using Update command.

I reviewed the outgoing SOAP-Call, and it clearly contains information about the File which is supposed to move (no Data of course, just meta data like name, size and mime type). The SOAP-response indicates no errors. Yet my attapmt to move the FileAttachments have absolutely no effect. The files remain in their original accounts after the Update call.

Another idea would be to first download all attachments from one account and then to upload them to the other. But then I have no idea to upload files using the SOAP API, and it would also cause unnecessary overhead.

 

We are using RightNow CX November 2011

 

Is there any way to move those FileAttachments between Contacts?

Version

RightNow CX November 2011

Creating CustomFields using SOAP / PHP (13 Comments)

$
0
0

Topic by Roy

Content

I've given up on trying to populate a custom object, instead we are now trying to fill a custom field... but for some reason the DataValue field isn’t being populated. Here is my code:

      $generic_namespace = 'urn:generic.ws.rightnow.com/v1_2';

      $GenericField3 = new RNGenericField();
      $GenericField3->name = 'customfield';
      $GenericField3->dataType = 'STRING';
      $DataValue3 = new RNDataValue();
      $DataValue3->StringValue = '1234567890';

      $GenericField3->DataValue = $DataValue3;
      $genericObject3 = new RNGenericObject();
      $genericObjectType3 = new RNObjectType();
      $genericObjectType3->TypeName = 'IncidentCustomFieldsc';
      $genericObject3->ObjectType = $genericObjectType3;
      $genericObject3->GenericFields = array($GenericField3);

      $genericFields = new RNGenericField();
      $genericFields->name = 'c';
      $genericFields->dataType = 'OBJECT';
      $DataValue4 = new RNDataValue();
      $DataValue4->ObjectValue = $genericObject;
      $genericFields->DataValue =  $DataValue4;

      $genericObject = new RNGenericObject();
      $genericObjectType = new RNObjectType();
      $genericObjectType->TypeName = 'IncidentCustomFields';
      $genericObject->ObjectType = $genericObjectType;
      $genericObject->GenericFields = array($genericFields);

      $genericObjectNS = new SoapVar($genericObject,SOAP_ENC_OBJECT,null,null,'CustomFields',$generic_namespace);
      $Incident->CustomFields = $genericObjectNS;

This results in the following XML:

<ns1:CustomFields xsi:type="ns2:GenericObject">
          <ns2:ObjectType>
            <ns2:Namespace xsi:nil="true"/>
            <ns2:TypeName>IncidentCustomFields</ns2:TypeName>
          </ns2:ObjectType>
          <ns2:GenericFields dataType="OBJECT" name="c">
            <ns2:DataValue/>
          </ns2:GenericFields>
        </ns1:CustomFields>

When I looks at the documentation I can see DataValue should contain an ObjectValue.  As you can see, when I give the DataValue a property called ObjectValue it is simply ignored… I tried explicitly setting namespaces and types, but to no avail.

Does anyone have an idea on how to set a custom field in RightNow using PHP SOAP?

Version

1.2

Error while run report search filter using ConnectPHP

$
0
0

Topic by Baljeet Singh

Content

Hi, 

I have report which has some search date range filter. I want to get incidents which are created between two specific dates or transactions.created. I have two filters 

  • incidents.created       (Filter Name: IncidentCreated)
  • transactions.created  (Filter Name: TimeRange)

When I run this report with search filter values then I am getting this error message.

Cannot run AnalyticsReport: SA Incident moved to another queue hourly(ID=104770): REPORT_ERROR_EXCEEDS_TIME_THRESHOLD

Does it mean report getting too much time to get results or something else?
 
I am not using ROQL query because report is faster than ROQL query. I found the similar post which is facing similar type of issue.
 
 
Here is the code 

            $status_filter            = new RNCPHP\AnalyticsReportSearchFilter;
            $status_filter->Name     = 'TimeRange';
            $status_filter->Values     = array( '1457009241','1457005641' );
            $Operator                 =   new RNCPHP\NamedIDOptList();
            $Operator->ID            =  6;
            $Operator2                 = new RNCPHP\NamedIDOptList();
            $Operator2->ID             = 4;
                                  
            $filters     = new RNCPHP\AnalyticsReportSearchFilterArray;
            $filters[]    = $status_filter;
            $ar            = RNCPHP\AnalyticsReport::fetch( $report_id);
            $arr        = $ar->run( 0, $filters );
            $nrows        = $arr->count();

 

Anyone has an idea how to fix this issue?

Thanks in advance !!

Regards

Baljeet Singh

 

Version

Oracle RightNow CX Cloud Service February 2014

Error insert DateTime request with Java SOAP (7 Comments)

$
0
0

Topic by Rodolfo Noviski

Content

Hello, I am making a request to the web service using Java. I have a custom field with datatype DateTime. When I run the application with the following date '8/11/2012 15:53:44' when it appears in the system with the following date '8/11/2012 1:53:44 PM'. The system is set to the current time zone in Brazil and in your being rotated the java application is also to schedule time in Brazil.

The following piece of code I'm using to convert the date:

 

Has anyone experienced this?
Any idea how to solve?

Thanks

Code Block

Viewing all 2504 articles
Browse latest View live