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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How I modify class variables values inside Run method in RunBatchBatch?

(0) ShareShare
ReportReport
Posted on by 10

I need chage variable value while execute Run method for the user open again dialog have new value.

I tried using:

#define.CurrentVersion(1)
#localmacro.CurrentList
this.reAuthId
#endmacro

public void run()

{

   this.reAuthId = New Value;

   xSysLastValue::saveLast(this);

}

But this only work while dialog is active i need change value when batch execute in server

I have the same question (0)
  • Suggested answer
    Steven Garcia Profile Picture
    10 on at

    I use pending - complete pattern

    I create filed type enum in my table that can contain two values pending or complete

    That is to say, when task is complete, it change status column to "completed" when not exists pending rows. When user open dialog again and not exists pending rows then change ReAuthId by new value.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 514 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 390

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans