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

Set a value on Disposition field from SOAP call (1 Comment)

$
0
0

Topic by SOFIA BERMEJO SANZ

Content

Hello,

I try to do a SOAP call to close incidents and put some values to the incident. But I have an issue on disposition field, I tried to set a value but it doesn't work,

I first do a query to select an incident and after I use a batch to change the values of the status of the incident and the disposition. For the first field it's working as expected.

I put in code block, what I tried to do and in attachment the entire code.

Thanks you for your help.

Version

Connect V1_3

Code Block

File

update_incident.xml(2KB)

Extract all To: and CC: addresses from email header

$
0
0

Topic by Kurt Helfrich

I have a number of teams moving into OSvC incident handling from Outlook/Exchange emails.  They are really excited about being able to know how many transactions they are handling, SLA metrics, etc. - which they couldn't do with emails.  They have some interesting process requirements which require knowing the TO and CC addresses in the email header, which we so.  I found a couple of posts about using a regex to detect email addresses, but after examining a bunch of emails with real data, including "name in quotes"<email in angle brackets>, To and CC sections spanning multiple lines and other stuff, I'd like to find a library to parse this rather than play with regexes.  I found the PHP mailparse library, which looks useful, and a wrapper for that that looks more useful, but I don't know what's available in the PHP build we get to use.

This boils down to 2 questions:

  1. Does anyone have a good solution for fining all the To and CC addresses in the header?  Ideally, I'd like to have something like "$Parser->getHeader('to'); $from = $Parser->getHeader('cc'); $from = $Parser->getHeader('from');" that would provide arrays of the addresses that I could act on in a CPM, such as assign all To and CC addresses as secondary contacts, or maybe not create an incident if the mailbox was a CC recipient.
  2. Which libraries/functions are included in the PHP build used in OSvC?  Which libraries/functions are forbidden?  I thought about making this a separate post, but decided to include it for now.

Delete Contact SLAs using Connect PHP (2 Comments)

$
0
0

Topic by Dheeraj Eshwar Bangera

Content


I am using Connect PHP to Update SLAs on a Contact record and the sequence of steps are -

1. Delete the existing SLAs on the Contact record (function - deleteSLAInstance)
2. Associate the new set of SLAs to the Contact record (function - saveSLAInstance)

The functions used in the above two steps are provided for reference.

The SLA Delete and new SLA association works as expected but I see that the Array Index of SLAInstances keeps growing and is not re-set on deleting the SLAs (using offsetUnset). See attached screenshot (Contact_SLAInstances.JPG).

Is this the expected behavior? Can the Delete function be modified so that the SLAInstances is re-set to the initial state i.e. with no Array elements.

 

Code Block

File

Contact_SLAInstances.JPG(51KB)

Pass Menu List Filter to execute report with REST api (1 Comment)

$
0
0

Topic by SAJI MATHEW

Hi Team,

I would like to know how we can pass the menu list filter to REST api to execute the analytics report.

I have created an answer report and I want to get all the private answers, for that I made answer status as the filter. How can I pass this filter to REST api

I tried below messages as body

{ "id" : 100336,
 
"filters" :[ { "name" : "status1" , "values":"Private" }]
}
______________________________________

{ "id" : 100336,

"filters" :[ { "name" : "status1" , "values":["Private"] }]
}

_________________________________________

{ "id" : 100336,

"filters" :[ { "name" : "status1" , "values":[{ "lookupName" : "Private"}] }]
}

 

Please guide me on this

Thanks,

SAJI

Get the data for table in Data dictionary

$
0
0

Topic by Riya Goel

Content

Hi,

I am looking to get values for table rr_intervals(Response requirement Intervals). I am getting the table in Data Dictonary, but is not coming in Report Data Dictionary. 

Please tell me how to fetch the values for the table.

 

 

Regards,

Riya

Image

Getting the values for a Menu Custom Field

$
0
0

Topic by Alanna Larson

Content

I have a menu-type custom field in an incident and given the name of the field and an ID I need to get the string menu value (via a desktop add-in).

