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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

InActive addresses not appearing in my report

(1) ShareShare
ReportReport
Posted on by 252
Hi,

I created a query with two tables: TableZ and LogisticsPostalAddress.
The relation between those tables is TableZ.PostalAddress=LogisticsPostalAddress.RecId
 
this query is being used in a report, and the address is appearing on the report.
However, when i deactivate the address, the address field in the report becomes empty, even though TableZ.PostalAddress is still filled. How to make it appear even though it's inactive?

I think it's maybe because logisticsPostalAddress is a validTimeState table?
I have the same question (0)
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,826 Super User 2026 Season 1 on at
    Hi,
     
    Yes, i think the issue is due the valid date time in table LogisticsPostalAddress.
     If you want to see all records without limitation you need to use
    query.validTimeStateDateRange(dateNull(), dateMax());
    Best regards,
    Mohamed Amine MAHMOUDI
     
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,826 Super User 2026 Season 1 on at
    Hi,
     
    Yes, you can do it in the RDP class to get all the records without limitation.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Waed Ayyad Profile Picture
    9,214 Super User 2026 Season 2 on at
    Hi,
     
    Is your issue resolved?
     
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,826 Super User 2026 Season 1 on at
    Hi,
     
    for both are correct except that validTimeStateDateRange uses date and the other uses utcdatetime as type.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,826 Super User 2026 Season 1 on at
    Hi,
    You're right. 
    You can use validTimeStateDateTimeRange.
    If you want to see all records without limitation you need to use Min DateTime & Max DateTime.
    query.validTimeStateDateTimeRange(DateTimeUtil::minValue(), DateTimeUtil::maxValue())
    Best regards,
    Mohamed Amine MAHMOUDI
  • Waed Ayyad Profile Picture
    9,214 Super User 2026 Season 2 on at
    Hi,

    Is your issue resolved? If yes, mark the answers that helped you as verified.


    Thanks
    Waed Ayyad

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
SajeedMullaji Profile Picture

SajeedMullaji 366

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 260 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans