Breaking news from around the world
Get the Bing + MSN extension
Choose your path Increase your proficiency with the Dynamics 365 applications that you already use and learn more about the apps that interest you. Up your game with a learning path tailored to today's Dynamics 365 masterminds and designed to prepare you for industry-recognized Microsoft certifications.
Visit Microsoft Learn
2019 release wave 2 Discover the latest updates and new features to Dynamics 365 planned through March 2020
Release overview guides and videos Release Plan | View virtual launch event
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
When I am running the bellow code from Classic it works great.
When I am running the code from Role Tailored Client it send back the error"The automation variable has not been instantiated".
Can anybody help me?
Name DataType Subtype LengthShell32 Automation 'Microsoft Shell Controls And Automation'.Shell ZipFolder Automation 'Microsoft Shell Controls And Automation'.Folder IntegerValue Integer i Integer TextFile File ZipFileName Text 1024SourceFileName Text 1024ZipFile File
CompressFileToZip(sourceFileAddress : Text;destenationFileAddress : Text)ZipFileName := destenationFileAddress;SourceFileName := sourceFileAddress;
//>>CREATING ZIP FILEZipFile.CREATE(destenationFileAddress); //here goes Your zip filenameZipFile.TEXTMODE(FALSE); //binary modeIntegerValue:=101010256;//>>writing zip headerZipFile.WRITE(IntegerValue);IntegerValue:=0;FOR i:=1 TO 9 DO ZipFile.WRITE(IntegerValue);//<<writing zip headerZipFile.CLOSE;//<<zip file created c:\myzipfolder.zip
CREATE(Shell32,False, True); //creating shell automationZipFolder:=Shell32.NameSpace(destenationFileAddress); //ZIPFolder is now our folder in zip format which will be usedSourceFileName := sourceFileAddress;//>>Copying file to our zip folderZipFolder.CopyHere(SourceFileName);CLEAR(Shell32);
Try using Clear(Automation Variable) before this code
"CREATE(Shell32,False, True); //creating shell automation"
Thank you. I managed to do it with File Management (419).
Business Applications communities