For example:
Name: CustomMenu
Menu Items:
Default (ID: 40)
Alternate (ID: 41)
Given the name, CustomMenu, and an ID of 41, I want to retrieve the name "Alternate".

I am able to retrieve a partial version of the custom field. I use _globalContext.GetOptlist((int)RightNow.AddIns.Common.OptListID.CustomFields) to retrieve a list of the custom fields, find the one with the correct name (say CustomMenu), and then I can check if my given ID (say 41. this ID is set by the agent) exists for that custom field with CfId and ValInt. However, I can't retrieve the string name (the ValStr, where I hoped this value would be, is empty).

Is there a way to retrieve the name from the incident context / global context available to me in a workspace add-in?

Otherwise, can I retrieve it through SOAP? I'm attempting to do so currently but I'm having trouble understanding how to apply the Generic Field structure. I was able to find similar tasks in the SOAP documentation (getting a custom object, setting a string-type custom field, etc.) but they are different enough that I don't understand how to apply them to my situation. Is there example code anywhere of this particular task?

(I apologize for the lack of links, due to the documentation using frames... this is the root page)

Version

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

Manipulate a report variable and use it in column expression

$
0
0

Topic by Riya Goel

Hi,

I have created a variable $estimatedDate and changing its value from custom script as :

$params['param_args']['param_item0']['val'] = $incident->CustomFields->c->target_resolution_date? $incident->CustomFields->c->target_resolution_date_prev + $rows[0][7]->val + 108000 : null;

$rows[0][10]->val=$params['param_args']['param_item0']['val'];

I can view the latest value of variable in 11th column. But if in another column definition I give $estimatedDate and see the result. This do not show the updated value. Can anyone please suggest how I can update a variable value and use it in column expression of a report.

Regards,

Riya Goel

Update the Status fields (3 Comments)

$
0
0

Topic by Apolinar Valdez

Hello!!!

I depend on a series of actions on my server, I need to update the status of some incidents automatically, can this be done by an update from ROQL? or generate an API that opens the incidents and change the status and then save them ?.

Some of this can be done or I'm talking nonsense?


Upload attachments to custom object from Ajax (13 Comments)

$
0
0

Topic by Lydia C

Content

Hi,

I have a custom object with file attachments activated. I checked the metadata and the methods and properties for file attachments are exposed. I have a form with all the data that must be saved for that custom object. Some of those fields are "upload documents", but for now I only have one: 

<rn:widget path="input/FileAttachmentUpload2" label_input="Upload""/>

This form has a submit form widget that extends the standard one and calls to a custom Ajax controller that saves the custom object. There I'm trying to save the attachment. If I write a file there, the custom object is saved, but if I try to save the file uploaded with the "input/FileAttachmentUpload2" widget, I'm getting an error. How can I check that the file is in the tmp folder? Am I doing something wrong?

Version

August 2013

Code Block

REST API : OSvC-CREST-Application-Context header

$
0
0

Topic by Nishi

Content

Hi friends,

I am using Service cloud site 18A trying to access REST API for simple GET operations.My account has all permissions related to standard and custom objects. But I am getting an error as below:

"detail": "Request does not contain OSvC-CREST-Application-Context header"

When I am adding the header OSvC-CREST-Application-Context  to my request headers, it is strange that I am getting an unauthorized response 401. Any help would be appreciated. 

 

Version

Oracle Service Cloud 18A

Code Block

Image

Connect api rest (Rightnow) with postman (1 Comment)

$
0
0

Topic by José Terán

Content

I having some issues when trying to connect via postman to rightnow. I am following the instructions on the documentation https://docs.oracle.com/en/cloud/saas/social/cxsrr/Social_Quick_Start.html. All the permissions and priviliges are enabled to my user.

Version

18A

Code Block

Image

Set phone number for Contact using SOAP web service

$
0
0

Topic by albert hua

Hi there,

We are upgrading the RightNow environment and it comes with a updated SOAP web service. It is breaking one of our Java application which is used to create/update Contact in RN. The error I'm getting is:

RN Integration RequestErrorFault: Cannot update non-existing object - action does not refer to an existing list entry While processing Contact->Phones(rno_v1_4::PhoneList)->PhoneList(rno_v1_4::Phone[])->action(rnb_v1_4::ActionEnum)

