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

TNS-12541: TNS:no listener TNS-12560: TNS:protocol adapter error TNS-00511: No listener Linux... (1 Comment)

$
0
0

Topic by Ujjwal Rana

 

Hi,

 

I have grid installed in my pc but the problem is LISTENER does not start automatically. I have to start listener manually and then only LISTENER get started. But before starting listener if you check the status first then here is what is shows if you try LSNRCTL STATUS

 

 

MY QUESTION IS HOW SHOULD I MAKE THE LISTENER RUN AUTOMATICALLY ?

 

Please check the necessary required information below : -

*************************************************************************************************************************************************************************************************************

 

[grid@netsystemsolution ~]$ lsnrctl status

 

LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 01-JAN-2015 12:01:56

 

Copyright (c) 1991, 2011, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=netsystemsolution.com)(PORT=1521)))

 

TNS-12541: TNS:no listener

 

TNS-12560: TNS:protocol adapter error

 

TNS-00511: No listener

 

Linux Error: 111: Connection refused

 

*************************************************************************************************************************************************************************************************************

 

IF YOU CHECK THE STATUS OF THE LISTENER FROM SRVCTL THEN THIS IS WHAT IT SHOWS :-

 

[grid@netsystemsolution ~]$ srvctl status listener

 

PRCN-2044 : No listener exists

 

[grid@netsystemsolution ~]$ srvctl config listener

 

PRCN-2044 : No listener exists

 

[grid@netsystemsolution ~]$

 

 

 

*************************************************************************************************************************************************************************************************************

 

HOST INFORMATION :

 

[root@netsystemsolution ~]# vi /etc/hosts

192.168.0.1 netsystemsolution.com localhost localhost.localdomain localhost4 localhost4.localdomain4

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

 

[root@netsystemsolution ~]# hostname

 

netsystemsolution.com

 

[root@netsystemsolution ~]# ping netsystemsolution.com

 

PING netsystemsolution.com (192.168.0.1) 56(84) bytes of data.

 

64 bytes from netsystemsolution.com (192.168.0.1): icmp_seq=1 ttl=64 time=0.033 ms

 

64 bytes from netsystemsolution.com (192.168.0.1): icmp_seq=2 ttl=64 time=0.034 ms

 

64 bytes from netsystemsolution.com (192.168.0.1): icmp_seq=3 ttl=64 time=0.042 ms

 

64 bytes from netsystemsolution.com (192.168.0.1): icmp_seq=4 ttl=64 time=0.036 ms

 

64 bytes from netsystemsolution.com (192.168.0.1): icmp_seq=5 ttl=64 time=0.035 ms

 

64 bytes from netsystemsolution.com (192.168.0.1): icmp_seq=6 ttl=64 time=0.035 ms

 

^C

 

--- netsystemsolution.com ping statistics ---

 

6 packets transmitted, 6 received, 0% packet loss, time 5525ms

 

rtt min/avg/max/mdev = 0.033/0.035/0.042/0.008 ms

 

[root@netsystemsolution ~]#

 

*************************************************************************************************************************************************************************************************************

 

NOTE : I followed the following url for listener.ora,sqlnet.ora and tnsnames.ora configuration

 

http://oracle-base.com/articles/misc/oracle-network-configuration.php

 

LISTENER.ORA INFORMATION

 

[grid@netsystemsolution ~]$ cd $ORACLE_HOME/network/admin

 

[grid@netsystemsolution admin]$

 

[grid@netsystemsolution admin]$ vi listener.ora

 

# Generated by Oracle configuration tools.

 

#LISTENER =

 

#  (DESCRIPTION =

 

#    (ADDRESS = (PROTOCOL = TCP)(HOST = netsystemsolution.com)(PORT = 1521))

 

#  )

 

#ADR_BASE_LISTENER = /u01/app/grid

 

#ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER = ON

 

