When I am Using Stream( Write() , Open() , etc.. ) functions in AL Language for Business Central of Cloud Version(SaaS) Getting error . Can any one suggest me what I have to do , to use these functions in my Code or Is there any alternative.
Error : The type or method 'Write' cannot be used for 'Extension' development.
You need to use InStream and OutStream data types on SaaS:
File.OPEN is not supported on SaaS, you don't have a file system in the cloud. You need to use UploadIntoStream to load a file to an InStream.
Can you give me an example for better understanding.
if UploadIntoStream('', '', '', FileName, FileInstream) then
//Here you have your InStream loaded with the file content
I Wrote Code like below in my Codeunit
OutputFile.WRITE(STRSUBSTNO('A%1,%2,0,3,1,1,N,"%3"',ColNo, RowNo, PackageLineL."No."));
And Getting error "The type or method 'Write' cannot be used for 'Extension' development"
Business Applications communities