" /> Email Routing - fetch date from email content - Genesys CTI User Forum

Author Topic: Email Routing - fetch date from email content  (Read 3850 times)

Offline New...

  • Newbie
  • *
  • Posts: 49
  • Karma: 0
Email Routing - fetch date from email content
« on: May 20, 2010, 06:24:25 AM »
Advertisement
Hi,

Any pointer / suggestion on how to go about the implementation of the following requirement:

Get a date from email content (body of the message) and find the date duration from today's date and assign priority based on the date duration

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Email Routing - fetch date from email content
« Reply #1 on: May 20, 2010, 04:11:35 PM »
?? Increment the priority as long as the interaction is on the queue...

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Email Routing - fetch date from email content
« Reply #2 on: May 20, 2010, 04:21:17 PM »
Hi,

[quote]Get a date from email content (body of the message) and find the date duration from today's date and assign priority based on the date duration[/quote]
It may be possible to get the date using screening rule based on regular expression. However, it may be really challenge to write regex if format of the data is unknown (e.g 2010/05/20 vs 20.5.2010) and the message is free-text (=no structure).

Once you get the date you can parse it using IRD provided functions.

R.

Offline New...

  • Newbie
  • *
  • Posts: 49
  • Karma: 0
Re: Email Routing - fetch date from email content
« Reply #3 on: May 26, 2010, 04:41:45 AM »
Hi Rene,

I have used the regex format  ("\b(0?[1-9]|[12][0-9]|3[01])[- /.](0?[1-9]|1[012])[- /.](19|20?[0-9]{2})\b") to find the date and assigned the output value of the Screen Object to a variable and attached that variable to the Interaction Data.

In the strategy the attached data is populated as "return:ok|ScreenRuleMatch:true|Id:0012Ya5YQ779004T|ScreenRuleName:Screening rule for date"....

In the strategy, how can we get the date from this attached data?

Offline New...

  • Newbie
  • *
  • Posts: 49
  • Karma: 0
Re: Email Routing - fetch date from email content
« Reply #4 on: May 26, 2010, 06:19:48 AM »
[quote author=New... link=topic=5558.msg24368#msg24368 date=1274848905]
Hi Rene,

I have used the regex format  ("\b(0?[1-9]|[12][0-9]|3[01])[- /.](0?[1-9]|1[012])[- /.](19|20?[0-9]{2})\b") to find the date and assigned the output value of the Screen Object to a variable and attached that variable to the Interaction Data.

In the strategy the attached data is populated as "return:ok|ScreenRuleMatch:true|Id:0012Ya5YQ779004T|ScreenRuleName:Screening rule for date"....

In the strategy, how can we get the date from this attached data?
[/quote]


I used RegExFind("RegEx","Key"),  and got the date in the KEY mentioned... Thanks.