Forum Discussion

rif6894's avatar
rif6894
New Member
5 years ago
Solved

Upload a file using C# as a Server method

I will be using a server C# method upload files for migration from a legacy PLM system. C# method, in lieu of Batch Loader, is to used to allow more logic to be applied to the file uploading. Based...
  • Trach_Van's avatar
    5 years ago

    This sample code can be used to upload a file:

    // Upload this .zip to Innovator
    Item zipFile = inn.newItem("File", "add");
    zipFile.setProperty("filename", zipName);
    zipFile.attachPhysicalFile(fullZipPath);
    zipFile = zipFile.apply();