Showing posts with label get attachment url. Show all posts
Showing posts with label get attachment url. Show all posts

Monday, 25 December 2017

Open attached file from DocuRef in browser in Dynamics Operations 365

Introduction:
To open an attach file on a browser tab in Dynamics Operations 365, you can use the following code snippet

Code Snippet:
    //get Public URL of the attach file from the DocuRef Buffer
    str displayUrl = DocumentManagement::getAttachmentPublicUrl(docuRef);
   
    //initialize browser object and navigate
    Browser br = new Browser();
    br.navigate(displayUrl);