how can i retrieve (select) lines from table which have last inserted in last month (i don't know the month which insert on it but i need last insert with month inserted in)
*This post is locked for comments
how can i retrieve (select) lines from table which have last inserted in last month (i don't know the month which insert on it but i need last insert with month inserted in)
*This post is locked for comments
You can use the fiscal period to determine the last month transaction. Base on the current fiscal period you can determine last fiscal period date range and use that range to find out the records which were posted in that period. I
Obviously your table should also have some field that indicates when it's inserted. Without such field your requirement is impossible to fulfill. If you don't have such field, you can enable the CreatedDateTime property on the table. Then the creation datetime of a record is saved.
Hi Mohammed,
Please see link below, use prevmth and other functions to create date range and use them in select statement.
http://imdaxershiv.blogspot.com/2015/04/date-functions-in-ax-2012.html?m=1
Thanks,
Satish Panwar
Please take time to click yes against the answer that help guide you in right direction.
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,409
Most Valuable Professional
nmaenpaa
101,156