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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Range issue in AOT query

(0) ShareShare
ReportReport
Posted on by 415

Hi All, 

I have a data entity with data source as view. 

The data source of the view is AOT Query. This query having table GeneralJournalEntry. 

The query having range as AccountingDate. 

We are giving range like this format with the hard code.

Range : "10/1/2021"+'..'+"10/31/2021"; - with this range of hardcode getting the correct results. 

Customization: 

Created custom class and one method 

this method return the same message.   Example 

class GetQueryRangeUtil
{
[QueryRangeFunctionAttribute()]
public static str CalendarDateRange()
{
str result;
TransDate fromDate,toDate;

fromDate = FiscalCalenderStartDate;
toDate = CurrentDate
SysQueryRangeUtil::dateRange(fromDate, toDate);

return result;
}
}

Given value of range in AOT Query. 

(GetQueryRangeUtil::CalendarDateRange()) - with this did not get the results. 

Note:  The same  "10/1/2021"+'..'+"10/31/2021" values given in method as result getting the expecting results. 

Need the same range("10/1/2021"+'..'+"10/31/2021") as runtime. 

Can you please guide me how can i utilize the query range. 

Thanks in advance. 

I have the same question (0)
  • ergun sahin Profile Picture
    8,826 Moderator on at

    result is empty. Can you share the whole code (or properly cleaned version)?

  • vaasu Profile Picture
    415 on at

    Hi Sahin,

    Thanks for your response. The version is 10.0.21.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans