Skip to main content
Answer

Test SDK change Business Date

  • May 20, 2025
  • 2 replies
  • 31 views

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));

2 replies

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • Answer
  • May 20, 2025

@Joe Schmucker should be something like that:

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


Joe Schmucker
Captain II
Forum|alt.badge.img+3
  • Author
  • Captain II
  • May 20, 2025

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!