web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Saving data after running test code unit from test tool page

(0) ShareShare
ReportReport
Posted on by 115

Hi,
Can anyone help how can I save data after test function execution from test tool page?
I have tried the,

 [TransactionModel(TransactionModel::AutoCommit)] property by writing it above a test function but its not saving the data.
Is there any other way or i'm doing it wrong ?
thanks 

  • Verified answer
    Daniel Rimmelzwaan Profile Picture
    3,485 on at

    Whether data is saved is defined in the TestIsolation property of the TestRunner codeunit. If you want to save the data that is created in the test, you set the TestIsolation to Disabled, or just leave the property out altogether.

  • faran1 Profile Picture
    115 on at

    thanks Daniel.

    Can you look at this thread and tell how one can test notifications through automated testing?

    community.dynamics.com/.../automated-testing-of-notifications

    thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 748 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 354 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 351 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans