What code can I use to open a webDav document stored in an entity attribute?

How can I programmatically open a webDav document stored in an entity attribute ?

Hi, @robert.gilbert

First, you need to obtain a URL link to webdav document. You can do this via WebdavUrlManagementService:

WebdavDocument document = contract.getDocument();
WebdavUrl webdavUrl = webdavUrlManagementService.retrieveDocumentUrlByWebdavDocument(document);

After that you can make the use of WebBrowserTools to open the link programmatically:

if (webdavUrl != null) {
    webBrowserTools.showWebPage(webdavUrl.getUrl(), null);
}

Regards,
Gleb