Forum Discussion

Marco3007's avatar
Marco3007
Frequent Visitor
6 years ago
Solved

Updating data source by replacing Outlook attachment

Hi! This may be an amateur's question (which I am, have started recently...), but for me it is tricky:   I have a scheduled report sent to me by e-mail, from which I only need the Excel attachment....
  • Ashish_Mathur's avatar
    6 years ago

    Hi,

    In your dataset, I am assuming that there is a column which represents "Date of Attachment" or Date of Mail".  In the Query Editor, write this "M" language formula to get today's date in a column

    =DateTime.Date(DateTime.LocalNow())

    In "M" itself, write this formula to check for whether the Date of Attachment is the same as Today's date

    =[Date of Attachment]=[Today]

    Today is the name of column with Today's date.  Filter this new column on TRUE.

    Hope this helps.