LISTENER =

 

  (DESCRIPTION_LIST =

 

    (DESCRIPTION =

 

      (ADDRESS_LIST =

 

        (ADDRESS = (PROTOCOL = TCP)(HOST = netsystemsolution.com)(PORT = 1521))

 

      )

 

    )

 

  )

 

 

 

SID_LIST_LISTENER =

 

  (SID_LIST =

 

    (SID_DESC =

 

      (GLOBAL_DBNAME = ORCL.netsystemsolution.com)

 

      (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)

 

      (SID_NAME = ORCL)

 

    )

 

  )

 

*************************************************************************************************************************************************************************************************************

 

SQLNET.ORAI INFORMATION

 

[grid@netsystemsolution admin]$ vi sqlnet.ora

 

# sqlnet.ora Network Configuration File: /u01/app/11.2.0/grid/network/admin/sqlnet.ora

 

# Generated by Oracle configuration tools.

 

SQLNET.AUTHENTICATION_SERVICES= (ALL)

 

#NAMES.DIRECTORY_PATH= (TNSNAMES, HOSTNAME)

#ADR_BASE = /u01/app/grid

NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)

NAMES.DEFAULT_DOMAIN = netsystemsolution.com

 

*************************************************************************************************************************************************************************************************************

 

TNSNAMES.ORA INFORMATION

[grid@netsystemsolution admin]$ vi sqlnet.ora

 

# tnsnames.ora Network Configuration File: /u01/app/11.2.0/grid/network/admin/tnsnames.ora

# Generated by Oracle configuration tools.

#ORCL =

 

#  (DESCRIPTION =

 

#    (ADDRESS_LIST =

 

#      (ADDRESS = (PROTOCOL = TCP)(HOST = netsystemsolution.com)(PORT = 1521))

 

#    )

 

#    (CONNECT_DATA =

 

#      (SERVICE_NAME = orcl)

 

#    )

 

#  )

 

 

 

ORCL.netsystemsolution.com =

 

  (DESCRIPTION =

 

    (ADDRESS_LIST =

 

      (ADDRESS = (PROTOCOL = TCP)(HOST = netsystemsolution.com)(PORT = 1521))

 

    )

 

    (CONNECT_DATA =

 

      (SERVICE_NAME = ORCL.netsystemsolution.com)

 

    )

 

  )

 

 

*************************************************************************************************************************************************************************************************************

 

[grid@netsystemsolution admin]$ crsctl status res -t

 

--------------------------------------------------------------------------------

 

NAME           TARGET  STATE        SERVER                   STATE_DETAILS     

 

--------------------------------------------------------------------------------

 

Local Resources

 

--------------------------------------------------------------------------------

 

ora.DATA.dg

 

               ONLINE  ONLINE       netsystemsolution                         

 

ora.FRA1.dg

 

               ONLINE  ONLINE       netsystemsolution                         

 

ora.asm

 

               ONLINE  ONLINE       netsystemsolution        Started          

 

--------------------------------------------------------------------------------

 

Cluster Resources

 

--------------------------------------------------------------------------------

 

ora.cssd

 

      1        ONLINE  ONLINE       netsystemsolution                         

 

ora.diskmon

 

      1        OFFLINE OFFLINE                                                

 

ora.evmd

 

      1        ONLINE  ONLINE       netsystemsolution                         

 

ora.orcl.db

 

      1        ONLINE  ONLINE       netsystemsolution        Open             

 

ora.tstdbdup.db

 

      1        ONLINE  OFFLINE         

 

                                    

 

[grid@netsystemsolution admin]$

 

*************************************************************************************************************************************************************************************************************

 

NOW I STARTED LISTENER MANUALLY WITH LSNRCTL COMMAND AND HERE IS WHAT IT SHOWS :

 

[grid@netsystemsolution admin]$ lsnrctl start

LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 01-JAN-2015 12:18:59

 

copyright (c) 1991, 2011, Oracle.  All rights reserved.

 

Starting /u01/app/11.2.0/grid/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.3.0 - Production

System parameter file is /u01/app/11.2.0/grid/network/admin/listener.ora

Log messages written to /u01/app/grid/diag/tnslsnr/netsystemsolution/listener/alert/log.xml

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=netsystemsolution.com)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=netsystemsolution.com)(PORT=1521)))

 

STATUS of the LISTENER

 

------------------------

 

Alias                     LISTENER

 

Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production

 

Start Date                01-JAN-2015 12:18:59

 

Uptime                    0 days 0 hr. 0 min. 6 sec

 

Trace Level               off

 

Security                  ON: Local OS Authentication

 

SNMP                      OFF

 

Listener Parameter File   /u01/app/11.2.0/grid/network/admin/listener.ora

 

Listener Log File         /u01/app/grid/diag/tnslsnr/netsystemsolution/listener/alert/log.xml

 

Listening Endpoints Summary...

 

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=netsystemsolution.com)(PORT=1521)))

 

Services Summary...

 

Service "ORCL.netsystemsolution.com" has 1 instance(s).

 

  Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...

 

The command completed successfully

 

[grid@netsystemsolution admin]$

*************************************************************************************************************************************************************************************************************

 

NOW IF YOU WAIT LIKE 10 TO 15 SECONDS, AFTER THEN THIS IS WHAT IT SHOWS :-

 

[grid@netsystemsolution admin]$ lsnrctl status

LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 01-JAN-2015 12:20:45

Copyright (c) 1991, 2011, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=netsystemsolution.com)(PORT=1521)))


STATUS of the LISTENER

 

------------------------

 

Alias                     LISTENER

 

Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production

 

Start Date                01-JAN-2015 12:18:59

 

Uptime                    0 days 0 hr. 1 min. 45 sec

 

Trace Level               off

 

Security                  ON: Local OS Authentication

 

SNMP                      OFF

 

Listener Parameter File   /u01/app/11.2.0/grid/network/admin/listener.ora

 

Listener Log File         /u01/app/grid/diag/tnslsnr/netsystemsolution/listener/alert/log.xml

 

Listening Endpoints Summary...

 

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=netsystemsolution.com)(PORT=1521)))

 

Services Summary...

 

Service "+ASM" has 1 instance(s).

 

  Instance "+ASM", status READY, has 1 handler(s) for this service...

 

Service "ORCL.netsystemsolution.com" has 1 instance(s).

 

  Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...

 

Service "orcl" has 1 instance(s).

 

  Instance "orcl", status READY, has 1 handler(s) for this service...

 

Service "orclXDB" has 1 instance(s).

 

  Instance "orcl", status READY, has 1 handler(s) for this service...

 

The command completed successfully

 

[grid@netsystemsolution admin]$

 

*************************************************************************************************************************************************************************************************************

AFTER STARTING LISTENER, LSNRCTL START....Again If  you need to see whether 1521 is running or not then here it is ?

 

[grid@netsystemsolution admin]$ netstat -nltp

(Not all processes could be identified, non-owned process info

will not be shown, you would have to be root to see it all.)

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name 

tcp        0      0 0.0.0.0:20335               0.0.0.0:*                   LISTEN      -                 

tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      -                 

tcp        0      0 127.0.0.1:5939              0.0.0.0:*                   LISTEN      -                 

tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      -                 

tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      -                 

tcp        0      0 192.168.0.1:25              0.0.0.0:*                   LISTEN      -                 

tcp        0      0 :::111                      :::*                        LISTEN      -                 

tcp        0      0 :::1521                     :::*                        LISTEN                              7268/tnslsnr      

tcp        0      0 :::45877                    :::*                        LISTEN      -                 

tcp        0      0 :::22                       :::*                        LISTEN      -                 

tcp        0      0 ::1:631                     :::*                        LISTEN      -                 

tcp        0      0 ::1:25                      :::*                        LISTEN      -                 

tcp        0      0 :::28835                    :::*                        LISTEN      -      

         

[grid@netsystemsolution admin]$

 

*************************************************************************************************************************************************************************************************************

 

I wonder where is the problem ? Why I have to start LISTENER MANUALLY ? Why LISTENER does not start automatically ? Please suggest.


How to associate a contact with an Organization

$
0
0

Topic by Chun Yu

Content

Hi 

I am able to create a contact with basic information. However, how can I associate a contact with an Organization.

I tried many different methods, no of them worked. The error I got from the code below was 

  <soapenv:Fault>
         <faultcode>soapenv:Sender</faultcode>
         <faultstring>Invalid ID: Organization with ID -2147483646 does not exist
While processing Contact->Organization(rnb_v1_2::NamedID).</faultstring>
         <detail>
            <n0:RequestErrorFault xmlns:n0="urn:faults.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
               <n0:exceptionCode>BAD_ID</n0:exceptionCode>
               <n0:exceptionMessage>Invalid ID: Organization with ID -2147483646 does not exist
While processing Contact->Organization(rnb_v1_2::NamedID).</n0:exceptionMessage>
            </n0:RequestErrorFault>

 

Also, I tried

<ns4:Organization>
<ns5:ID id="70"/> 
</ns4:Organization>

Contact created but no organization associated 

I have an organization with Id = 70

thanks

 

 

Chun

Version

Aug 2014

Code Block

Ports to open for Connect Data Services

$
0
0

Topic by Radagast

Content

I need some help with others who have implemented a console application (.net) using Connect Data Services.

It seems I have isolated my code failure in production to any call back to Rightnow (QueryCSV, RunAnalyticsReport, etc).   This code runs on my local machine where the firewall is not locked down.

 

Currently in production I have ports 80 and 443 open.  Are there other ports I need to open as well like 8080?

I have run netstat to watch the traffic in and out and I did see some activity on 8080 and 8280.  I can find no documentation that talks about this.  Please help if you have an answer.

Version

Nov 2014

Refno automatic linking (1 Comment)

$
0
0

Topic by Brad Leary

Content

When a refno is included in the text of a thread, it is automatically converted into a link to that incident. Is there any way that I can disable or escape that behavior?  I'm trying to link to an incident in another instance of CX, but this automatic link overrules the explicit html link I'm trying to create.

Code Block

Error when creating a new incident with custom field value

$
0
0

Topic by Uma Guduru

Content

Hi,

 

Im trying to create a new incident , also at the same time trying to set the value of a custom field which is menu item, i get error message , i have uploaded the error message

Please check the code below and let me know what is it that im doing wrong.

----------------------------------------------------------------------------------------------------------------------------------

            newIncident.Subject = "This is a test incident - Please Ignore";

            // Assign Incident Queue
            NamedID incidentQueueID = new NamedID();
            incidentQueueID.ID = new ID();
            incidentQueueID.ID.id = 32;
            incidentQueueID.ID.idSpecified = true;
            newIncident.Queue = incidentQueueID;


            //Create an IncidentContact to add as the primary contact on the new Incident
            IncidentContact incContact = new IncidentContact();
            NamedID contactNamedID = new NamedID();
            contactNamedID.ID = new ID();
            contactNamedID.ID.id = 252431;
            contactNamedID.ID.idSpecified = true;
            incContact.Contact = contactNamedID;
            newIncident.PrimaryContact = incContact;


            GenericField[] customField = new GenericField[1];
            customField[0] = new GenericField();
            customField[0].name = "prioritytype";
            customField[0].dataType = DataTypeEnum.NAMED_ID;
            customField[0].dataTypeSpecified = true;
            NamedID nid = new NamedID();
            ID nameid = new ID();
            nameid.id = 1;
            nameid.idSpecified = true;
            nid.ID = nameid;
            customField[0].DataValue = createmenuDataValue(nid);
          

            GenericObject customFieldsc = new GenericObject();
            customFieldsc.GenericFields = customField;
            customFieldsc.ObjectType = new RNObjectType() { TypeName = "IncidentCustomFieldsc" };

            GenericField customFieldsPackage = new GenericField();
            customFieldsPackage.name = "c";
            customFieldsPackage.dataType = DataTypeEnum.OBJECT;
            customFieldsPackage.dataTypeSpecified = true;
            customFieldsPackage.DataValue = new DataValue();
            customFieldsPackage.DataValue.Items = new[] { customFieldsc };
            customFieldsPackage.DataValue.ItemsElementName = new[] { ItemsChoiceType.ObjectValue };

            newIncident.CustomFields = new GenericObject
            {
                GenericFields = new[] { customFieldsPackage },
                ObjectType = new RNObjectType { TypeName = "IncidentCustomFields" }
            };
           
          

            //Build the RNObject[]
            RNObject[] newObjects = new RNObject[] { newIncident };

            //Set the processing options
            CreateProcessingOptions options = new CreateProcessingOptions();
            options.SuppressExternalEvents = false;
            options.SuppressRules = false;

            //Invoke the Create Operation
            try
            {
                ClientInfoHeader clientInfoHeader = new ClientInfoHeader();
                clientInfoHeader.AppID = "Basic Create";
                RNObject[] results = _client.Create(clientInfoHeader, newObjects, options);
               
                MessageBox.Show("New Incident with ID: " + results[0].ID.id + " created.");
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error Message -> " + ex.Message);
            }
           
        }

        private static DataValue createmenuDataValue(NamedID nid)
        {
            DataValue dv = new DataValue();
            dv.Items = new object[] { nid };
            dv.ItemsElementName = new ItemsChoiceType[] { ItemsChoiceType.NamedIDValue };
           
            return dv;
        }

Image

Using php curl in Custom process (12 Comments)

$
0
0

Topic by Srilatha CK

Hi All,

I have a requirement where once an incident is solved. I need to send the incident details to external third party system SOAP based webservice call.

I was trying to use PHP CURL for the same. But curl_exec($ch) is not returning any response neither error.

Could anyone please let me know if we can really use curl in process designer and were successful in such scenario.

Thanks,

Srilatha

Update custom fields for Opportunity

$
0
0

Topic by Anusha Bhujun

Content

Hello All,

 

I have to develop an application (ASP.NET) to update 3 custom fields as per user selection for Opportunity using SOAP webservices.

 

These fields are all on the opportunity table and are as follows:

1. Lead Source

Opportunity.c$LeadSource

Column name: lead_source

Type: Plain Text

 

2. Campaign Code

Opportunity.c$CampaignCode

Column name: campaign_code

Type: Plain Text

 

3. Source Detail

Opportunity.c$SourceDetail

Column name: source_detail

Type: Plain text

 

Can you please advise how to access the values of these fields using SQL query and the code on how to do the update on these custom fields?

 

Many Thanks.

 

 

Regards,

Anusha

 

 

 

 

Version

August 2014

Big data Integration

$
0
0

Topic by Heena Karir

Hi All,

We have one requirement were we need to integrate Oracle Service Cloud with Big Data. Oracle provides Big Data Connector. But, is this connector available for Oracle Service Cloud? If not then is there any other way out?

Thanks,

Heena Karir


Adding Standard Text Response to Incident Thread (1 Comment)

$
0
0

Topic by Douglas Bowman

Content

I am trying to add a pre-created, standard text message to an Incident thread through RightNow Connect Web Services using C#.  Is there any way to do this short of writing out the text manually as a string and setting this as the thread text?

 

EDIT:

In the console application for the RightNow CX Cloud Service, if you open up any Incident, there is the option to attach Standard Text to the messages thread.  These Standard Text messages are edited through the console application.  Using the RightNow Connect Web Services, I want to be able to programmatically append one of these pre-created Standard Text messages to the Incident thread.  The Standard Text needs to be able to still substitute fields placed in the Standard Text template with the actual values (such as substituting $contacts.name.first with the first name of the associated customer). 

I believe this would be possible by querying the Standard Text templates and picking the correct one, saving the associated message to a string, and then applying this string value to the thread of the Incident, but I was hoping for a more direct method to apply the Standard Text message.

Version

May 2014

XML envelope for account creation (3 Comments)

$
0
0

Topic by Benjamin Donkersloot

Content

Hi !

Can someone help us with some sample XML for creating a staff account?

We currently have the following:


 

We get the following answer:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Sender</faultcode>
         <faultstring>Data element in the Message is NULL</faultstring>
         <detail>
            <fault>RightNowSyncService|urn:wsdl.ws.rightnow.com/v1_2 failed
Found out-of-order or unrecognized node ID|urn:objects.ws.rightnow.com/v1_2 while parsing node of type NamedID|urn:base.ws.rightnow.com/v1_2
Failure in setting value for object Account element Profile of type base_ws_rightnow_com_v1_2::NamedID
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</fault>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

Can someone help us figure this out?

Thanks!Benjamin

Version

May 2014

Code Block

Updating a Custom Field that is a Menu data type in C#

$
0
0

Topic by David Eggleston

Content

I am new to RightNow CX.  I am attempting to update a custom field that is a data type of menu.  I took the sample code which updates a text custom field but it is giving me errors when I attempt to put a value into the Custom Field, I am assuming because it is a menu data type.  The field is gender and has two defined values; "Female", "Male".  I will include my code which is borrowed from sample code in CX document site.  I have tried many of the datatypes on the DataTypeEnum.<NNNN> statement.  I am programming in C#.

Error is: "Missing NamedIDValue for property contact_gender\nWhile processing GenericFields[0]: contact_gender\nWhile processing GenericField: c\nWhile processing GenericFields[0]: c\nWhile processing Contact->CustomFields(rng_v1_2::GenericObject)."

Any help clearing up how to set the value of a menu custom field would be greatly appreciated.

Thanks in advance.

Version

August 2014 SP2 Build 113

Code Block

Fetch Email Template in addin code

$
0
0

Topic by Vivek Goel

Content

Hi,

 

Is there any way to fetch email template in the addin code to be used.?

 

Thanks,

Vivek

Version

Feb 2014

Update custom field in Contact WS (1 Comment)

$
0
0

Topic by Pavitra Jayaraman

Hi All,

I have created a custom field:Sync which is a dropdown :Yes,No,Synched, which will pull the contacts with values 'Yes'. After synchronizing them with external application,the value has to be updated as 'Synched'.

Any one can tell if this can be done either using Rightnow Web services or ROQL query?

It would also be really helpful if anyone can provide a sample request for the smae

 

Thanks

Pavitra

 

 

Incident File Attachment Access in ConnectPHP (9 Comments)

$
0
0

Topic by Mitchell Welch

Content

Hi All,

I have been having some trouble accessing file attachments on incident object using the connectPHP API version 1.2 in the November '12 version of RN. Basically what I need to do is access a CSV file that is attached to an incident object and do some processing based upon the contents of the file. I have been trying to use the sample code for accessing incident object attachments from the Connect documentation shown below:

 

$incident = RNCPHP\Incident::fetch();for($i =0; $i <=(count($incident->FileAttachments)-1); $i++){
$url = $incident->FileAttachments[$i]->getAdminURL();
$file_contents = file_get_contents($url);}

In my situation, I only have one file attached to the incident, so the for loop is irrelevant. This code works fine up until the file_get_contents($url) call. When executed, the script hangs for a long time and then FALSE is retruned from the call into the $file_contents variable, instead of the contents of the CSV file.

I have checked the value returned in the getAdminURL() (i.e. what should be the url to the file) call by running it in a web browser and the file is returned as a download in the web browser as expected. I have tried a few different appraoches including using fopen() directly and using the cUrl library functions to explicitly make GET requests to the url, with the user-agent parameters set in the header (I have run into situations in the past where GET and POST requests are ignored without the user agent parameter set in the hearder)

Has anyone else experienced anything like this and does anyone have any ideas?

Kind regards,

Mitch 

Version

November 2012

Need help with ROQL for custom fields (3 Comments)

$
0
0

Topic by Anusha Bhujun

Content

Hi,

 

I am using .NET (SOAP) to develop an application to update 3 opportunity custom fields, however I keep getting the error as 'Non existent column'. My version is Aug 2014. Please find more details below:

Custom Fields that I am trying to update:

 

1. Lead Source

Opportunity.c$LeadSource

Column name: lead_source

Type: Plain Text

 

2. Campaign Code

Opportunity.c$CampaignCode

Column name: campaign_code

Type: Plain Text

 

3. Source Detail

Opportunity.c$SourceDetail

Column name: source_detail

Type: Plain text

 

Please also find code block. Can you please advise what I am doing wrong?

 

Regards,

Anusha

Version

August 2014

Code Block


SOAP API Answers results are different from RN custhelp results. (2 Comments)

$
0
0

Topic by Phil Paris

1.    The query
     a.    We are using this query.   "SELECT Answer FROM Answer LIMIT {0} OFFSET {1};";
     b.    Essentially, after a few loops, this queries all the Answers for the account (or should)
     c.    The result of this is 7343 rows.  We did find that there are about 100 to 200 rows that have a published date == null, so those will be discarded.
2.    The comparison
     a.    Now that we have a list of all the answers from RN I did a search in those results for [sample search], vs the results when I search for [sample search] on RN (the custhelp website).
          i.    SELECT [ID]
          ii.          ,[Summary]
          iii.          ,[Question]
          iv.          ,[Solution]
          v.          ,[Keywords]
          vi.          ,[Name]
          vii.          ,[Comment]
          viii.      FROM [Answers_Sandbox].[dbo].[Answer]
          ix.      where
          x.      Summary like '%[sample search]%'
          xi.      or Question like '%[sample search]%' 
          xii.      or Solution like '%[sample search]%' 
          xiii.      or Keywords like '%[sample search]%'
     b.    This results in 27 rows being returned from what we queried.  
     c.    When I go to [subdomain].custhelp.com and search for [sample search], I get 22 rows returned.
     d.    The summaries of each of the result sets were then compared.
          iii.  I only had 3 matches from what the SOAP API Returned to what the Answers query returned.  

My question is this:
Why are the results different?

How can I query using the SOAP API to return the same number of results as the custhelp site?


We are querying based on the documentation list here:  http://documentation.custhelp.com/euf/assets/devdocs/august2014/Connect_Web_Services_for_SOAP/Default.htm

GetChatUrl return 127.0.0.1 (1 Comment)

$
0
0

Topic by Derek Burdick

Content

GetChatUrlRequest for URLTypeEnum.UQ or ENDUSER

always returns: "https://127.0.0.1/Chat-WS/services/wschatuq/v0"

Since 127.0.0.1 is my LOCALHOST, any further query for chat or Third Party Queue FAILS.

How can this be fixed?

This looks like a mis-configuration.  Please help.

Version

February 2014

Code Block

Error when creating a new incident with custom field value (1 Comment)

$
0
0

Topic by Uma Guduru

Content

Hi,

 

Im trying to create a new incident , also at the same time trying to set the value of a custom field which is menu item, i get error message , i have uploaded the error message

Please check the code below and let me know what is it that im doing wrong.

----------------------------------------------------------------------------------------------------------------------------------

            newIncident.Subject = "This is a test incident - Please Ignore";

            // Assign Incident Queue
            NamedID incidentQueueID = new NamedID();
            incidentQueueID.ID = new ID();
            incidentQueueID.ID.id = 32;
            incidentQueueID.ID.idSpecified = true;
            newIncident.Queue = incidentQueueID;


            //Create an IncidentContact to add as the primary contact on the new Incident
            IncidentContact incContact = new IncidentContact();
            NamedID contactNamedID = new NamedID();
            contactNamedID.ID = new ID();
            contactNamedID.ID.id = 252431;
            contactNamedID.ID.idSpecified = true;
            incContact.Contact = contactNamedID;
            newIncident.PrimaryContact = incContact;


            GenericField[] customField = new GenericField[1];
            customField[0] = new GenericField();
            customField[0].name = "prioritytype";
            customField[0].dataType = DataTypeEnum.NAMED_ID;
            customField[0].dataTypeSpecified = true;
            NamedID nid = new NamedID();
            ID nameid = new ID();
            nameid.id = 1;
            nameid.idSpecified = true;
            nid.ID = nameid;
            customField[0].DataValue = createmenuDataValue(nid);
          

            GenericObject customFieldsc = new GenericObject();
            customFieldsc.GenericFields = customField;
            customFieldsc.ObjectType = new RNObjectType() { TypeName = "IncidentCustomFieldsc" };

            GenericField customFieldsPackage = new GenericField();
            customFieldsPackage.name = "c";
            customFieldsPackage.dataType = DataTypeEnum.OBJECT;
            customFieldsPackage.dataTypeSpecified = true;
            customFieldsPackage.DataValue = new DataValue();
            customFieldsPackage.DataValue.Items = new[] { customFieldsc };
            customFieldsPackage.DataValue.ItemsElementName = new[] { ItemsChoiceType.ObjectValue };

            newIncident.CustomFields = new GenericObject
            {
                GenericFields = new[] { customFieldsPackage },
                ObjectType = new RNObjectType { TypeName = "IncidentCustomFields" }
            };
           
          

            //Build the RNObject[]
            RNObject[] newObjects = new RNObject[] { newIncident };

            //Set the processing options
            CreateProcessingOptions options = new CreateProcessingOptions();
            options.SuppressExternalEvents = false;
            options.SuppressRules = false;

            //Invoke the Create Operation
            try
            {
                ClientInfoHeader clientInfoHeader = new ClientInfoHeader();
                clientInfoHeader.AppID = "Basic Create";
                RNObject[] results = _client.Create(clientInfoHeader, newObjects, options);
               
                MessageBox.Show("New Incident with ID: " + results[0].ID.id + " created.");
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error Message -> " + ex.Message);
            }
           
        }

        private static DataValue createmenuDataValue(NamedID nid)
        {
            DataValue dv = new DataValue();
            dv.Items = new object[] { nid };
            dv.ItemsElementName = new ItemsChoiceType[] { ItemsChoiceType.NamedIDValue };
           
            return dv;
        }

Image

Cannot set PrimaryContact of an opportunity (1 Comment)

$
0
0

Topic by Bishnu Paudel

Content

hi all,

I am trying to create an opportunity under an existing contact. The code doesn't throw any error but the new opportunity doesn't have a contact associated with it. 

Any ideas what's wrong with this code?

Thanks,

Version

February 2014

Code Block

How to add a phone number to a contact (1 Comment)

$
0
0

Topic by Chun Yu

In webservice, how can I add a phone number to a contact? I tried to to use the following tags and got the 

error "PhoneType[1] not available".

<n1:Phones>                    
<n1:PhoneList action="add">                        
<n1:Number>1234567890</n1:Number>
<n1:PhoneType>                            
<ID xmlns="urn:base.ws.rightnow.com/v1_2" id="1" /> 
</n1:PhoneType>                    
</n1:PhoneList>                
</n1:Phones>

thanks

Chun

Viewing all 2504 articles
Browse latest View live