ResourceTaskAssignment is used to assign work to a Resource, by assigning a Resource as a participant, or assigning work to a Profile.
To assign a Resource as a participant, you must create a ResourceTaskAssignment object specifying an existing parent and an existing Resource in the corresponding fields. The profile and taskAssignment fields should remain null.
In order to delete a TaskAssignment, you must delete the parent ResourceTaskAssignment. ResourceTaskAssignments with security roles ‘Project Manager’ and ‘Task Responsible’ cannot be deleted.
Parent is mandatory and must be saved, allowed parent types are Proposal, Project, WorkOrganization, Deliverable, WorkProduct, SummaryTask, Milestone, and Task.
The field securityRole, inherited from SecurityRoleAssignment, is mandatory when creating or updating a ResourceTaskAssignment.
N/A
The following table lists the fields for this object.
Field | Detail |
---|---|
assignmentStatus | Type: AssignmentStatus Default value: N/A Description: The status of the resource’s assignment (Work or Duration). Field validation description: This field is read-only. Additional field security restrictions: N/A |
profile | Type: Profile Default value: N/A Description: The profile associated with a profile assignment. Field validation description: The profile field or the resource field (inherited from ResourceRoleAssignment) is mandatory on insert only. If the profile field contains a value, the resource field (inherited from ResourceRoleAssignment) must be null. This field is mandatory for a profile assignment. Additional field security restrictions: N/A |
resourceType | Type: ResourceType Default value: N/A Description: Identifies if a Profile or a Resource is being assigned. Field validation description: This field is mandatory. Additional field security restrictions: N/A |
taskAssignment | Type: TaskAssignment Default value: N/A Description: The task assignment data for a resource or profile assignment. Field validation description: This field is mandatory when creating a resource or profile assignment. Additional field security restrictions: N/A |
workLocation | Type: WorkLocation Default value: N/A Description: The resource’s or profile’s work location. Field validation description: N/A Additional field security restrictions: N/A |