Notifications
Announcements
No record found.
Hi All,
I've a Sales Order with two sale lines in it. For both of these lines, I've attached a note using top right attachment tool and for the header of sales order, I did the same.The requirement is to use these attachment notes in X++ code so I can use them to populate fields on report. Is there any way to get reference from like first sales line to the respective attachment and same for all?
Any code or suggestions?
Regards,Ali
Hi Ali,
Notes are stored in DocuRef table and has relationship with salesline on reftableid and refrecid. You need to get data from DocuRef table and then print on report. Check relationship in Visual Studio.
As mentioned, files are saved to docuvalue and docuref tables.
Here's a similar thread,more details,please refer : dynamicsuser.net/.../attach-files-programmatically-using-x
Thank you all.
I tried the relationship pointed by Satish and they worked.
Regards,
Ali
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 664 Most Valuable Professional
André Arnaud de Cal... 522 Super User 2025 Season 2
Sohaib Cheema 303 User Group Leader