Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

query to extract all the lines on RMA without Location filled

(0) ShareShare
ReportReport
Posted on by 50

Can someone help me to understand how I can extract all the Sales order lines, customer returns in this case where the Warehouse location is missing?

Also, database query is fine.

Thanks

pastedimage1608305101969v1.png

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: query to extract all the lines on RMA without Location filled

    Hi mcy,

    You can try this SQL query -

    SELECT * FROM SALESLINE AS SL
    	JOIN SALESTABLE AS ST ON ST.SALESID = SL.SALESID
    	JOIN INVENTDIM AS INVD ON INVD.INVENTDIMID = SL.INVENTDIMID
    		WHERE ST.SALESTYPE = 4 AND INVD.INVENTLOCATIONID = ''

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,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans