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

batch job extension x++

(0) ShareShare
ReportReport
Posted on by 169
I am trying to add code to batch job class that's called in form
so I create extension from it and I need to get form caller from args but in main method it returns fine when debug hits run method form caller = null 
so what's wrong ?
//
 
//
  • Suggested answer
    Mohit Rampal Profile Picture
    12,573 Moderator on at
    Hi Menna, Try using variable custInvoiceTableRecId to find CustInvoiceTable table buffer in run method of your extension class instead of passing formRun for this class. Based on custInvoiceTable, you can find custInvoiceLine table records.
  • Menna Allah Ahmed Profile Picture
    169 on at
    How can I find table record without getting it from args ?
  • Mohit Rampal Profile Picture
    12,573 Moderator on at
    You don't need to find it from args, this variable is already defined in standard class. I am assuming that in run method you will get RecId in this variable which you can use.

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
Martin Dráb Profile Picture

Martin Dráb 415 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 374

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 365 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans