Skip to main content

Notifications

Announcements

No record found.

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
  • Layan Jwei Profile Picture
    Layan Jwei 7,264 Super User 2024 Season 2 on at
    How to use Not exist join with Update_recordset
    Hi,
     
    Do you still need help with this? If not then please verify the answers that helped you.
  • Verified answer
    Layan Jwei Profile Picture
    Layan Jwei 7,264 Super User 2024 Season 2 on at
    How to use Not exist join with Update_recordset
    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
  • Verified answer
    Judy Profile Picture
    Judy Microsoft Employee on at
    How to use Not exist join with Update_recordset
    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
  • Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    How to use Not exist join with Update_recordset
    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.
  • How to use Not exist join with Update_recordset
    I tried with notexist join but it didn't work.
  • Layan Jwei Profile Picture
    Layan Jwei 7,264 Super User 2024 Season 2 on at
    How to use Not exist join with Update_recordset
    Hi Raziq,
     
    Did it you try it? Or do you have a code that you tried?
     
    Thanks,
    Layan Jweihan

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,703 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans