Skip to main content

Notifications

Announcements

No record found.

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

  • Suggested answer
    Steven Garcia Profile Picture
    Steven Garcia 10 on at
    RE: How I modify class variables values inside Run method in RunBatchBatch?

    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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,234 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,994 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans