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

Announcements

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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
SajeedMullaji Profile Picture

SajeedMullaji 698

#2
Martin Dráb Profile Picture

Martin Dráb 327 Most Valuable Professional

#3
CU10121822-0 Profile Picture

CU10121822-0 320

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans