handling-bc-files
Installation
SKILL.md
Skill: AL File Handling
Validation Gates
- After Step 1:
UploadIntoStreamopens file dialog, InStream contains data - After Step 2: Attachment saved to Document Attachment or custom table
- Final: XMLport imports/exports successfully, Azure Blob upload returns
IsSuccessful()
Note: ALWAYS CalcFields(BlobField) before CreateInStream. Web Client allows only ONE DownloadFromStream per request.
Procedure
Step 1: Upload/Download Files
// Upload
if UploadIntoStream('Select file', '', 'All Files (*.*)|*.*', FileName, InStr) then
// Process InStr