Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: New... on May 20, 2010, 06:24:25 AM

Title: Email Routing - fetch date from email content
Post by: New... on May 20, 2010, 06:24:25 AM
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
Title: Re: Email Routing - fetch date from email content
Post by: cavagnaro on May 20, 2010, 04:11:35 PM
?? Increment the priority as long as the interaction is on the queue...
Title: Re: Email Routing - fetch date from email content
Post by: René 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.
Title: Re: Email Routing - fetch date from email content
Post by: New... 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?
Title: Re: Email Routing - fetch date from email content
Post by: New... 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.