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, ...
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,112 Super User 2025 Season 2 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,112 Super User 2025 Season 2 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,112 Super User 2025 Season 2 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

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
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans