SplitAssignmentToResourceRequestAction
Splits an assignment into a new resource request that starts on the given date. The source assignment is shortened to end the day before, and a new resource request is created for the remainder with the given role and requested hours.
| Property | Value |
| Label | Split Assignment to Resource Request |
| Category | Resource Management |
| Since | Summer 2026 |
| Read-only | No |
| Supports Agents | Yes |
| Supports Flows | No |
| Async Action | No |
| Keywords | divide, requisition, reallocation |
Request Parameters
| Field | Type | Label | Description | Required |
sourceAssignmentId | Id | Source Assignment ID | The ID of the assignment to split. Its end date is shortened to the day before the start date, and the remainder becomes a new resource request. | Yes |
startDate | Date | Start Date | The start date of the new resource request. Must fall after the assignment start date and on or before its end date. | Yes |
requestedHours | Decimal | Requested Hours | The requested hours for the new resource request. Must be zero or greater. | Yes |
resourceRole | String | Resource Role | The resource role for the new resource request (for example "Architect"). | Yes |
suggestedResourceId | Id | Suggested Resource ID | The optional ID of a resource (Contact) to suggest on the new resource request. | No |
Response Parameters
| Field | Type | Label | Description | Required |
sourceAssignmentId | Id | Source Assignment ID | The ID of the assignment that was split, echoed from the request for correlation. | No |
resourceRequestId | Id | Resource Request ID | The ID of the resource request created by the split. Null when success is false. | No |
resourceRequestJson | String | Resource Request (JSON) | The created resource request serialized as JSON, with fields Id, Start_Date__c, End_Date__c, Resource_Role__c, SOW_Hours__c, Resource__c and Project__c. Null when success is false. Deserialize with JSON.deserialize(value, pse__Resource_Request__c.class). | No |
success | Boolean | Success | True when the assignment was split successfully; false when this row failed (see Error Message). | No |
errorMessage | String | Error Message | The reason the split failed for this row. Null when success is true. | No |
|