businessobject-update
Create or update Business Objects in Simplifier platform with proper project assignments and dependency management for accessing connectors and other business objects.
Instructions
#Create or update a Business Object
Attention: When updating dependencies or tags, allways fetch the Business Object resource first to ensure operating on the latest version. Existing dependencies and tags have to be resent when doing an update - otherwise they would be cleared.
Dependencies are REQUIRED to be added when the BO functions access connectors or other BOs using Simplifier.Connector.* or Simplifier.BusinessObject.* APIs.
Project Assignment
Business Objects must be assigned to projects using the project assignment parameters:
For Creating New BOs:
Set
projectsBeforeto empty array[]Set
projectsAfterChangeto array of project names to assign the BO to
For Updating Existing BOs:
Set
projectsBeforeto current project assignments (from existing BO)Set
projectsAfterChangeto new project assignments
Example:
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| description | Yes | ||
| dependencies | Yes | Array of dependencies that this BO requires. CRITICAL: Add connectors and other BOs that will be accessed from BO functions using Simplifier.Connector.<Name> or Simplifier.BusinessObject.<Name> syntax. If not provided when updating, existing dependencies will be preserved. | |
| tags | Yes | Array of tags for categorizing and organizing this Business Object. If not provided when updating, existing tags will be preserved. | |
| projectsBefore | No | Project names before the change. Use empty array [] when creating new BOs, or provide current projects when updating. | |
| projectsAfterChange | No | Project names to assign the BO to. Required for tracking project assignments. |