" /> chain id on User-Defined Field - Genesys CTI User Forum

Author Topic: chain id on User-Defined Field  (Read 6802 times)

Offline 9bbdb74a0e

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
chain id on User-Defined Field
« on: May 13, 2015, 05:51:01 PM »
Advertisement
Hi,

I have a problem.

We create User-Defined Field field - Contract. Can somebody help, how automaticaly create chain id base on this on the Contract?

Thanks

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: chain id on User-Defined Field
« Reply #1 on: May 13, 2015, 08:03:44 PM »
Chain id? Outbound? Please clarify what you want to do

Offline abudwill

  • Full Member
  • ***
  • Posts: 157
  • Karma: 4
Re: chain id on User-Defined Field
« Reply #2 on: May 14, 2015, 12:04:37 AM »
Agreed, def need more info to answer this.

I will assume you mean outbound.

If you insert records directly to the calling list DB table you will need to manage record_id, chain_id, chain_n manually.  You could choose something as non elegant as select max(chain_id) in your insert statement.

Regards,
Andrew

Offline 9bbdb74a0e

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: chain id on User-Defined Field
« Reply #3 on: May 14, 2015, 06:38:35 PM »
Sorry about my english.

Outbound Countact.

We recived data to the call list from http by method AddRecod (http://host/lists/CallList?req=RecordAdd)

Our Client can send Contract Number (varchar) as id for the record, and don't  want send chain id as integer

For example

Phone1, Contract1
Phone2, Contract1
Phone1, Contract2

We have here two chain, how we can chaining this records automaticaly by Contract name?

I See only one way by database update, but maybe Genesys have self function to do this?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: chain id on User-Defined Field
« Reply #4 on: May 14, 2015, 07:06:42 PM »
chain_id HAS to be an integer due DB data type.
The HTTP AddRecord implementation can't do what you want, but the API AddRecord via TLib can, send the Chain_id as parameter.
Maybe you can do it. BTW...why???
This is maybe more easily doable creating a custom field and storing the data in there rather than manipulating chain_id...chain_id is only for customer association, but can be achieved on better and more efficient ways

Offline 9bbdb74a0e

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: chain id on User-Defined Field
« Reply #5 on: May 14, 2015, 08:04:14 PM »
In the Genesys Administrator control panel there is botton with function that I need -- "Chaining Records". I can choise field that wiil be be ID for chaing records (in my way -- Contract).

Can I do something like this by OCServer API or other automatic way without manual action?

Offline CarloACN

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: chain id on User-Defined Field
« Reply #6 on: June 22, 2015, 08:13:32 AM »
Hi Everybody Sorry if i already posted this reply on another topic but i really need a quick answer, if Moderators or Administrators think that i made a mistake they can remove my post,

Is there any kind of update? I'm really in trouble with this topic coz i have to add a new record in a campaing to rescudele common inboud call not connected with outbound campaign.

I tried using IWS SDK to add a record via OutboundServices but i don't have the OutboundChain...i don't know if i made any mistakes or if i don't have the chain because my inboundCall is a simple call and not connected with an outbound campaign...

in detail...the method i wanted to use is Genesyslab.Enterprise.Services.IOutboundService.void AddRecord(IDevice device, IRecord dataRecord, KeyValueCollection extension, string correlatorData);

i initialize a new record

Genesyslab.Enterprise.Model.Interaction.IRecord newRecord = this.outboundService.CreateRecord(InteractionIn.OutboundChainRecord);

but as i told i'm not able to retrieve a valorized instance of OutboundChainRecord

Do you have any tricks?

do you have any snippets of the http addRecord invocation?

.NET in not my language and any help will be appreciated very very much

Carlo

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: chain id on User-Defined Field
« Reply #7 on: June 22, 2015, 08:24:24 AM »
Strongly recommend use HTTP API of OCS for CRUD requests.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: chain id on User-Defined Field
« Reply #8 on: June 22, 2015, 01:34:17 PM »
What is CRUD Kubig?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: chain id on User-Defined Field
« Reply #9 on: June 22, 2015, 01:45:40 PM »
CRUD = abbr for [b]C[/b]reate - [b]R[/b]ead - [b]U[/b]pdate - [b]D[/b]elete operations.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: chain id on User-Defined Field
« Reply #10 on: June 22, 2015, 02:08:08 PM »
Lmao, from where did you get that or is your invention?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2755
  • Karma: 44
Re: chain id on User-Defined Field
« Reply #11 on: June 22, 2015, 02:37:19 PM »
It is a general abbr in "IT world" - especially in developing. To be honest, I am little bit surprised you do not know that :)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: chain id on User-Defined Field
« Reply #12 on: June 22, 2015, 04:13:42 PM »
Hehe well acronyms never were my friends ;)

Enviado de meu C6602 usando Tapatalk