You can’t put expressions in the config file. You would just put the number -3 then use it in the expression in the code: DateTime.Now.AddDays(CInt(Config("Days to Add").ToString)).ToString("dd/mm/yyyy")
HI Ashok, does this work flow work similarly for outlook automation where in we have to retrieve emails for last 7 days… so say If I want to retrieve the emails containing subjects such as “MY” “HOME” “WORK”, and this MY , HOME and WORK also has to be pulled from config file. Currently the code which is passed is : @SQL=(urn:schemas:httpmail:subject LIKE ‘%Q1_Filter%’) AND (urn:schemas:httpmail:subject LIKE ‘%Q2_Filter%’) AND (urn:schemas:httpmail:subject LIKE ‘%Q3_Filter%’) , however also needs to include the last 7 days to it… and all has to be pulled from config. is there a possibility for it.
Yes it will work similarly for mail filter as well.
Before we get divert to another topic could you please close this by accepting the solution and create new topic for this another query? I will be happy to help.
Share what XAML? It’s an expression. Store the number in the config file and use it in the expression. I’m not saying put that expression into the config file. You just put the number (ie -3) in the config file.
Don’t copy/paste from the forums. The double quotes will be the wrong character. Type the expression. You need to do that anyway for the imports to be done correctly.