The views and opinions expressed in this blog are those solely of the author(s) and do not necessarily reflect Microsoft’s current policy, position, or branding. For official announcements and guidance on Dynamics 365 apps and services, please visit the Microsoft Dynamics 365 Blog.
Personalized Community is here!
Quickly customize your community to find the content you seek.
Now Available in Community - New TechTalk Videos for 2020
Read More about New TechTalks for 2020
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
In Microsoft Dynamics 365 for Finance and Operations and Microsoft Dynamics AX 2012, if you want to get the last inserted record form table using X++. You need to order the records as descending by RecId.
RecId is the unique value stored with every row in every table in Microsoft Dynamics AX and Microsoft Dynamics 365 for Finance and often known as RecId. So, if we use the ORDER BY clause and use DESC keyword, it will sort the table in descending order by field you use. So, in this case we will use RecId field because it is unique and incremental in nature.
I have shared the code on my GitHub repository. Please download the code to get the last inserted record from table using X++ and use it as per your requirement.
Blog: Click here
YouTube: Click here
GitHub: Click here
Big dreams have small beginnings.
The post Get the last inserted record from table using x++ appeared first on NevoiTech Blog.
Business Applications communities