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 :
Microsoft Dynamics AX (Archived)

validTimeState() in a Join

(0) ShareShare
ReportReport
Posted on by

Is it possible to use validTimeState() in a select statement join clause? If so, what is the syntax? Where would you place the validTimeState() call?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Denis Macchinetti Profile Picture
    16,444 on at

    Hi Steve

    Take a look at download.microsoft.com/.../using_date_effective_patterns_ax2012.pdf

    Here you are able to find some examples on using the validTimeState keyword in a Join.

    Reading at page 30, seems that the ValidTimeState keyword can be set only on the master data source, which is the root table in a form or a query. It cannot be set on the inner/outer/exist/notexist joined child table.

  • Community Member Profile Picture
    on at

    Thank you.

    So I guess I would need to do a separate lookup from within the "while select" loop. Is that correct?

  • Community Member Profile Picture
    on at

    For my particular query, I set the keyword on the root table, and it worked for the joined address table. So is that how it actually works? You can place it at the beginning and it will trickle down through the joins?

    My query starts with CustInvoiceJour and ends with a join on LogisticsPostalAddress. I needed the ValidTimeState to apply to LogisticsPostalAddress, which it appears to do.

  • Community Member Profile Picture
    on at

    Apparently if you apply the validTimeState keyword on the root table, that time state rolls down to all the joins as well.

  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Yes, my understanding is that you're setting it for the query as a whole, not for individual tables.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans