organisations()
Returns all defined workflow organisations from the server via wfm.GetOrganisations.
Only one organisation can be active at a time per server.
1. Signature
-
Sync
-
Async
ecm.workflow.organisations() -> list[ECMOrganisation]
await ecm.workflow.organisations() -> list[ECMOrganisation]
3. Return value
A list of ECMOrganisation instances. Returns an empty list when no organisations
are defined.
4. Examples
4.1. List all organisations
-
Sync
-
Async
for org in ecm.workflow.organisations():
status = "active" if org.active else "inactive"
print(f"{org.name} ({org.id}): {status}")
for org in await ecm.workflow.organisations():
status = "active" if org.active else "inactive"
print(f"{org.name} ({org.id}): {status}")