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

Call Addin Code on contact save or update (2 Comments)

$
0
0

Topic by Vivek Goel

Content

Hi All,

 

I need to synch Contact related data in external database as soon as any contact is save or updated in rightnow. Please let me know the best approach.

how can I call an addin code on the create or update of a contact?

thanks,

Vivek

Version

Feb 2014

Expired incidents in custom processes

$
0
0

Topic by Adam Darbyshire

Content

Hi Everyone,

I'm trying to make a custom process that will trigger on a new incident created based on the queue of the expired incident it replaces.

  1. If expired incident queue = x
  2. move new incident to queue x

 

I have some code at the moment but it is based on scraping the text 'Incident created due to reply to expired incident' out of the incident threads, which is far from ideal.

I saw someone at one point mention that there was a $incident->expired variable that could be used to access the old incident data however I can't for the life of me find that old link.

 

Does anyone know how to access expired incident data in custom processes without having to scrape text?

 

Cheers

Adam

Version

Nov13

How can I get/fetch the current row record using PHP API that will be used to pass few values in a... (4 Comments)

$
0
0

Topic by Nancy Sinha

Hello Everyone,

How can I get/fetch the current row record using PHP API that will be used to pass few values in a browser control?

I have a custom object workspace that has a browser control. Now I want to fetch the custom object's address and pass it to the browser. Need to fetch the current record of the custom object. How can I do the same using PHP API.

Aug 14 ROQL retrieve Distribution list (3 Comments)

$
0
0

Topic by Luuk

Content

Hello all,

We are testing the new ROQL way to retrieve the distribution list from Rightnow.

When I run the following code:

    $res = RNCPHP\ROQL::query("SELECT *, ClientName.* FROM DistributionEmailAddress")->next();
    while($dispentry= $res->next())
            {    
                print_r($dispentry);
            }

 

I get the following error:

Uncaught exception 'RightNow\Connect\v1_2\ConnectAPIError' with message 'Unknown table or column 'ClientName'' in ...

But when I run the code as follows:

    $res = RNCPHP\ROQL::query("SELECT * FROM DistributionEmailAddress")->next();
    while($dispentry= $res->next())
            {    
                print_r($dispentry);
            }

 

I retrieve the distribution list. The only problem with this is, that I cannot retrieve the first and last name of the contact in the distribution list.

Anyone has this same problem or found a workaround?

Please note that this is a new feature only available from August 2014 and later.

Version

Aug. 14

Code Block

Get thread's author name in incident workspace

$
0
0

Topic by Sophia Cai

I get a thread of a incident in add-in.

Incident = _recordContext.GetWorkspaceRecord(RightNow.AddIns.Common.WorkspaceRecordType.Incident) as IIncident;
IThread thread = Incident.Threads[0];

And I want to get the author of this thread, if it is a thread created by agent.

However, thread.AcctID only returns the id of the agent. How can I get the name of this agent?

 

Thanks,

Sophia

                

 

Assigning an incident to a Queue using Connect Web Service (2 Comments)

$
0
0

Topic by Ashrita bommakanti

Content

Hi,

I am trying create an incident and assign it to a queue. The queue id is defined as a menu id feild

I have tried passing hte name of the queue or the id fo the queue but the incident always gets assigned to the default queue

Sample request

 

Code Block

Error in Custom Process (4 Comments)

$
0
0

Topic by Nancy Sinha

Content

Hi All,

On a custom object, I am trying to generate the reference number. But when I try to add the event GenerateReference, I get the error.

An item with the same key has already been added.

Does anyone have any insight to such error?

Thanks.

Image

which is the best oracle soa online training institute (1 Comment)

$
0
0

Topic by Mohd Raza

Can anyone suggest me the best institute to learn oracle soa through online 


Creating incident in Connect PHP

$
0
0

Topic by Lorna

Hi,

We found that incidents that are created via Connect PHP do not seem to go through the incident business rules at all. We have even created a catch all rule without conditions under the initial state but incidents still do not change their rule state or trigger any rule.

These incidents showed 'No value' as rule state after creation. This has changed for most of them in the meantime as we activated the rule set and therefore they were moved to an existing rule state.

It is possible to create new incidents using the Connect PHP and they also show Public API > Connect PHP as source hierarchy. We would therefore expect that they go through the incident business rule that just like other incidents.

Is Connect PHP not a valid source for incident creation and if yes, why are the incidents still created? Are their any settings required to make this working? Do the incidents created via Connect PHP need to have any additional information to go to the initial rule state?

How to create a custom field of menu type? (1 Comment)

$
0
0

Topic by Sonali Rajwade

I'm trying to create a custom field called "sdc_store_fraud" of menu type and setting a value in it.

NamedID fraudNamedID = new NamedID();

ID fraudID = new ID();

fraudID.setId(Long.parseLong(values.get("FraudType").toString()));

fraudNamedID.setName("sdc_store_fraud");

fraudNamedID.setID(fraudID);


But I don't see this element in the request xml and also it not working.

Can you suggest any other way? Am I missing anything?

Thanks in Advance.

Sonali

 

How to create a contact when an account is created? (2 Comments)

$
0
0

Topic by Amala Vijayan

Hai All,

I have a custom script to create Account through  a form as well as through uploading csv file.

I want to create a contact when an account is created. I tried to do this through CPM but the "Account" is not present in the Process Model by Object.
What to do next?

Anyone had this type of requirement?Please help.

Regards,

Amala

 

Expired incidents in custom processes (1 Comment)

$
0
0

Topic by Adam Darbyshire

Content

Hi Everyone,

I'm trying to make a custom process that will trigger on a new incident created based on the queue of the expired incident it replaces.

  1. If expired incident queue = x
  2. move new incident to queue x

 

I have some code at the moment but it is based on scraping the text 'Incident created due to reply to expired incident' out of the incident threads, which is far from ideal.

I saw someone at one point mention that there was a $incident->expired variable that could be used to access the old incident data however I can't for the life of me find that old link.

 

Does anyone know how to access expired incident data in custom processes without having to scrape text?

 

Cheers

Adam

Version

Nov13

How to get Thread.thread_id while adding threads to an incident (3 Comments)

$
0
0

Topic by Bipin Mittal

Content

Hi All,

I am working on a POC where I am supposed to accept an array of notes and add all, one by one to the Private Note of an Incident. I am able to do it just fine. What I also now want is to send back the array with the unique Threads.thread_id next to each note I received.

The XML response does not returns this ID. Any idea how this can be achieved?


Thanks,

Bipin

Version

May'14

Custom Process not executing when incident source is SOAP API (1 Comment)

$
0
0

Topic by Srilatha CK

Hi All,

I have a requirement to copy the incident reference number field value to a custom field. I have written a custom process to do that which is executing fine when incident is created from ask a question page, or console or live chat but the same id not working when incident source is 'Public API connect webservices- SOAP'(incident created after an OPA interview).'

Could anyone please help me know if custom process has some limitations.

Thanks,
Srilatha

Custom Process - PHP script - custom fields & obj->prev (1 Comment)

$
0
0

Topic by Mark Bradley

Hi all,

I have a custom process script in while I am attempting to catch a change to a custom field on the Contact object. I extract the field value and the previous field value from $obj and then compare them.

        $con_wiw_prev = $obj->prev->CustomFields->CO->MyCustomField;
        $con_wiw_new = $obj->CustomFields->CO->MyCustomField;
 

However, while the new field value is correctly available in the var, the previous value is always NULL.

Firstly, is the code snippet above correct? (Just in case)

I am now under the impression, from reading these forums and documentation, that custom fields only show their value in the passed $obj if they have been changed, otherwise they are null. Does this mean that obj->prev also suffers from this? If so, how are you supposed to compare pre-update and post-update custom field values in a Custom Process?

Cheers,

Mark


Previous Valuse of RightNow Objects (1 Comment)

$
0
0

Topic by Yogesh J S

Hi,

I have a CPM for contact update, through which i need to check exactly which field is get updated. I need to save the previous and current values of the edited field in a custom object.

I am trying to get the previous vale as $con->prev->Name->First,  but i am getting null values over there. Is there any mistake? or do i need to follow some other syntax? I need to collect the previous value of both standard and custom fields.

Please share your ideas.

Thanks,

Yogesh

 

procedure not working (1 Comment)

$
0
0

Topic by deepa v

Content

PROCEDURE INSERT_BULLETIN
(
ip_BULLETIN_TITLE IN VARCHAR2,
ip_CONTENT        IN VARCHAR2,
ip_COM_CD         IN VARCHAR2,
ip_PHONE_NO       IN VARCHAR2,
ip_EMAIL          IN VARCHAR2,
ip_IMAGE          IN VARCHAR2,
ip_ATTACHMENT     IN VARCHAR2,
error_code         OUT   NUMBER,
error_text  OUT   VARCHAR2
)
 IS
 s_bulletin NUMBER;
  s_seq_bulletin VARCHAR2(30);
  s_image VARCHAR2(100);
   s_attachment VARCHAR2(100);
 
BEGIN
     error_code := 0;
     error_text := SQLERRM;
 
     INSERT INTO TBL_BULLETIN
     (
     BULLETIN_TITLE,
     CONTENT,
      COM_CD,
PHONE_NO,
      EMAIL
      )
      VALUES(ip_BULLETIN_TITLE,
      ip_CONTENT ,
      ip_COM_CD ,
      ip_PHONE_NO,
      ip_EMAIL
      );
 
