Skip to main content
Solved

Test SDK change Business Date

  • May 20, 2025
  • 2 replies
  • 95 views
  • Translate All

Joe Schmucker
Captain II
Forum|alt.badge.img+3

I’m running my test SDK on 2024R1.  I am using the sample data.

When I run my tests, the business date is causing errors because we are now in 2025 and the majority, if not all, the data is in 2023 and earlier.

When Chrome is opened, it defaults the business date to my current date.

I cannot find a way in code to change the business date to a date in 2023.

Does anyone know how to access the page toolbar?

 

Best answer by Dmitrii Naumov

​@Joe Schmucker should be something like that:

  JournalEntry.OpenScreen();
  JournalEntry.SetBusinessDate(new DateTime(2007, 2, 2));

View original

2 replies

Dmitrii Naumov
Community Manager
Forum|alt.badge.img+7

​@Joe Schmucker should be something like that:

  JournalEntry.OpenScreen();
  JournalEntry.SetBusinessDate(new DateTime(2007, 2, 2));

Translate

Joe Schmucker
Captain II
Forum|alt.badge.img+3

Thanks Dmitrii.

 

I will give that a try.  Just to move forward, I created periods in 2025 and backed that up as my starting point.  

Really appreciate the quick assistance!

Translate