The code I'm using to set the phone is:

//build a PhoneList and set it to the Contact
PhoneList phoneList = new PhoneList();
Phone[] phoneArray = new Phone[1];
phoneArray[0] = new Phone();
phoneArray[0].setAction(ActionEnum.add);
phoneArray[0].setNumber("12345678");
 
 
phoneArray[0].setPhoneType(super.getObjectProfile(1)); //for mobile column
phoneList.setPhoneList(phoneArray);
newContact.setPhones(phoneList);
 

Upgraded SOAP WS is at: http://murdoch.custhelp.com/services/soap/connect/soap?wsdl

Any idea or suggestion is appreciated!

Many thanks

Albert

Event notifications in Rightnow webservices (10 Comments)

$
0
0

Topic by Pramod Vasudeva Murthy

Content

Hi Folks,

My team was trying to discover event notifications when a record updates. We were following this post.

We are not sure where to have the SOAP XML hosted. How does the event work?

  • Do we need to hit RN server with given SOAP request so to initialize first?
  • After that do we need to use CPM to drive it?
  • If we use CPM, what is the use of EventNotifications?

If anyone has implemented this, please suggest.

~VIP

Version

17D

REST EventSubscriptions Documentation/Debugging (4 Comments)

$
0
0

Topic by Douglas Cahill

Content

Has anyone successfully implemented the eventSubscriptions (http://docs.oracle.com/cloud/latest/servicecs_gs/CXSVC/api-eventSubscriptions.html) offered in the REST services?

There is scant documentation on this whole process.  Especially on the definition of 'objectShapeXml'

I've create a WCF web service that accepts calls based on the mentioned WSDL:

http://your_site_interface/cgi-bin/your_interface.cfg/services/soap?wsdl=event

and have setup 2 eventSubscriptions; 1 for Contact Create and 1 for Contact Update with my services as an endpoint.

I've independently tested my service and it functions fine with my tests but it doesn't look like it is being called whenever a Contact is being created or updated.

Is there something that needs to be turned on?

Is there additional documentation somewhere?

Is there any kind of log on the RNT side to see calls made to the defined endpoint?

 

 

  

Version

May16 Feb17

Help Implementing Subscriber for Event Notification Service in Java (2 Comments)

$
0
0

Topic by Isaiah Inuwa

Content

Hello,

I am trying to implement a Subscriber SOAP endpoint for the Oracle Service Cloud Event Notification Service, but I am having trouble generating code for the service from the WSDL provided at https://{site_interface}/services/soap/connect/soap?wsdl=event. I run into these errors:
 

wsimport -keep -J'-Djavax.xml.accessExternalSchema=all' -B'-XautoNameResolution' https://{site_interface}.custhelp.com/services/soap/connect/soap?wsdl=event

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 828 of https://{site_interface}/services/soap/connect/soap?xsd=objects

[ERROR] (Related to above error) This is the other declaration.
  line 819 of https://{site_interface}/services/soap/connect/soap?xsd=objects

[ERROR] Two declarations cause a collision in the ObjectFactory class.
  line 837 of https://{site_interface}/services/soap/connect/soap?xsd=objects

[ERROR] (Related to above error) This is the other declaration.
  line 823 of https://{site_interface}/services/soap/connect/soap?xsd=objects

Exception in thread "main" com.sun.tools.internal.ws.wscompile.AbortException
        at com.sun.tools.internal.ws.processor.modeler.wsdl.JAXBModelBuilder.bind(JAXBModelBuilder.java:129)
        at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildJAXBModel(WSDLModeler.java:2283)
        at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.internalBuildModel(WSDLModeler.java:183)
        at com.sun.tools.internal.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:126)
        at com.sun.tools.internal.ws.wscompile.WsimportTool.buildWsdlModel(WsimportTool.java:429)
        at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:190)
        at com.sun.tools.internal.ws.wscompile.WsimportTool.run(WsimportTool.java:168)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.tools.internal.ws.Invoker.invoke(Invoker.java:159)
        at com.sun.tools.internal.ws.WsImport.main(WsImport.java:42)

 

If I comment out the extra "MailboxIncomingEmailSettings" and "MailboxOutgoingEmailSettings" elements (they are already included as elements in the "Mailbox" element just declared just before), I am able to compile the code. But this seems like a hack; is there anyone who has gotten any further than this?

 

Thanks for the help!

Version

Service Cloud

Code Block


Manipulate a report variable and use it in column expression

$
0
0

Topic by Riya Goel

Hi,

I have created a variable $estimatedDate and changing its value from custom script as :

$params['param_args']['param_item0']['val'] = $incident->CustomFields->c->target_resolution_date? $incident->CustomFields->c->target_resolution_date_prev + $rows[0][7]->val + 108000 : null;

$rows[0][10]->val=$params['param_args']['param_item0']['val'];

I can view the latest value of variable in 11th column. But if in another column definition I give $estimatedDate and see the result. This do not show the updated value. Can anyone please suggest how I can update a variable value and use it in column expression of a report.

Regards,

Riya Goel

Connect api rest (Rightnow) with postman (2 Comments)

$
0
0

Topic by José Terán

Content

I having some issues when trying to connect via postman to rightnow. I am following the instructions on the documentation https://docs.oracle.com/en/cloud/saas/social/cxsrr/Social_Quick_Start.html. All the permissions and priviliges are enabled to my user.

Version

18A

Code Block

Contacts being duplicated with same e-mail but with a sequencial suffix

$
0
0

Topic by Ricardo Luz

when i submit a request to create a contact to the REST API, using the same e-mail address that a existant contact have. a new contact with the same e-mail and a sequential suffix.

example@test.com
example@test.com.0001
example@test.com.0002

and so on.

how do i disable this, so the api would respond with a error of trying to use a duplicate e-mail to create a contact or something like that.

Updating Menu field programmatically (2 Comments)

$
0
0

Topic by Pramod Vasudeva Murthy

Content

Hi Users,

I often view posts where people are stuck trying to update a Menu field programmatically. So here is a code base which covers all the possible methods of updating a Menu type field.

This covers updating Menu field using Connect PHP Framework, CWSS and C#.
 
I have considered following fields for example:
 
Standard Object: Incident
 
Standard field name: Status
Standard field menu items: Solved, Unresolved, Updated, Waiting
 
Custom field name: Test_Menu
Custom field menu items: Item_1, Item_2, Item_3
 
Custom Menu Only Object Name: test_menu_only_co
Package name: CO
Custom Menu Only Object Items: Item_1, Item_2, Item_3
 
Note: I have left interface values blank in C# code as it varies. You need to use Service reference in-order to consume the WSDL and provide valid credentials.
 
- VIP

Version

Nov 2015

File

Menu Field.zip(13KB)

Export Data to Flat File & FTP/Import Flat File from FTP (3 Comments)

$
0
0

Topic by Aparajit Malli

Content

Hi,

   REQUIREMENT 1 - Export Contact/Asset data to flat file (Request.txt - fixed width) and put it in a folder in FTP site, on a daily basis.

REQUIREMENT 2 - Also, on a daily basis, Read data (basically, just Status & Results) from a similar flat file (Response.xt - fixed width) from another folder in the same FTP site and then update Contact/Asset's Status in Service Cloud. 

To implement this, I am planning to do these steps. 

1) Create a PHP file (request.php) which reads the required Contact/Asset data from Service Cloud and create a file. QUESTION - Since file system is Service Cloud is not exposed, where can I place this file? Can I put the file directly in FTP site?

2) CRON job will run the PHP file, on a daily basis. I believe there is no other way of running a batch job every day. 

3) Similarly, Create another PHP file (response.php) to read data from response.txt and update Contact/Asset' Status. QUESTION - Should response.txt be copied to Service Cloud file system before reading it or can it read directly from FTP site?

4) CRON job will run "response.php" on a daily basis. 

 

Is there a better way and more efficient way of doing this? My main question is where to create the request file and where to read the response file from? Am I planning to do something which is plainly wrong or infeasible?

 

Version

Service Cloud May 2017
Viewing all 2504 articles
Browse latest View live