Manage Training with REST and Apex APIs
To manage learning module assignments programmatically, you can use REST or Apex APIs with record objects.
| Required Editions |
|---|
| Workforce Engagement is available in Lightning Experience |
| Available in: Enterprise, Performance, and Unlimited Editions |
Person Training records represent learning assignments in Workforce Engagement. Assignments are Trailhead learning modules, which are Learning Content records.
These REST API examples list, create, update, and delete learning assignments in PersonTraining records.
List all learning assignments
Create a learning assignment
Update a learning assignment
In this example, 0hRSG00000000zJ2AQ is the ID of the Person Training record to update.
Delete a learning assignment
In this example, 0hRSG00000000zJ2AQ is the ID of the Person Training record to delete.
If you use Apex classes to look up learning modules programmatically, place a limit clause on the SOQL query, for example:
These example Apex classes create, search, update, delete, and route learning assignments.
Create a learning assignment
Search for a learning assignment
Update a learning assignment
Delete a learning assignment
Route a learning assignment