Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Recommended Posts

Posted (edited)

I retrieve email records into a database for a to do list.

The body of the email becomes the task.

I want to be able to send emails to the databse with a date in the subject. I used "***dd/mm/yyyy***" as a pattern in another database so that when this pattern appeared in the body it was extracted and placed in the due date field.

I am trying to work out how to do that. I use a script to import the emails into the tasks database and I would like to process the new revords by extracting any date and putting it in the due date.

 

Edited by Stickybeak
Posted (edited)

I am not sure I understand your description.

It seems you have a text field that contains a pattern such as ***08/03/2024*** and you want to extract the date? Can there be more than one occurrence of such pattern in the same field? If not, you could try:

Let ( [
start = Position ( text ; "***" ; 1 ; 1 ) ;
end = Position ( text ; "***" ; 1 ; 2 )
] ;
If ( start and end ;
Middle ( text ; start + 3 ; end - start - 3 )
)
)

 

Edited by comment
  • Like 1
Posted

Excellent - yes there will only be one occurrence in the field.

Worked perfectly.

Thank you so much.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.