Genesys CTI User Forum
Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started 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
-
?? Increment the priority as long as the interaction is on the queue...
-
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.
-
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 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.