Import UDT loadFromFile

Hello, I have a project that utilizes a UDT so on project startup I have a script checking and trying to import the UDT Data Type if the gateway doesn’t already have it. I was able to get this to succeed with the syntax below for a filepath on a shared drive, but when I try to use a webpage filepath from our sharepoint it fails.

We have another project that was developed a while ago and used this sharepoint location so multiple sites from our company could reach it so I am attempting to do the same. When I paste the path into my webbrowser it downloads the xml so I believe the path is correct. Appreciate any help with running a script on sharepoint filepath vs a shared drive one!


filePath = r’https://filepathwebpage/UDT.xml
system.tag.loadFromFile(filePath, “default”, 0)