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

Unable to retrieve Incident assignedTo (specific Owner), only staffGroup

$
0
0

Topic by Regis Lecoq

Content

Hi All,

My requirement is to retrieve the specific Owner of an Incident through the REST Connect API. The problem is when I send my Incident GET request, I can see in the response the "assignedTo": is blank, only the "staffGroup":  returns some value. (eg: "id": 100001).

If I run the same GET on the Account, I can see the Incident Owner indeed belongs to this Group "100001". Problem is, how do I know which one is the Assigned Owner since there can be a multitude of Staff Accounts in this Group, and I do not see a "Primary" Flag.. Anybody has run into this issue?

Please advise. Thank You!.

Also: looking at Data Dictionary I can see there is an existing field under Incidents "Assigned Account" (incidents.assgn_acct_id) which contains exactly the data I am looking for.. but if I create a Custom Field based on this assgn_acct_id column, it is always blank in the Response.. (even though it is necessarily populated through the Join incidents.assgn_acct_id = accounts.acct_id)

"assgn_acct_id": null

Thank you in Advance for any help!

Version

Service Cloud November 2015 REST Connect API

Send request to the QueryObjyects method of Connect Web Services for SOAP,but 「Fatal error: U...

$
0
0

Topic by Akihisa Okuda

I want to request  to the QueryObjyects method of Connect Web Services for SOAP by using PHP.
But「Fatal error: Uncaught SoapFault exception」 occurred.
How can I do this ? 
Please help

■My source code structure is as follows:

<?php
    $client = new SoapClient('https://xxxx.custhelp.com/cgi-bin/to-be.cfg/services/soap?wsdl=typed', array('trace' => 1,'soap_version' => SOAP_1_1));
    $usernameTokenSoapVar = new SoapVar('<wsse:UsernameToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="UsernameToken-3902281">
              <wsse:Username>xxxx</wsse:Username>
               <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">xxxx</wsse:Password>
           </wsse:UsernameToken>', XSD_ANYXML);
    $headers[] = new SoapHeader('http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', 'Security', $usernameTokenSoapVar, true);
    $auth = array('AppID'=>'Basic Objects Sample');
    $headers[] = new SoapHeader('urn:messages.ws.rightnow.com/v1_3', 'ClientInfoHeader', $auth);
    $client->__setSoapHeaders($headers);
    $query = array('Query' => 'SELECT Incident FROM Incident');
    $client->__soapCall("QueryObjects",$query,$headers);
?>

 

■Error Message is as follows:

Fatal error: Uncaught SoapFault exception: [soapenv:Client] XML builder done wit
h pulling. Pull parser cannot pull any more in C:\php_source\soap_test.php:12
Stack trace:
#0 C:\php_source\soap_test.php(12): SoapClient->__soapCall('QueryObjects', Array
, Array)
#1 {main}
  thrown in C:\php_source\soap_test.php on line 12

Fatal Error when using smtpmail() (1 Comment)

$
0
0

Topic by Daniel Taylor

Content

Hi,

I'm trying to use the function smtpmail() but I get the following error: 

Fatal error: Call to undefined function smtpmail()

Could someone please help me figure out where I'm going wrong?

This function has been temporarily whitelisted btw so this shouldn't be the problem.

This is a custom script - I have a ROQL query, and I want to send out an email for contacts that have a certain value for a custom field.

Many thanks

Code Block

Server Name to connect to Microsoft Power BI (2 Comments)

$
0
0

Topic by MikeA

I have a developer who is trying to connect Oracle Service Cloud to Microsoft Power BI. He says he just needs the server name of their OSC instance. Any idea how could we obtain that?

Batch/Chain Create->Get (13 Comments)

$
0
0

Topic by Mark Bradley

Content

Im trying to batch+chain a Create on Incident followed by a Get of the incident. Im able to run both the create and the get individually and they both work fine, so Im fairly confident that the structure is ok. However when I batch the requests I get the response for the Create but no response from the Get.

Anyone have any suggestions as to what is going wrong?

Cheers,

Mark

Code Block

Retrieving Analytics Report Results on REST

$
0
0

Topic by Christian Edensor Arbon

When retrieving analytics report results using SOAP, it is possible using the API available on http://documentation.custhelp.com/euf/assets/devdocs/february2016/Connect_Web_Services_for_SOAP/Content/Web%20Service%20API/Operations/RunAnalyticsReport.htm. I am wondering if there is a counterpart for this API for REST since I want to make the application to have a better performance since I am using a NodeJS-based app.

 

When I checked out the REST guide on the Technical Documentations page, it says that there is a analyticsReportResults endpoint: http://docs.oracle.com/cloud/latest/servicecs_gs/CXSVC/op-services-rest-connect-v1.3-analyticsReportResults-post.html but when I check out another resource, it says that analyticsReportResults are not yet available: http://documentation.custhelp.com/euf/assets/devdocs/may2015/Connect_REST_API/wwhelp/wwhimpl/js/html/wwhelp.htm#href=connect_rest_api.1.11.html.

 

Further checking on our end, /services/rest/connect/v1.3/, on the items object, it does not have an object with name analyticsReportResults.

 

Do I have something to enable to have the analyticsReportResults available for the REST APIs?

Create organization via SOAP. Address is disregarded (4 Comments)

$
0
0

Topic by Qing Liu

Hello Everyone,

I am trying to use SOAP API to create an organization. It went fine, however, the data of address does not filled in. The custom fields of organization works fine. 

 <soapenv:Body>
      <rnm:Batch xmlns:rnm="urn:messages.ws.rightnow.com/v1_3" xmlns:rng="urn:generic.ws.rightnow.com/v1_3" xmlns:rno="urn:objects.ws.rightnow.com/v1_3" xmlns:rnb="urn:base.ws.rightnow.com/v1_3" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
         <rnm:BatchRequestItem>
            <rnm:CreateMsg>
               <rnm:RNObjects xsi:type="rno:Organization" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                  <rnb:ID xsi:type="rnb:ChainSourceID" id="5378054" variableName="W5378054"/>
                  <rno:Addresses>
                  <rno:TypedAddressList xsi:type="rno:TypedAddress">
                     <rno:City>Den Haag</rno:City>
                     <rno:Country>
                        <rnb:ID id="2"/>
                        <rnb:Name>NL</rnb:Name>
                     </rno:Country>
                     <rno:PostalCode>7100TT</rno:PostalCode>
                     <rno:Street>Teststraat 1</rno:Street>
                     <rno:AddressType>
                        <rnb:ID id="2"/>
                        <rnb:Name>Shipping</rnb:Name>
                     </rno:AddressType>
                  </rno:TypedAddressList>
               </rno:Addresses>
                  <rno:CustomFields>
                     <rng:ObjectType>
                        <rng:TypeName>OrganizationCustomFields</rng:TypeName>
                     </rng:ObjectType>
                     <rng:GenericFields dataType="OBJECT" name="c">
                        <rng:DataValue>
                           <rng:ObjectValue xsi:type="rng:GenericObject">
                              <rng:ObjectType>
                                 <rng:TypeName>OrganizationCustomFieldsc</rng:TypeName>
                              </rng:ObjectType>
                              <rng:GenericFields dataType="STRING" name="rel_number">
                                 <rng:DataValue>
                                    <rng:StringValue>5378054</rng:StringValue>
                                 </rng:DataValue>
                              </rng:GenericFields>
                              <rng:GenericFields dataType="STRING" name="handelsnaam">
                                 <rng:DataValue>
                                    <rng:StringValue>Acta Marine B.V.</rng:StringValue>
                                 </rng:DataValue>
                              </rng:GenericFields>
                              <rng:GenericFields dataType="STRING" name="werkgevernummer">
                                 <rng:DataValue>
                                    <rng:StringValue>138381</rng:StringValue>
                                 </rng:DataValue>
                              </rng:GenericFields>
                              <rng:GenericFields dataType="STRING" name="status">
                                 <rng:DataValue>
                                    <rng:StringValue>Actief</rng:StringValue>
                                 </rng:DataValue>
                              </rng:GenericFields>
                              <rng:GenericFields dataType="STRING" name="kvk">
                                 <rng:DataValue>
                                    <rng:StringValue>01080154</rng:StringValue>
                                 </rng:DataValue>
                              </rng:GenericFields>
                           </rng:ObjectValue>
                        </rng:DataValue>
                     </rng:GenericFields>
                  </rno:CustomFields>
                  <rno:Name>Test Werkgever3</rno:Name>
               </rnm:RNObjects>
               <rnm:ProcessingOptions>
                  <rnm:SuppressExternalEvents>false</rnm:SuppressExternalEvents>
                  <rnm:SuppressRules>false</rnm:SuppressRules>
                  <rnm:ReturnExpandedSoapFaults>true</rnm:ReturnExpandedSoapFaults>
               </rnm:ProcessingOptions>
            </rnm:CreateMsg>
         </rnm:BatchRequestItem>
      </rnm:Batch>
   </soapenv:Body>

 

Anyone experiences similar issue before? Any tips, thank you. 

 

Yours Sincerely,

Qing 

ReportCommand AddIn Select All Data From Report (13 Comments)

$
0
0

Topic by Andrew Wooster

Content

I have implemented the ReportCommand AddIn but instead of only retrieving the data from the selected row, I need to retrieve all rows from the report.  If I select all the rows, it still only returns the data from the first row selected.

-Andrew W-

Version

February 2015

How to get the custom Yes/No field value using CPHP (21 Comments)

$
0
0

Topic by Mohana Gopal Selvam

Hi Gurus,

We have created the custom Yes/No field in Incident object. We have to fetch the value in CPM. I have tried the following codes. But it returns null value for all variables. Please let me know the correct code. 

     $sendsms = $incident->CustomFields->c->send_sms;
     $sendsmslookupname = $incident->CustomFields->c->send_sms->LookupName;
     $sendsmsvalue = $incident->CustomFields->c->send_sms->Value;
     $sendsmslookuname = $incident->CustomFields->c->send_sms->Name;
     print($sendsms);
     print($sendsmslookupname);     
     print($sendsmslookvalue);
     print($sendsmsname);

Thanks,

Mohan

ROQL to get Home Phone number without a where clause (5 Comments)

$
0
0

Topic by Priya Gopal

Hi All,

Can you please help me to get a Home Phone number of a Contact using a ROQL Column mapping and without a where clause?

Any help is much appreciated.

Thanks,

Priya

 

Calling RightNow 's QueryCSV operation from Tibco? (1 Comment)

$
0
0

Topic by Trilok Sharma

We are trying to hit the QueryCSV operation, We are able to get the response with SOAP UI and DOT NET  only after incorporating below security header :


  <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
         <wsse:UsernameToken wsu:Id="UsernameToken-3902281" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <wsse:Username>XXXXXXX</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXXX</wsse:Password>
         </wsse:UsernameToken>
      </wsse:Security> 

But the same thing we are not able to do with TIBCO. As we are not getting any option to add the above security header because above don't come as part of WSDL. We used the identity with username/password passed in security header but getting below error:

Error : Failed to establish the secured connection.

We are assuming it because of missing certificates in SSL setting or do we have do anything else.

After getting certificate, Are we able to establish connection or do we have modify WSDL to add security header

Please suggest any possible solution to above problem.

 

Deleting Published reports

$
0
0

Topic by RD

Content

Hi,

We have scheduled various reports to form a published report. Over the year published reports have accumulated and taking the file space.

Is there any way to purge the published reports after a duration.

If not is there a way through which we can delete these reports through code.

Because deleting these reports manually takes a lot of time and allows deleting only 25 reports at a time

Version

May 2015

Create Contact with a SOAP (13 Comments)

$
0
0

Topic by Leonardo Barbosa

Hello all,

I did a XML to create Contacts in RN

This is a example of my XML:

               <ns2:GenericFields dataType="OBJECT" name="c">
                  <ns2:DataValue>
                     <ns2:ObjectValue xsi:type="ns2:GenericObject">
                        <ns2:ObjectType>
                           <ns2:TypeName>ContactCustomFieldsc</ns2:TypeName>
                        </ns2:ObjectType>
                        <ns2:GenericFields dataType="STRING" name="profissao">
                           <ns2:DataValue>
                              <ns2:StringValue>PROFISSAO</ns2:StringValue>
                           </ns2:DataValue>
                        </ns2:GenericFields>
                     </ns2:ObjectValue>
                  </ns2:DataValue>
               </ns2:GenericFields>

It work 
Now I need set custom fields with type Char and Datetime. How I can do this?

Someone can help me?

Regards

 

curAdminUser - help with usage (9 Comments)

$
0
0

Topic by Chaitanya Nadig

Content

I was having difficulty using curAdminUser() function. I'm not sure if it isn't returning the correct value or if I'm using it wrongly. Please give me the correct usage of this function. 

What I'm trying to do is retrieve the ID of the current logged in user who's running a particular report. I'm calling curAdminUser() in the custom scripts of a report. I've pasted the PHP code for the custom script. I've put this code in the initialization part of the custom script. In the process part, I'm setting the value of a column to be equal to the global variable $display.

Version

May 2012

Code Block

Add Child Custom Objects record to Contact in addin

$
0
0

Topic by Vivek Goel

Content

Problem Statement: 

I have two child custom objects named Address and Product related to Contact. Also, There is an external web service which pulls the Contact data including Address and Product details from the external system.

Now, on Contact (new) workspace load, i m using a workspace addin to call this web service and set the contact data. But I am facing challenge in adding/binding address and product details corresponding to this contact also. Please make sure that I have not used save event anywhere till now and even I don't prefer to use it until user himself click on the Save button.

Version

November 2014

CPM: Unable to update Organisation Custom Fields (1 Comment)

$
0
0

Topic by Srikanth Y

Content

Hi All,

We are Feb 2016 version of Oracle Service Cloud, and have the below CPM code written which we would like to use to populate the data from one set of custom fields (Office Address) to another set of custom fields (Shipping Address).

But we are unable to achieve the expected result.

Your help would be appreciated.

Regards

Srikanth

Version

Feb 2016

Code Block

File

OrgHanlder_WorkingCode.php(4KB)

Block record save in Custom Process (1 Comment)

$
0
0

Topic by Mark Bradley

Is there any way, inside a custom process script, to block/invalidate a record save and notify the user? Im trying to find a way to stop a record save based on a roll up of values against a parent record value.

Cheers,

Mark

Freeboard with REST API (6 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.

I am trying to use a custom process to update an incident’s interface ID based on some conditions, w... (2 Comments)

$
0
0

Topic by Larry Edwards

Code Block

Image

REST API introductory videos

Viewing all 2504 articles
Browse latest View live