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

How to update Product object in Incident Workspace

$
0
0

Topic by Mala Karmakar

Content

Hi,

I am creating a custom process which will be triggred whenever the asset is selected and will update the product associated with the asset.

The Asset object is associated with Custom Object serviceProduct ( confusingly the same name ServiceProducts primary object) which is associated with Product Object (datatype : MenuType).

By using ROQL query I am able to fetch the desired value ( menu type).

The Relationship between the Primary Object Incident , Asset, Product & Custom Object serviceProduct is as below:

Asset.service_product_id -->CO$serviceProduct.ID

CO$serviceProduct.ser_prod_product_id--> Incident.Prod_id

Below the script but not able to find a way to set the Incident->Product to ser_prod_product_id

CO is the package name

The error I am receiving when Incident->Product=$ser_prod_id_desc;

Type mismatch : Must be serviceProduct ; Incident(ID=10222).Product

When changing to Incident->ServiceProduct & Incident->Prod_id  it is passing the test and showing the correct value but after deploying the desired result is not achieved. Please assist me if something I am missing while saving .

Thanks,
Mala

Version

Custom Process PHP script

Code Block


RightNow call from java using v1.3 results in "Data element in the Message is NULL" message

$
0
0

Topic by Victor Chirita

Content

Hello everybody, I am noob with RightNow and I am trying to understand what is going on when calling the API to retrieve some data.

I have a simple select query with CustomFields, executed using wsdl 1.3 definition, like this:

        Holder<CSVTableSet>  queryCSV = new Holder<>();
        Holder<byte[]> b = new Holder<>();
        client.queryCSV(queryString, PAGE_SIZE,",",false,true, queryCSV, b);

where query is like this

SELECT C.Emails.Address,
       C.CustomFields.c.Storerefnum,
       C.CustomFields.c.retailername,C.CustomFields.Retailer.contact_name,
       C.CustomFields.Retailer.house_number,C.CustomFields.Retailer.Street1,
       C.CustomFields.Retailer.Street2,C.CustomFields.Retailer.City,C.CustomFields.Retailer.postal_code,
       C.CustomFields.Retailer.Country,C.CustomFields.Retailer.retailer_inbound_service,C.CustomFields.Retailer.phone_number,
       C.CustomFields.Retailer.Billing.Street1,C.CustomFields.Retailer.Billing.Street2,C.CustomFields.Retailer.Billing.City,
       C.CustomFields.Retailer.Billing.PostalCode,C.CustomFields.Retailer.Billing.Country,C.CustomFields.Retailer.Billing.VATnumber,
       C.CustomFields.Retailer.Billing.PhoneNumber,C.CustomFields.Retailer.Billing.BillingEntityName,C.CustomFields.Retailer.Billing.Email,
       C.CustomFields.Retailer.Billing.ContactName FROM Contact C  WHERE Contact.PrimaryContactIncidents.ReferenceNumber = '***-***' AND C.Emails.AddressType = 0

and pagesize = 10;

When the query is run from java, I get: javax.xml.ws.soap.SOAPFaultException: Data element in the Message is NULL

What could be wrong?

 

Version

RightNow Api 1.3

Set Incident Product & Category in JAVA using SOAP Service

$
0
0

Topic by Deepu Kolkkadan

Hi All,

We are integrating RN with a third party site via SOAP web service, they are using JAVA code. Is there any java code block available for Incident creation with Product and Category mapping.

 

Thanks in advance,

Deepu

