" /> RejectRecord changes RecordType to General - Genesys CTI User Forum

Author Topic: RejectRecord changes RecordType to General  (Read 4606 times)

Offline Alberto

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
RejectRecord changes RecordType to General
« on: January 27, 2009, 06:09:32 PM »
Advertisement
Hello everybody.
I have a record in my outbound campaign
Record type= Personal Callback
Record status = ready
dial_sched_time = a date

The date of dial_sched_time is coming and the record appear in the GAD.

I close the GAD (RejectRecord() executes) and ther record IS CHANGEd. Record type = "GENERAL". I want the same state "Personal Callback"

Thanks.

Offline Cuore_2003

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
Re: RejectRecord changes RecordType to General
« Reply #1 on: January 29, 2009, 11:24:01 AM »
Alberto, from Outbound Reference Guide:

/... ... .../
The rejected record is returned to the database [i]with the following fields modified[/i]: [b]record_type[/b] is reset to [b]General[/b], record_status is reset to Ready, agent_id is reset to the ID of the agent that rejected the record. It will be retrieved again with the next set of records from the database, for distribution by OCS. The agent ID will be overwritten again when the next agent receives the record.
/... ... .../


I don't advise to modify the behaviour of OCS. Keep in mind that with record_type = general the record will be retrieved again

Good luck!
BR

Offline Alberto

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: RejectRecord changes RecordType to General
« Reply #2 on: January 29, 2009, 12:05:55 PM »
the record will be retrieved again if the user requests a record not by the rescheduled.

Offline Cuore_2003

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
Re: RejectRecord changes RecordType to General
« Reply #3 on: January 30, 2009, 08:12:46 AM »
Yes, you are right. That's the correct use.

Offline jbobinsk

  • Jr. Member
  • **
  • Posts: 87
  • Karma: 1
Re: RejectRecord changes RecordType to General
« Reply #4 on: January 30, 2009, 09:06:36 AM »
It is standard for outbound - RejectRecord puts it in database ready to use for anybody. It is the way this method works. If you have problem with that you could forbid to use this action and order to use reschedule instead.

Regards
jbobinsk

Offline Alberto

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: RejectRecord changes RecordType to General
« Reply #5 on: January 30, 2009, 12:24:39 PM »
I agree, but not how to do.
This is the code that I use when the user closes the application, foreach interaction make a reject.
How is that interaction is a rescheduling for the rescheduling and not reject?
I used "interaction.voice.outbound:isScheduled" but return always "false"
       
       
        private void rejectAndClosePendingOutboundInteractions()
        {
            foreach (string interactionId in interactionsHashtable.Keys)
            {
                InteractionControl interactionControl =
                    (InteractionControl)interactionsHashtable[interactionId];

                if (interactionControl.Interaction.Type == DetailedInteractionType.PHONE_CALL_OUTBOUND)
                {
                    InteractionVoice ixn = (InteractionVoice)interactionControl.Interaction;

                    foreach (InteractionVoiceOutboundAction action in ixn.OutboundActionsPossible)
                    {
                        if (action == InteractionVoiceOutboundAction.REJECT)
                        {
                            try
                            {
                                [color=red]interactionControl.mOutbound.RejectRecord();[/color]
                            }
                            catch (Exception ex)
                            {
                                Console.WriteLine("Excepción en RejectRecord:\n{0}", ex);
                            }
                        }
                    }

                    try
                    {
                        mBatch.CloseInteraction(ixn.InteractionId);
                    }
                    catch (Exception ex)
                    {
                        Console.WriteLine("Excepción al cerrar interacción:\n{0}", ex);
                    }
                }
            }
        }