Create master data record
rillsoft_resource_pool_resource_createCreates a single resource pool element (role, team, employee, etc.) within an open edit session. Nothing is stored until the edit is saved.
Instructions
Creates a single element in the resource pool. Inside an open unit of work only (rillsoft_resource_pool_edit_open); nothing is stored before rillsoft_resource_pool_edit_save. The group is picked through 'group' and created where it does not exist yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | catalog the object comes from | |
| fields | No | fields of the new element. Permitted, depending on type: group, name, firstName, lastName, code, rank, email, calendarId, metric, teamId, roleId, machineRoleId, productivity, capacityType, capacity, employedFrom, employedTo, cost, costChange, notes, with employee and team additionally shiftCycles, and with project_customer additionally url, street, postalCode, city, region, country, contactPerson, phone. shiftCycles is the shift calendar as a list of { from, to, calendarId } (dates DD.MM.YYYY, to may be left out for a single day): in each period the named calendar applies instead of the assigned one. The periods must not overlap, and every calendarId has to exist in the pool. Read it back through rillsoft_resource_pool_resource_get |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | internal id of the element | |
| code | No | code of the element; missing when none is set | |
| name | No | name of the element | |
| type | Yes | catalog of the element | |
| group | No | name of the group; missing for people and without a group name | |
| outcome | Yes | what the call did |