Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

batch job extension x++

(0) ShareShare
ReportReport
Posted on by 163
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 ?
//
 
//
  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    batch job extension x++
    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.
  • Menna Allah Ahmed Profile Picture
    Menna Allah Ahmed 163 on at
    batch job extension x++
    How can I find table record without getting it from args ?
  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    batch job extension x++
    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.

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…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans