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

pass custom field when creating incidents (5 Comments)

$
0
0

Topic by s k

I create incidents by consuming RightNow WDSL using the xml file.
But I can't add custom field while creating an incident.
My xml file:

<soapenv:Envelopexmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header>
        <ns7:ClientInfoHeaderxmlns:ns7="urn:messages.ws.rightnow.com/v1_2"soapenv:mustUnderstand="0">
            <ns7:AppID>Incident Create</ns7:AppID>
        </ns7:ClientInfoHeader>
        <wsse:Securityxmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
                      mustUnderstand="1">
            <wsse:UsernameToken>
                <wsse:Username>test</wsse:Username>
                <wsse:PasswordType="http://docs.oasis-open.org/sdsd">test</wsse:Password>
            </wsse:UsernameToken>
        </wsse:Security>
    </soapenv:Header>
    <soapenv:Body>
        <ns7:Createxmlns:ns7="urn:messages.ws.rightnow.com/v1_2">
            <ns7:RNObjectsxmlns:ns4="urn:objects.ws.rightnow.com/v1_2"
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:type="ns4:Incident">
                <ns4:PrimaryContact>
                    <ns4:Contact>
                        <IDxmlns="urn:base.ws.rightnow.com/v1_2"id="325"/>
                    </ns4:Contact>
                </ns4:PrimaryContact>
                <ns4:Subject>Conversation</ns4:Subject>
                <ns4:Threads>
                    <ns4:ThreadListaction="add">
                        <ns4:EntryType>
                            <IDxmlns="urn:base.ws.rightnow.com/v1_2"id="1"/>
                        </ns4:EntryType>
                        <ns4:Text>Test</ns4:Text>
                    </ns4:ThreadList>
                </ns4:Threads>
                <ns4:CustomFieldsxmlns:ns2="urn:generic.ws.rightnow.com/v1_3"xsi:type="ns2:GenericObject">
                    <ns2:ObjectType>
                        <ns2:TypeName>IncidentCustomFields</ns2:TypeName>
                    </ns2:ObjectType>
                    <ns2:GenericFieldsdataType="OBJECT"name="c">
                        <ns2:DataValue>
                            <ns2:ObjectValuexsi:type="ns2:GenericObject">
                                <ns2:ObjectType>
                                    <ns2:TypeName>IncidentCustomFieldsc</ns2:TypeName>
                                </ns2:ObjectType>
                                <ns2:GenericFieldsdataType="STRING"name="Name of custom field">
                                    <ns2:DataValue>
                                        <ns2:StringValue>Setting Custom Field!</ns2:StringValue>
                                    </ns2:DataValue>
                                </ns2:GenericFields>
                            </ns2:ObjectValue>
                        </ns2:DataValue>
                    </ns2:GenericFields>
                </ns4:CustomFields>
            </ns7:RNObjects>
            <ns7:ProcessingOptions>
                <ns7:SuppressExternalEvents>false</ns7:SuppressExternalEvents>
                <ns7:SuppressRules>false</ns7:SuppressRules>
            </ns7:ProcessingOptions>
        </ns7:Create>
    </soapenv:Body>
</soapenv:Envelope>

 

if I remove following part from xml, incident will be created, BUT I need to add value of this custom field

<ns4:CustomFields xmlns:ns2="urn:generic.ws.rightnow.com/v1_3"xsi:type="ns2:GenericObject"><ns2:ObjectType><ns2:TypeName>IncidentCustomFields</ns2:TypeName></ns2:ObjectType><ns2:GenericFields dataType="OBJECT"name="c"><ns2:DataValue><ns2:ObjectValue xsi:type="ns2:GenericObject"><ns2:ObjectType><ns2:TypeName>IncidentCustomFieldsc</ns2:TypeName></ns2:ObjectType><ns2:GenericFields dataType="STRING"name="custom field name "><ns2:DataValue><ns2:StringValue>Setting Custom Field!</ns2:StringValue></ns2:DataValue></ns2:GenericFields></ns2:ObjectValue></ns2:DataValue></ns2:GenericFields></ns4:CustomFields>

Name of custom field is custom field name (three separete words - maybe this is the reason for the error???)

id is 117

Error:

RightNowSyncService|urn:wsdl.ws.rightnow.com/v1_2 failed Found out-of-order or unrecognized node CustomFields|urn:objects.ws.rightnow.com/v1_2 while parsing node of type Incident|urn:objects.ws.rightnow.com/v1_2 Failed in constructing object CreateMsg : NULL input can not be deserialized Failed in setting value for element RNObjects array position 0 of object CreateMsg Failure in setting value for object Create element Create of type messages_ws_rightnow_com_v1_2::CreateMsg NULL returned from the Create deserializer due to missing or invalid XML

Could you help me please?


Welcome! (2 Comments)

$
0
0

Topic by mpeterson

Welcome to the RightNow Connect discussion board! RightNow Connect is the new framework for integrating with our award winning customer experience suite. To begin using Connect, see the training materials and user guides located in the file exchange area: http://community.rightnow.com/developer/fileexchange. Note that, in order to use RightNow Connect, your site must be configured for Connect access.

As you use RightNow Connect, we want to hear your feedback and encourage you to send us your comments via this forum.

Thank you,

Mark Peterson
Technical Product Manager, Integration Tools
RightNow Technologies

Monitoring use of SOAP API (1 Comment)

$
0
0

Topic by David Wright

Content

Hi - is it possible to get stats on our useage and performance of the SOAP API? We are using it very heavily for various intergrations but are concerned we are 'maxing out'. Is it possible to get more capacity? David 

Version

Oracle Service Cloud Feb 15

Calling UQ Chat API's Authenticate() - What Do I Use for SiteName? (2 Comments)

$
0
0

Topic by Mike Waldron

I posted this once, but it apparently disappeared in the great hiccup of 2016. I'm not seeing it anywhere now, so I'm going to post it again. If it shows up twice at some point...sorry.

I'm trying to use the third party queue (UQ) chat API, but before it can be used, it's necessary to call Authenticate():

TransactionRequest trrq = new TransactionRequest();
// trrq.SiteName = "opn-foo";
// trrq.SiteName = "opn-foo.rightnowdemo.com";
// trrq.SiteName = "https://bcvipdo02.rightnowtech.com/Chat-WS/services/wschatuq/v1_1?pool=272:6";
trrq.SiteName = "https://opn-foo.rightnowdemo.com/cgi-bin/opn_foo.cfg/services/chat_soap";
trrq.TransactionID = this.transactionID++;
trrq.Timestamp = DateTime.Now;
this.uqclient.Authenticate(trrq, out this.sessionID);

However, none of the values I've tried for SiteName work - I get a System.ServiceModel.Security.MessageSecurityException that says "{"An invalid site name : *** was passed on the request."} The example in the documentation uses "3PQtest," but without knowing which site that example actually ran on I can't work backwards to what the API expects in this field.

What does the API want for TransactionRequest.SiteName?

Process Designer - Could not connect to host (3 Comments)

$
0
0

Topic by RD

Content

Hi 

I am trying to use curl to call a webservice.

I am getting the error 'Couldnt connect to host' or 'Connection timed out' during testing.

Version

May 2015

Code Block

SendMailingToContact Log and Reports (3 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 (1 Comment)

$
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

Chat 3PQ RetrieveMessages Never Returns Anything

$
0
0

Topic by Mike Waldron

Content

I'm trying to build a chat toolbar addin that

  1. Listens for the enduser to disconnect
  2. Starts a timer, and
  3. Forces chat termination when the timer expires

I have the addin basically functional, and I can call into the 3PQ API just fine, but the problem I'm having is that RetrieveMessages never returns anything. Ever, that I can tell. I'm trying to pick up an occurrence of  RNChatCompletedMessage but it doesn't seem to be working.

The guts of my timer function are below. I've left out some things so as not to paste a million irrelevant lines, but here's some background:

  • RetrieveMessages() is returning a success indicator, but there's nothing in my SystemMessagePart object on return.
  • getMessageTypes() is a function of my own that lists the message types. It uniformly returns "(None)" because smb.Items is null
  • I'm logging into the console as an agent, and chatting with myself in a browser window
  • The addin's authenticating with a separate account from the one I'm logging into the console with, so I don't clobber my session
  • There are some forum discussions on StartingSequenceNumber that I've tried to put into practice, but still no luck.
  • What the heck is transactionID? I'm starting it at 0 and incrementing it for each API operation, but is this right?

I'm at the point where I hope I'm doing something obviously and wildly wrong just so I can get over this hump, so if you see something please let me know.

Code Block


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

$
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.

ROQL retrieve incidents with attachments (2 Comments)

$
0
0

Topic by Vlad Ardelean

Content

Hi all,
I am trying to pull a range of incidents in ROQL based on the creation date and the presence of attachments and I am not sure of the syntax.

I'm trying the following, but it doesn't work:

SELECT Incident FROM Incident WHERE FileAttachments IS NOT NULL AND CreatedTime >= '2016-02-16T00:00:00Z' AND CreatedTime <= '2016-02-17T00:00:00Z'

 

Any help is appreciated.

Version

Service Cloud Aug 2015

C# Change Account PW Exception (1 Comment)

$
0
0

Topic by Andrew Wooster

Content

I am trying to change a Staff Account's pw but am getting the following error:

System.ServiceModel.FaultCode NotificationPending may not be set die to visibility restrictions while performing the operation: update. While processing Accounts->NotifcationPending(boolean)

I have already used the Get method to get the Account using the account id.

-Andrew W-

Version

February 2015

Code Block

Unable to create custom objects in evenhandler custom process PHP Connect API (4 Comments)

$
0
0

Topic by Patti Arouni

Content

I have been unable to successfully create a custom object based on contact id and contact type when a new contact is created.  I'm getting a "Nothing to Save" error on the StudentChecklist custom object.

Can anyone see why this is happening and/or what I'm doing wrong?

I've exported and uploaded a zip file containing the two custom objects I'm using.

Many thanks!  

Version

August 2014

Code Block

File

custom_objects_definitions.zip(4KB)

Welcome! (2 Comments)

$
0
0

Topic by mpeterson

Welcome to the RightNow Connect discussion board! RightNow Connect is the new framework for integrating with our award winning customer experience suite. To begin using Connect, see the training materials and user guides located in the file exchange area: http://community.rightnow.com/developer/fileexchange. Note that, in order to use RightNow Connect, your site must be configured for Connect access.

As you use RightNow Connect, we want to hear your feedback and encourage you to send us your comments via this forum.

Thank you,

Mark Peterson
Technical Product Manager, Integration Tools
RightNow Technologies

Soap API - An explicit and detailed example of filters on the RunAnalyticsReport endpoint (2 Comments)

$
0
0

Topic by Ramy NATOUR

Content

Hello everyone,

As I'm currently trying to expose a contact's answer to an external system, I didn't manage to find a clear example/documentation about the filters tag in the Soap request.

Here is what I have until now

<v12:Filters>
               <!--Optional:-->
               <v12:Name>Survey Id</v12:Name>
               <!--Optional:-->
               <v12:Operator>
                  <!--Optional:-->
                  <v11:ID id="3"/>
                  <!--Optional:-->
                  <v11:Name>equal</v11:Name>
               </v12:Operator>
               <!--Zero or more repetitions:-->
               <v12:Values>37</v12:Values>
               <!--Optional:-->
               <v12:Attributes>
                  <!--Optional:-->
                  <v12:Editable>false</v12:Editable>
                  <!--Optional:-->
                  <v12:Required>true</v12:Required>
               </v12:Attributes>
               <!--Optional:-->
               <v12:DataType>
                  <!--Optional:-->
                  <v11:ID id="?"/>
                  <!--Optional:-->
                  <v11:Name></v11:Name>
               </v12:DataType>
               <!--Optional:-->
               <v12:Prompt>false</v12:Prompt>
            </v12:Filters>

From my understanding of this XML node, we:

  • Declare a name for the filter
  • Set the operator that will be used
  • Fill the values that you will be compared
  • Do some things in DataType

My questions are:

  • Can anyone confirm that the '=' operator has 3 as Id ?
  • Explain the use of the DataType section and how to fill it correctly ?
  • Provide an explicit example of filter so that if someone encounters the same issue, he can find a solution by himself ?

Thanks in advance

Version

May 2015

C# Retrieve List of Profiles with Chat Enabled (1 Comment)

$
0
0

Topic by Andrew Wooster

Content

Is there a way to access the profiles and return a list with profiles that have Chat enabled?

-Andrew W-

Version

February 2015

Accessing the development version of a controller using DevelopmentRedirect (2 Comments)

$
0
0

Topic by Ramy NATOUR

Content

Hello everyone,

I would like to know if there is a way to use the 'DevelopmentRedirect' styled URL in order to access to a controller in development mode without having to promote it to production at each test.

The developmentRedirect styled URL follows the following pattern as said in the Idea lab:

http://{site_name}/ci/admin/developmentRedirect

It redirects to app per default (i.e. http://{site_name}/ci/admin/developmentRedirect/answers/list <=> app/answers/list).

It tried using the '../' syntax to access the controller folder but it didn't work.

Thanks in advance,

Version

November 2014 Release

Cannot import WSDL after latest update

$
0
0

Topic by Mike

allsites_151101sp1_2016-02-12_160205-000134 was just applied

 

When adding a service reference to a blank new project in visual studio:

 

Severity    Code    Description    Project    File    Line    Suppression State
Warning        Custom tool warning: Cannot import wsdl:binding
Detail: An exception was thrown in a call to a policy import extension.
Extension: System.ServiceModel.Channels.SecurityBindingElementImporter
Error: An unsupported security policy assertion was detected during the security policy import: <sp:SignedSupportingTokens xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
          <wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy">
            <sp:IssuedToken sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient">
              <sp:RequestSecurityTokenTemplate>
                <t:TokenType xmlns:t="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0</t:TokenType>
                <t:KeyType xmlns:t="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://docs.oasis-open.org/ws-sx/ws-trust/200512/Bearer</t:KeyType>
                <t:CanonicalizationAlgorithm xmlns:t="http://docs.oasis-open.org/ws-sx/ws-trust/200512">ht...
XPath to Error Source: //wsdl:definitions[@targetNamespace='urn:wsdl.ws.rightnow.com/v1_3']/wsdl:binding[@name='RightNowFedAuthSyncBinding']    

 

Where can I find documentation on using cache with a database query? (1 Comment)

$
0
0

Topic by Carlton Davison

Content

I have a single database query (ROQL::query .. SELECT) which returns a large dataset (~1000 rows). The results will only change every few days. Should I cache the query and if so what is the best practice method?

I have seen use of checkCache($cacheKey) and setCache($cacheKey, $queryResult) in models, etc but cannot find any documentation about their proper use. Can someone please direct me to the right documentation. 

(I have also seen/used PersistentReadThroughCache for caching external files but assume this is not appropriate for database queries.) 

..Carl.

 

Version

August 2012

Runtime errors in CPM (9 Comments)

$
0
0

Topic by Pavansatish Annavarapu

Content

Is there a way to check run time errors for CPM?

I have a CPM which is invoked through rules.It updates few incident custom fields and save the incident and then call commit (please see the code block).

This whole setup has worked fine for few months but from past few days, there are few random incidents which are failing at save (or) commit in apply method.

If there is an exception (not error) while save or commit, I should still be able to log it.

As I'm unable to find logs beyond save or commit, I assumed that there was an error during save or commit.

Is my assumption correct? If yes, is there a way to find those errors?

Note: When I'm running the CPM in test mode (using test harness method), incidents which are failed in real time are executing the CPM as expected!!

 

Thanks in advance.

Regards,

Pavan

 

 

Version

August 2015, Connect PHP 1.2

Code Block

Monitoring use of SOAP API (3 Comments)

$
0
0

Topic by David Wright

Content

Hi - is it possible to get stats on our useage and performance of the SOAP API? We are using it very heavily for various intergrations but are concerned we are 'maxing out'. Is it possible to get more capacity? David 

Version

Oracle Service Cloud Feb 15
Viewing all 2504 articles
Browse latest View live