Community

Connect with us and enhance your M-Files experience using Unitfly Toolkit for M-Files. Here’s how to get started.

Notifications
Clear all

Create a document object without template. Just creating the document from the source we trigger from.

0
Topic starter

Hi

I trying to create a object using object creation without a template. I getting this information in the log:


System.Runtime.InteropServices.COMException (0x80040001): The parameter is incorrect. (One source file must be specified when creating a single-file document.)

CoVaultObjectOperations.cpp, 2663, The parameter is incorrect. (One source file must be specified when creating a single-file document.) (0x80070057)

So I know I need to specify which document should created. Setting property "Document" by referencing on the source document dont work. How can I solve this?

Have you an example?

The usecase is simple: We want to copy the document to another class. And there are more usecases we like to implement.

Kind regards
Steve

WATCH THE WEBINAR

Introducing AI Document Kit: Add-on for AI-driven Document Management