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, ...
Unanswered

ER in d365fo how can I create condition with filter in model. Different filter in model

(3) ShareShare
ReportReport
Posted on by 55
Hi, 
I want to filter the model and to execute it in batch job with dynamic dates.
I created the Calculated fields.
$15_PERMONTH
$16TH_PREVIOUS_MONTH
$FIRSTDATE
$LASTDAY_PREVIOUS_MONTH

I want something like as below. My actions aren't succeded.

IF(TODAY()>'$15_PERMONTH',
FILTER(model.RecordList, AND(
model.RecordList.Date>=model.'1stCurrentDate',
model.RecordList.Date<=model.'15thCurrentMonth'
)
),
FILTER(model.RecordList,
AND(
model.RecordList.Date>model.'15thPreviousDate',
model.RecordList.Date<=model.LastPreviousDate
)
)
)
I have the same question (0)
  • Adis Profile Picture
    6,595 Super User 2026 Season 1 on at
    Hey,
     
    I dont understand what you mean with "to execute it in bath job...
    ER is designed to fetch data, manipulate, validate and put it on a document. The logic applied is run when you create the format.
     
    Could you explain a bit what you want to achieve overall or what kind of document you want to have in the end, like Sales order, Free text Invoice, VAT declaration etc.
     

    Kind regards, Adis

     

    If this helped, please mark it as "Verified" for others facing the same issue

    Keep in mind that it is possible to mark more than one answer as verified

  • Lefteris Papadopoulos Profile Picture
    55 on at
    I mean when I will execute with batch job in recurring mode the format, I want to filter specific rows.
    I want to retrieve the invoices for a customer every 15 days. 1-15, and 16-end of month.
    So I want to execute 2 batch jobs. 1st at 3rd day of month so the ER filter only the invoices between 16-and of month of previous month.
    The 2nd batch and 17th and filter the invoices between 1-15 same month

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans