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
HiI'm working on a task where I need to get the outstream from XMLPort and pass it to the calling function. I wrote this code
however, I'm unable to do so. On first line it says that 'The type or method can not be used for extension development'.Is there any other way of creating outstream? Thanks in advance :)
Import and export a file in AL Extension can be handled with DOWNLOADFROMSTREAM and UPLOADINTOSTREAM functions.
The below code is a sample on how to export a blob data to a file:
PurchaseHeader.SETFILTER("No.","No.");TempBlob.Blob.CREATEOUTSTREAM(OStream);REPORT.SAVEAS(1322,PurchaseHeader.GETFILTERS,REPORTFORMAT::Pdf,OStream);TempBlob.Blob.CREATEINSTREAM(ReportInStream);MyPath := 'test.pdf';DOWNLOADFROMSTREAM(ReportInStream,'','', '',MyPath);
Is this method limited to work with using reports only?What if we need to write data to file in XML format?
No this method is native from the AL language so you can use as per your needs in every object.
I used your example and tailored it to my needs.
Using BC 365 and AL code.
I have the following
Business Applications communities