SELECT SEQ_BULLETIN.CURRVAL INTO s_bulletin FROM DUAL;
 
 
SELECT to_char(s_bulletin,'0000000') INTO s_seq_bulletin FROM DUAL;
SELECT SUBSTR(ip_IMAGE,INSTR(ip_IMAGE, '.', -1))INTO s_image FROM DUAL;
SELECT SUBSTR(ip_ATTACHMENT,INSTR(ip_ATTACHMENT, '.', -1))INTO s_attachment FROM DUAL;
--IF  ip_IMAGE IS NOT NULL  AND ip_ATTACHMENT IS NOT NULL THEN
 
UPDATE
TBL_BULLETIN
SET
IMAGE                 =  'BI_'+ s_seq_bulletin + s_image,
ATTACHMENT           =  'BI_'+ s_seq_bulletin + s_attachment
 
WHERE
  BULLETIN_ID            = s_bulletin;
 
My table bulletin is not getting updated with the image values

Code Block

Is it possible to have a new Thread Type?

$
0
0

Topic by Bipin Mittal

Content

Hi,

I have a strange requirement to achieve, where we are looking to have a new note type for Incidents.

We have RightNow agents and also Partner Agents serving the customers. The partner agents do not use RightNow. All the ticket information are synced between these two systems. 

The Notes that RightNow agents enter are shared with the Partner Agents to update it in their System(Integration done). We currently share the Customer entry and the Response thread. Private Notes are used to share private information within RightNow agents, and are hence not shared with the Partner Agents. Now. we want to have a note type which can be used to share notes/ideas with our Partner agents but should not be visible to the customer.

Any ideas/workarounds how this can be achieved. I understand Custom objects could be one solution, but we want to keep them as last option try to put some workaround using the current Note types available.

 

Thanks,

Bipin

Version

Feb'14

"The NameOfSLA ID provided does not correspond with an active SLA" - but it IS Active! (2 Comments)

$
0
0

Topic by kahelfrich

I'm working on a C# program that creates orgs with SLA instances.  It works most of the time for the hundreds of SLA types we have and orgs that I have created in a cloned testing environment.

Occasionally, I get an error trying to create one of the SLAIs, and this is what the error message and stack trace look like this.

*   *   *   *   *

SLA Error - Not Active: The NameOfSLA ID provided does not correspond with an active SLA.; Organization.ServiceSettings.SLAInstances[0].NameOfSLA

While performing create on Organization

Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at ContractLoader5.RightNowService.RightNowSyncPort.Create(CreateRequest request)
   at ContractLoader5.RightNowService.RightNowSyncPortClient.ContractLoader5.RightNowService.RightNowSyncPort.Create(CreateRequest request) in c:\Users\khelfric\Documents\Visual Studio 2013\Projects\ContractLoader5\ContractLoader5\Service References\RightNowService\Reference.cs:line 23139
   at ContractLoader5.RightNowService.RightNowSyncPortClient.Create(ClientInfoHeader ClientInfoHeader, RNObject[] RNObjects, CreateProcessingOptions ProcessingOptions) in c:\Users\khelfric\Documents\Visual Studio 2013\Projects\ContractLoader5\ContractLoader5\Service References\RightNowService\Reference.cs:line 23147
   at ContractLoader5.RNTContract.CreateNew() in c:\Users\khelfric\Documents\Visual Studio 2013\Projects\ContractLoader5\ContractLoader5\RNTContract.cs:line 722

*   *   *   *   *

The first exasperating thing is that the SLAs in question ARE ACTIVE!  I export the list from the database in RightNow and import it into a SQL Server db that keeps all the data I have to load.

The second exasperating thing is that while this error talks about what would appear to be the FIRST element in the list of new SLAInstances at index 0, "Organization.ServiceSettings.SLAInstances[0].NameOfSLA", the number isn't always 0, and it's frequently larger than the number of new SLAInstances , so for instance, one time I was adding 4 SLAInstances , and the message included  "Organization.ServiceSettings.SLAInstances[13].NameOfSLA".  

I had been specifying the SLA types by name, so I switched from looking up using the actual SLA name to using the ID number, and that didn't help.  In fact, that's a THIRD exasperating thing I discovered.  When you create an SLAInstance, and you want to use the ID to specify the type of SLAInstance to create, you don't use the sla_id (database name), you actually use the sla_set (database name) for the ID.  Talk about confusing...

Anyway, HELP!  Has anyone seen this error when the SLA type actually exists?  I have to think it's a database issue, but I can't seem to fix it.

 

Print on "Custom Process" (4 Comments)

$
0
0

Topic by Bruno Vasconcellos

Hello!!

Friends, 

I have the following demand: 

When I create an Incident, need to pass the ID of that incident to a legacy system and that system will respond with a message for me and I have to print the message to the user (pop-up) 
Question: Is it possible to print message by custom process? I made some unsuccessful attempts. Is there any way? 

Thank you so much smiley

Viewing all 2504 articles
Browse latest View live