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

Array Index Out of Bounds

$
0
0

Topic by Jacopo Bellati

Hello! See if you can help me. I`m trying to issue the following request and receiving the following response using JAVA (javax.xml)

REQUEST:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Header xmlns:ns7="urn:messages.ws.rightnow.com/v1_2" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
    <ns7:ClientInfoHeader SOAP-ENV:mustUnderstand="0">
      <ns7:AppID>Run report sample</ns7:AppID>
    </ns7:ClientInfoHeader>
    <wsse:Security mustUnderstand="1">
    <wsse:UsernameToken>
      <wsse:Username>username</wsse:Username>
      <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
    </wsse:UsernameToken>
    </wsse:Security>
  </SOAP-ENV:Header>
  <SOAP-ENV:Body xmlns:ns7="urn:messages.ws.rightnow.com/v1_2">
    <ns7:RunAnalyticsReport>
      <ns7:AnalyticsReport xmlns:ns4="urn:objects.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns4:AnalyticsReport">
        <ID xmlns="urn:base.ws.rightnow.com/v1_2" id="1"/>
      </ns7:AnalyticsReport>
      <ns7:Limit>100</ns7:Limit>
      <ns7:Start>0</ns7:Start>
      <ns7:Delimiter>~</ns7:Delimiter>
    </ns7:RunAnalyticsReport>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

RESPONSE:

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
  <soapenv:Body>
    <soapenv:Fault>
      <soapenv:Code>
        <soapenv:Value>soapenv:Sender</soapenv:Value>
      </soapenv:Code>
      <soapenv:Reason>
        <soapenv:Text xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en">Array list index out of bounds</soapenv:Text>
      </soapenv:Reason>
    </soapenv:Fault>
  </soapenv:Body>
</soapenv:Envelope>


REST JS general authentication for anon end users

$
0
0

Topic by Duncan Taylor

Hi there, 

I wish to create a web form that provides aggregate date based on incidents submitted. Conceptually I can see a way to do this through the connect rest api, but the api requires authentication. 

I only want to expose a subset of data (eg. the latitutde/longitude and subject) for incidents in the last 30 days. However if I provide an auth token that would obviously allow savvy people to query any of the data in the incident table through that token. Is there anyway to only expose a subset or is what im asking impossible?

thanks in advance. 

Campaigning Issue

$
0
0

Topic by Sven Lee

Content

 

Hi, 

I got an issue while running the campaigning for writing the data into Custom Object, please kindly review and let me know if you have any idea if that's really some limitation around Campaign feature. Please see the issue details below:

I got 5000 contacts that have been filtered by segment, normally we just use Reschedule Point to trigger Object Event Handler, once it been triggered, it will take out few of contact fields and write into certain Custom Object, so normally it should generate 5000 records in it, but it stuck at 2000~2500, all the time.

As I can make sure the handler is correct, which make me wondering is that because the Campaign itself has some sort of limitation that stuck the process when it hit certain amount when writing into object, such as 2000+ records, please help :)

 

Warm regards

Sven

Version

November,2014

Connection TIme Out error while using sample soap webservice

$
0
0

Topic by Chaithu

Hi i am trying to test connection between java and RightNow instance using soap web service client. While trying to run the java application i am getting foloowing error:

org.apache.axis2.AxisFault: Connection timed out: connect
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.sendViaPost(HTTPSenderImpl.java:216)
    at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:121)
    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:403)
    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:234)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:431)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:399)
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150)
    at com.rightnow.ws.wsdl.RightNowSyncServiceStub.create(RightNowSyncServiceStub.java:7170)
    at com.nybe.cloud.objects.CloudClient.createContact(CloudClient.java:169)
    at com.nybe.cloud.objects.CloudClient.main(CloudClient.java:63)
Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
    at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.executeMethod(HTTPSenderImpl.java:900)
    at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.sendViaPost(HTTPSenderImpl.java:212)
    ... 10 more

 

 

   My end point URL is working fine in web browser and the webservice is working fine using SOAP UI. Do i  need to change any proxy setting in my eclipse? please help me to resolve the issue.

Connection TIme Out error while using sample soap webservice

$
0
0

Topic by Chaithu

HI All,

 

       I am trying to create a new contact in right now using soap webservice client in java. I am getting this following error while trying to send the request. My endpoint URL is working fine in browser and i am getting proper response while testing in soap ui. Please help me to resolve the issue.  

 

      org.apache.axis2.AxisFault: Connection timed out: connect
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.sendViaPost(HTTPSenderImpl.java:216)
    at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:121)
    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:403)
    at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:234)
    at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:431)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:399)
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:225)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:150)
    at com.rightnow.ws.wsdl.RightNowSyncServiceStub.create(RightNowSyncServiceStub.java:7170)
    at com.nybe.cloud.objects.CloudClient.createContact(CloudClient.java:170)
    at com.nybe.cloud.objects.CloudClient.main(CloudClient.java:64)
Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:625)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
    at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130)
    at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
    at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1361)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.executeMethod(HTTPSenderImpl.java:900)
    at org.apache.axis2.transport.http.impl.httpclient3.HTTPSenderImpl.sendViaPost(HTTPSenderImpl.java:212)
    ... 10 more

 

Chat API returns 404 not found : invalid request

$
0
0

Topic by Mark Mark

Customer Mark Mark via Web04/13/2016 05:40 AM
hi

According to chart documentation i need to consume the getChatUrl service from the interface.custhelp.com...../chat_soap to obtain the chat server url
I did this and got the chat server address.  I then used the authenticate service as detailed in the interface.custhelp.com...../chat_soap?wsdl=UQ and posted the soap to the chat server url received from the getChatUrl service.
When i post the following soap to the chat soap to get the authenticate token i get the message shown at the bottom - 404 not found : invalid request.
getChatUrl returns this chat server address
https://ssbcvipmw02.rightnowtech.com/Chat-WS/services/wschatuq/v0?pool=4297:5

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<o:Security xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<o:UsernameToken>
<o:Username>**user**</o:Username>
<o:Password>**pass**</o:Password>
</o:UsernameToken>
</o:Security>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Authentication xmlns="urn:messages.uq.chat.ws.rightnow.com/v1">
<TransactionRequestData>
<Timestamp>2016-04-04T11:16:21.7900114Z</Timestamp>
<TransactionID>5</TransactionID>
<SiteName>ikeait</SiteName>
</TransactionRequestData>
</Authentication>
</s:Body>
</s:Envelope>

the response was:
<html>
<head>
<title>Web Services</title>
</head>
<body>
<h1>404 Not Found: Invalid Request</h1>
</body>
</html>

Ive tried this on our firewalled network and on a non-firewalled public connection with the same results.
The result suggests the server was found but responded with this message.

does anyone have examples of what i should actually be doing here please

SOAP API: populating custom fields when creating an organization

$
0
0

Topic by Mark Fowkes3168

Content

Hello, I'm trying to create an organization using attached XML. The result is an organization with name "Test" (as expected) and only one custom field (email_compliance) populated rather than both (ubx_id, email_compliance). Could someone look at attached XML and help me understand what's wrong with it?

Version

SOAP API 1.1

Code Block

Best batch insert / update method (5 Comments)

$
0
0

Topic by Walter Kamp

Content

We have to batch insert/update >50.000 contact records into RightNow and we don't have the contact.c_id in the external system.

This needs to be done:

1. Check if the email address exists in RightNow and retrieve the contact.c_id which can be used for step 2 and 3.
2. If it exists, update the record.
3. If it doesn't exist, create the record.

Questions:
Can step 1 be done in a batch operation?
Is there an UPSERT function instead of UPDATE and INSERT? And when we use this, can we skip step 1?

Thanks,

Walter Kamp
walter@wesquare.nl
+31646327369

Version

Aug 2013

Is it possible to call a custom process from within a custom process (1 Comment)

$
0
0

Topic by Tom Magarey

In the interests of code re-usability I was wondering if it is possible to call a custom process module from within another custom process module, and if so, is it possible to pass arguments to the second process?

Lets say custom process_1 sends a message and requires 3 arguments 

Process_1(arg1, arg2, arg3) {

do stuff here

}

In Process 2 is it possible to do the following:

Process_2 {

arg1 -> value1

arg2,->value2

arg 3->value3

Process_1(arg1,arg2,arg3)

continue with process_2

?

The whole process could be written as one custom process but there is obviously some value in being able to reuse modules.

Cheers,

Tom

Phone.Rawnumber not updated when phone.number added/updated (2 Comments)

$
0
0

Topic by Mike

When I update phone.number, phone.rawnumber remains blank in the DB.

 

Phone.RawNumber is readonly and cannot be manually changed by update/add

Customizable Menu value export

Using QueryCSV in Batch (3 Comments)

$
0
0

Topic by Bipin Mittal

Content

Hi,

I am trying to run multiple queries at one single SOAP call. Hence, I planned to use Batching. But, I am not able to achieve it successfully. Has anyone done this before and if you can provide a sample code, it would really be helpful.

 

Thanks,

Bipin

Version

Feb'14

LDAP Integration (9 Comments)

$
0
0

Topic by Maria

Hi,

How can I Integrate the Agent (Console) login with LDAP "Active Directory"

Is There information or tutorial about that?

 

Thanks a lot

María

Custom Process can not update a contact custom field! Help (6 Comments)

$
0
0

Topic by Cristhian Juarez

Content

Hi everyone,

I am trying to update or set a value to a contact custom field when creating a contact, but i don't know what am i doing wrong. 

I leave my cpm code. Please i will appreciate any help.

Regards.

Version

Service Cloud May 2015 SP4, CPM v1, Connect v1_3

Code Block

Sending emails from custom script (2 Comments)

$
0
0

Topic by Senthil Krish

Content

All,

I have issues with sending emails from custom scripts. I am using PHP's native method - mail() to send emails to customers and admins based on the condition written in my custom code. But, it looks like emails are not sent out.

Does the SMTP port enabled by-default by Oracle? Or do we need to request them to enable it? 

Any help would be much appreciated. 

Thanks

Senthil K

 

Code Block


Attachments via Chat API (SOAP) (1 Comment)

$
0
0

Topic by Michel Jilderda

Content

Hi,
we are currently creating a custom chat interface, via the SOAP WSDL (Custom Chat Interface API.)

Messaging seems to work fine, but I don't seem to find any clues on how to include attachments via this API. Is this simply not included API? We are now implementing a workaround by storing the attachment temporary, generating a link, etc.. which is a huge hassle, and a bad user AND agent experience in the end. 

Does anyone have another solution / better solution? 

 

Version

NOV 2015

How to increase timeout for Update()? (3 Comments)

$
0
0

Topic by Mike

Content

I am trying to run Update() on 1000 Answer objects but it does not complete before the timeout kicks in.

System.TimeoutException: The request channel timed out while waiting for a reply after 00:00:59.9375996. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout. ---> System.TimeoutException: The HTTP request to 'https://blah.custhelp.com/cgi-bin/blah.cfg/services/soap' has exceeded the allotted timeout of 00:00:59.9840000. The time allotted to this operation may have been a portion of a longer timeout. ---> System.Net.WebException: The operation has timed out

I set all my bindings to 10 minutes as well as app.config timeouts to 10 minutes

How do I increase this timeout?  Am I doing something wrong for it to take longer than 1 minute?

 

Code Block

How to get list of available SalesProduct folders via SOAP (3 Comments)

$
0
0

Topic by Adam

Content

I've been trying, with no luck, to get a list of available folder names/ids available to SalesProduct.

Sending the following body:

<s:Body>
  <ns1:GetValuesForNamedIDHierarchy xmlns:ns1="urn:messages.ws.rightnow.com/v1_2">
    <ns1:FieldName>SalesProduct.Folder</ns1:FieldName>
  </ns1:GetValuesForNamedIDHierarchy>
</s:Body>

Results in:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header></soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Sender</faultcode>
<faultstring>NamedIDHierarchy not enumerable: SalesProduct.Folder</faultstring>
<detail>
<n0:RequestErrorFault xmlns:n0="urn:faults.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<n0:exceptionCode>INVALID_FIELD</n0:exceptionCode>
<n0:exceptionMessage>NamedIDHierarchy not enumerable: SalesProduct.Folder</n0:exceptionMessage>
</n0:RequestErrorFault>
</detail>
</soapenv:Fault>
</soapenv:Body>

I'm importing data from a CSV, which is working fine -- but I'm trying to sort the entries into folders, so I need to lookup the corresponding IDs.. 

Version

August 2014

Javascript API onsave() function (1 Comment)

$
0
0

Topic by Marv Ferrer

Content

We utilize the Javascript API within the incident workspace to run certain tasks on onsave() events only. However, when I hit save from another ticket/contact tab, the onsave() function is triggered in the other incident. Shouldn't the onsave() function accessible only within it's own incident tab?

Steps to replicate:

  1. Open or create an incident. Leave it open.
  2. Open or create another contact or incident record. Then, save it.
  3. The onsave() event within the incident in #1 also executes.

We are currently in Nov 14 release. There's no mention of this behavior in the documentation. Is this a bug?

Version

Nov 14

Code Block

Not Allowed: Cannot perform requested function or action (6 Comments)

$
0
0

Topic by Baljeet Singh

Content

Hi

I am trying to get custom fields from Account object. I tired by both ROQL and find method. ROQL is not displaying any custom fields. I am using find ()

$search = 1,2,3,4

$account = RNCPHP\Account::find("Account.CustomFields.c.badge_number IN ($search)");

It is printing the main array output but when I tried to get custom field values then it display error message

Not Allowed: Cannot perform requested function or action
Here is output which I got using find()

Array
(
    [0] => RightNow\Connect\v1_2\Account Object
        (
            [ID] => 
            [LookupName] => 
            [CreatedTime] => 
            [UpdatedTime] => 
            [AccountHierarchy] => 
            [Attributes] => 
            [Country] => 
            [CustomFields] => 
            [DisplayName] => 
            [DisplayOrder] => 
            [EmailNotification] => 
            [Emails] => 
            [Login] => 
            [Manager] => 
            [Name] => 
            [NameFurigana] => 
            [NewPassword] => 
            [NotificationPending] => 
            [PasswordExpirationTime] => 
            [Phones] => 
            [Profile] => 
            [SalesSettings] => 
            [ServiceSettings] => 
            [Signature] => 
            [StaffGroup] => 
        )

    [1] => RightNow\Connect\v1_2\Account Object
        (
            [ID] => 
            [LookupName] => 
            [CreatedTime] => 
            [UpdatedTime] => 
            [AccountHierarchy] => 
            [Attributes] => 
            [Country] => 
            [CustomFields] => 
            [DisplayName] => 
            [DisplayOrder] => 
            [EmailNotification] => 
            [Emails] => 
            [Login] => 
            [Manager] => 
            [Name] => 
            [NameFurigana] => 
            [NewPassword] => 
            [NotificationPending] => 
            [PasswordExpirationTime] => 
            [Phones] => 
            [Profile] => 
            [SalesSettings] => 
            [ServiceSettings] => 
            [Signature] => 
            [StaffGroup] => 
        )

)

 ROQL Query

$query                 = RNCPHP\ROQL::query("SELECT * FROM Account 
                                WHERE Account.CustomFields.c.badge_number IN ($search) ORDER BY ID ASC" )->next(); 
         while($account = $query->next()) 
         {     

              $name             =  $account['LookupName'];

         } 

ROQL output

Array
(
    [ID] => 1034
    [LookupName] => Scott Turner
    [CreatedTime] => 
    [UpdatedTime] => 
    [Country] => 1
    [DisplayName] => Scott Turner
    [DisplayOrder] => 101
    [EmailNotification] => 
    [Login] => scott.turner
    [Manager] => 
    [NotificationPending] => 0
    [PasswordExpirationTime] => 2016-08-07T04:00:00Z
    [Profile] => 3
    [Signature] => 
    [StaffGroup] => 100040
)

There is no custom field column in this output.

Any one has an idea how to get custom field values for Account object using ROQL.

I find the similar issue on this post   

 http://communities.rightnow.com/posts/08b2b38565

Is it product defect ?

Thanks!!

Baljeet Singh

 

 

Version

Oracle RightNow CX Cloud Service February 2016
Viewing all 2504 articles
Browse latest View live