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

How to use Not exist join with Update_recordset

(1) ShareShare
ReportReport
Posted on by 4
Can we use notexist join with update_recordset? Is it feasible?
 
Regards, 
Raziq
I have the same question (0)
  • Layan Jwei Profile Picture
    8,165 Super User 2026 Season 1 on at
    Hi Raziq,
     
    Did it you try it? Or do you have a code that you tried?
     
    Thanks,
    Layan Jweihan
  • Mohammed Raziq Ali Profile Picture
    4 on at
    I tried with notexist join but it didn't work.
  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Yes, you can use not exist join. It should work. Can you please send your code? Also did you check the same in SQL? May be if there are records existing with given condition so it did not work.
  • Verified answer
    Judy Profile Picture
    Microsoft Employee on at
    Hi,
     
    I think it should possible. Have you tried with the X++ SQL in the below blog, I am not sure if it can help since it very old.
    Have you tried these X++ SQL Statement with where sub-statement:
    CustTable custTable;
    ttsBegin;
    update_recordset custTable
    setting CreditMax = 5000
    where not exists (select * from otherTable)
    ........
    ttsCommit;
     
    Best Regards,
    Judy
  • Verified answer
    Layan Jwei Profile Picture
    8,165 Super User 2026 Season 1 on at
    Hi Mohammed,

    I just tried it and it works perfectly fine.
    CustTable custTable;
    SalesTable salestTable;
    
            update_recordset custTable
                setting accountstatement = 1
                where custTable.DataAreaId == 'AA'
            notexists join salestTable  where salestTable.CustAccount == custTable.AccountNum 
                && salestTable.DataAreaId == 'AA';


    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Layan Jwei Profile Picture
    8,165 Super User 2026 Season 1 on at
    Hi,
     
    Do you still need help with this? If not then please verify the answers that helped you.

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
André Arnaud de Calavon Profile Picture

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 366

#3
Adis Profile Picture

Adis 256 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans