Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, PowerApps, Microsoft Flow, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
I am trying to store it .txt,.pdf file in Item Card. So I Create One Command button to Browse the File using the following Code.
SelectedFile := FileMgt.OpenFileDialog('NAV File Browser','*.txt','');
Item.FileText := SelectedFile ;
MESSAGE('You selected %1', SelectedFile);
But. I didn't Find out the way how to store the file in Table Field. Because the issue is that if that file is deleted from that location so a user can not find the file.
So Help me out that Issue.
Thanks in Advance
The way you coded right now get you the file name but if you want to store the actual file then you need to use the Blob field and use the code something like below. By this way, you are storing the actual content
Check the codeunit 134
FileName := FileManagement.BLOBImportWithFilter(TempBlob,'Upload File',FileName,STRSUBSTNO(FileDialogTxt,FilterTxt),"*.txt;*.pdf;");Item.Content := TempBlob.Blob;
Business Applications communities