How to Set an "In List" Menu Filter Value Using the SOAP API (4 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

ROQL query for contact ID based on email address (1 Comment)

$
0
0

Topic by Mike Kramer

Can someone help me with the syntax to find the contact ID based on an input of an email address?  We have a situation where we want users to enter only their email address on our web site on a form.  When they submit that form, we want an incident created.  Requirements for creating an incident are a primary contact ID and subject.  So my objective is to find the contact ID based on the email address.  I'm using the REST API and I have found this link: https://docs.oracle.com/cloud/latest/servicecs_gs/CXSVC/op-services-rest-connect-v1.4-queryResults-get.html

Just unclear how to search for the email address.  I think email addresses are in a separate table??

Using the example, I would expect something like:

?query=select id from contacts where contacts.email like 'mike@norwood.com'  but this definitely doesn't work. 

Is there a database diagram that shows the table structures?

https://mysite.example.com/services/rest/connect/v1.3/queryResults/
?query=select id,subject from incidents where id<=10;

How to use RunAnalyticsReport with generic WSDL (1 Comment)

$
0
0

Topic by Alanna Larson

Content

My overall goal is to get the contents of some report (assuming I have already obtained the ID) and do some action to a selected subset of the report entries. I am able to complete this task in my own instance thanks to the help I received here, but need it to work on other instances.

I am using the SOAP API v1.3 and am able to use RunAnalyticsReport under typed WSDL (https://<site-name>.com/services/soap/connect/soap?wsdl=typed_v1.3), but as far as I understand, the generic WSDL definition should be used for an Add-In to be compatible across instances. The generic version of 1.3 (https://<site-name>.com/services/soap/connect/soap?wsdl=generic_v1.3) does not contain RunAnalyticsReport, same with 1.4. Is there a workaround for this?

Version

Oracle Service Cloud May '15 - Current, C#.Net Desktop Add-Ins, Connect Web Services

Time out for Connect PHP on incident creation

$
0
0

Topic by Sumanth Ch

Content

Hi All,

I am trying to import bulk incidents through a custom script that can be opened in a browser.. I am uploading an excel file (.XLS format). Then each and every row is processed and created as an incident in the service cloud. The utility runs fine for 700 records, however, I am facing issue when I try to upload more than 700 records. Sometimes, the reference number is created for a row but I couldn't find the same in the application when I search for it. Sometimes, it stops processing after certain number of records.

The custom script is working fine when I upload a file with less than 600 to 700 records, so my guess is that it has something to do with connect PHP timeout or browser timeout. Can anyone please share if we have any time limit or any limit on number of incident creation through connect PHP.

Thanks in Advance!

Regards

Sumanth

Version

ConnectPHP v1.2

Connect Object Explorer and ROQL confusing me. (6 Comments)

$
0
0

Topic by Simon Kay

So I'm trying to create an ROQL query to pull open incidents assigned to a specified contact. I know using a report would probably be easier but I've multiple environments and multiple interfaces and its a whole load of bother!

I've been investigating the Connect Object Explorer and find that its not as straight forward as it seems. Under the Incident object theres a PrimaryContact Object, when I try and run "Select Incident.PrimaryContact from Incident where id = 8241264" I get "Non-existant column: 'PrimaryContact'". 

Am I misunderstanding this system?

I read through the community and found someone suggesting using the Contact object with the PrimaryContactIncidents object, but couldnt find reference to PrimaryContactIncidents anywhere.

Could someone nudge me in the right direction?


Freeboard with REST API (9 Comments)

$
0
0

Topic by Michael Locurcio

Does anyone have any experience using Freeboard with the Rest API. 

This could be a very powerful and economical way to build web dashboard outside of Oracle for use on readerboard, executives, etc, without the overhead and license needed for the client.

I can't figure out how to get freeboard to authenticate with the Rest API.

Need Sample xml file for populating custom fields when creating incidents (2 Comments)

$
0
0

Topic by Sandeep Goswami

Content

I am creating incidents by consuming RightNow WDSL from JDeveloper using the below sample xml file.. But I am unable to understand how to add custom fields while craeting an incident. Can you please help?

Version

August 2012

Code Block

Rightnow Contacts Update using WSDL v1_3 fails to connect after changes

$
0
0

Topic by Peter Keegan

Content

We've been using Rightnow WSDL v1_3 for a couple years to insert /update the contact records. I am in the process of adding added 3 new custom fields and removing two others. The changes have been working fine in testing - updates have been successful to the new fields in our tst site. Then, a couple days ago, the very first contact update fails with the error: 'could not establish a secure channel'.  The Rightnow soap account has not changed and i can login to the account through the console without any problem. There have not been any environment changes and I get this error from both my desktop and the server, whether attempting to attach to either our tst site and our live site. Our existing app continues to work fine on the live site - so i've clearly introduce an issue. 

Thank you in advance for any ideas on what is happening!

Full error:

An unhandled exception of type 'System.ServiceModel.Security.SecurityNegotiationException' occurred in mscorlib.dll
Additional information: Could not establish secure channel for SSL/TLS with authority 'hbeupdate--tst.custhelp.com'.

see attached code

Version

Service Cloud may 2016, WDSL V1_3

Code Block

File

RightNowClient.cs(58KB)

Multiple integration based (REST) API calls with single user

$
0
0

Topic by Umer

Is it possible to use a single user with multiple integration API calls? What I mean is let suppose I have a PHP page in which i am syncing contacts in RightNow and another PHP page to fetch and display some report. Would i need two different accounts or same will work with both? Both may execute at the same time.

TIBCO and Service cloud integration (1 Comment)

$
0
0

Topic by Rohit Apsangi

Hello ,

I was looking for some help on TIBCO and OSVC integration. Is there any adapter available for OSVC in TIBCO ? If not how we can build up integration with legacy/ mainframe systems with the help of TIBCO or any other  integration platform?

Please suggest your ideas on this. 

Regards,

Rohit.

Aug 17 Soap API APIAccessRequestHeader required (9 Comments)

$
0
0

Topic by Walter Kamp

Content

We're working on a SOAP integration with OSC Aug '17 version and see that since this version we have to send an "APIAccessRequestHeader" as well. We can manage to get it working, but I tried to find information about this in the API documentation, but can't find anything about this new header we have to send.
Anyone having some information about this new 'feature'?

Thanks,
Walter Kamp
WeSquare

Version

Service Cloud Aug 17

recordContext.RefreshWorkspace(); not working properly (6 Comments)

$
0
0

Topic by Lage Antony

Content

Hi All,

I have created a workspace ADDin on Incident workspace . The addin shows a textbox control on UI. When the user types an email address ,on lost focus of the textbox, the addin searches whether a contact is already created in the database if yes it sets that contact ID as primary email address of the current workspace else if contact ID doesnot exist , it will create a contact with the email address and set the new contact ID as primary contact. The problem i am facing is after contact id is set in the code , i am refreshing the incident workspace to show that the contact ID set to the user. In some cases the  recordContext.RefreshWorkspace(); works properly and in some other cases its not working properly. Any help appreciated . Thanks 

 

Version

Aug 2017 Agent desktop

Code Block


CPM access object properties with loop (2 Comments)

$
0
0

Topic by Duncan Taylor

Content

I'm writing a CPM to do audit logging. I would like to be able to  write one script which can loop through the object, check what properties have changed and create a log accordingly. However I would like this to work for multiple object types (incidents, cases, contacts, etc.) 

I'm aware that the PHP api does lazy loading which has already tripped me up before. However when I iterate through the properties all the values come out as Null. If I assign them to local variables by name it works, but i dont want to have to manually hand code a script for every single object I want to add this too. 

Is there a way to loop through all the properties and actually get values out of the api? 

PS. I'm aware that I can fetch the object and do it that way, but that means that I dont have access to the previous values available on the passed in object. 

Version

17D

Code Block

Populate value in read only fields through Add-in (7 Comments)

$
0
0

Topic by chidambaram CT


I have created 2 custom attributes branch & workplace and placed in the contact workspaces. Branch-Workplace are in master-detail relationship. 

Both fields are ready-only, because I want populates values for these fields through add-in. First add-in populate value for branch
and place the value in Contact.CO$branch and second add-in populates values for workplace related to current branch and place the value in Contact.CO$Workplace 

Assume I have branch b1 and workplace w1. Now I choose different branch, let say b2, and workplace value at this stage is no value (Intialize),if click save button, it should save "No value" but old workplace value populates. After save, branch is b2 and workplace is w1, which breaks the relation.

I have tried  _recordContext.RefreshWorkspace(), but this does not work.

Any input on this is highy  appreciated.

Custom object in the contact workspace

$
0
0

Topic by chidambaram CT

I want to access custom object field in my add-in code. We have space constraint so we create custom object field "ReasonCode" 
in the ContactDetails custom object under package Comms. I tried to access something like this.

Line 1 : IGenericObject customObjectContact = (IGenericObject)_recordContext.GetWorkspaceRecord("Comms$ContactDetails");
Line 2  : IList<IGenericField> IlistGenericCustomObject = customObjectContact.GenericFields;

I am getting null value  in the Line 1.

Set Incident Product & Category in JAVA using SOAP Service (4 Comments)

$
0
0

Topic by Deepu Kolkkadan

Hi All,

We are integrating RN with a third party site via SOAP web service, they are using JAVA code. Is there any java code block available for Incident creation with Product and Category mapping.

 

Thanks in advance,

Deepu

CPM, Custom Object and $obj->prev (2 Comments)

$
0
0

Topic by Mark Bradley

Has anyone had any issues with $obj->prev being empty in a Custom Process "on update" script? I can use this fine on standard objects but when I try to get $obj->prev on a custom object it is consistantly empty?

Cheers,

Mark

Viewing all 2504 articles
Browse latest View live