" /> UCS contact history - Genesys CTI User Forum

Author Topic: UCS contact history  (Read 4123 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
UCS contact history
« on: July 06, 2010, 08:48:56 PM »
Advertisement
Hi guys,
I have a customer that doesn't control the way emails goes into their mailbox, they use a webpage that is handled by a third party and changing its code seems to be complicated by some reason.... :-\
So, this webpage uses a form to send emails but all emails are sent as only 1 person, and that person is even the mailbox account user, so for example if a customer fills this form it will go to the mailbox sales@company.com but the sender is also sales@company.com when it should be user@hotmail.com for example.
So, now I have an issue because when an email arrives to GAD it retrieves a whooooooooooooooooole history for this contact sales@company.com which is HUGE!
My questions is, what query can I use to clean all this interactions in the meanwhile until the 3rd party agrees to change the webpage code....
Thanks!

Offline YevgeniyP

  • Jr. Member
  • **
  • Posts: 70
  • Karma: 0
Re: UCS contact history
« Reply #1 on: July 07, 2010, 03:45:54 AM »
Do not have the direct answer, but UCS schema description (at least about contacts and interactions)  is included into standard Multimedia (MCR, BPR, etc) documentation.
YP

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: UCS contact history
« Reply #2 on: July 08, 2010, 09:08:07 AM »
Hi Cav,

The easier way would be deleting the contact using GAD.

It's possible to do it directly in the database but the schema is not documented expect few tables. Let me know if you need the query to delete the interactions only.

R.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: UCS contact history
« Reply #3 on: July 08, 2010, 03:28:06 PM »
Tried to delete the contact but got an error... :-\ In UCS couldn't find the delete action.
Couldn't check the GAD logs...
Now for what I understand...
Contact table stores the contacts
emailin and emailout tables stores the pending emails for in and out, right? These are associated with the table interactions...
Am I right?

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: UCS contact history
« Reply #4 on: July 08, 2010, 08:58:58 PM »
Hi Cav,

Yeah, UCS fails on timeout as it takes long time to delete all the interactions.

There are more tables than emailin/emaiout where content of interactions is stored. I will try to find the script I used in the past. What version of UCS do you have?

R.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: UCS contact history
« Reply #5 on: July 08, 2010, 09:26:51 PM »
7.6 will get exact versioning  :) Thanks as usual

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: UCS contact history
« Reply #6 on: July 12, 2010, 12:23:07 PM »
Hi Cav,

I didn't find the script I've used in the past. Below is the list of tables you should check as these main contain parts of the messages:

- interaction - list of all interactions stored in UCS
- emailin - incoming emails
- emailout - outgoing emails
- ixcontent - hold content of both in&out messages
- attachment - holds list of attachment belonging to the interactions (interactionID = entityID)
- document - holds the attachments (referenced via documentId attribute of attachment table)

R.

Offline nishantank

  • Newbie
  • *
  • Posts: 30
  • Karma: 1
Re: UCS contact history
« Reply #7 on: July 15, 2010, 11:21:37 AM »
[quote author=cavagnaro link=topic=5711.msg24909#msg24909 date=1278602886]
Tried to delete the contact but got an error... :-\ In UCS couldn't find the delete action.
[/quote]

I guess you mean you could not find the delete action on the GAD rather than UCS?
If you are not able to find the delete option on GAD, check the "delete-contact-enabled" option in your GAD application is set to true. You can find this option under 'contact' section.

Hope this helps. :)>

Cheers

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: UCS contact history
« Reply #8 on: July 15, 2010, 05:40:13 PM »
Thanks will give it a try!