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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 700 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 567 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 408 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans