Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback

Last updated on 27 February 2021

Admin
REST API

Overview

When creating an object with REST API, and if the if class has a mandatory workflow, the workflow and state IDs must be given in REST call. If the values are not given, the object creation fails.

Solution

You must know the corresponding workflow ID and state ID from the context. There is no way to check the corresponding values through REST API and it is not possible to check whether the class has mandatory workflow.

With COM API, it is possible to check the class properties and determine if the class has mandatory workflow and which workflow it is.

Keywords

M-Files, REST, API, workflow

Still need help?