Attaching a user selected document to a purchase order using x++ job (Runnable class) in Dynamics 365 for Finance and Operations
While working in document management in Microsoft Dynamics 365 for Finance and Operations, For testing purposes I wanted to attach documents to some posted tables and written a simple program to get files from user and attach to the record. Modified same to show how it work with PurchTable. class Jobs { public static void main( Args _args) { PurchTable purchaseTable; System.Net. WebClient webClient; System.IO. MemoryStream stream; FileUploadTemporaryStorageResult fileUploadResult = File ::GetFileFromUser ( classstr ( ImageFileUploadTemporaryStorageStrategy )); if (fil...