getRecents(maxResultsToFetch)
Obtains the list of the recently accessed assignments.
Returns
A Promise associated with the action.
Parameters
Name | Type | Description | Required |
maxResultsToFetch | number | The maximum number of results to be obtained from the server. | ✅ |
Usage example
In this example, the success callback is called if the specified list of the recently accessed assignments is obtained successfully.
const recentsPromise = getPConnect().getActionsApi().getRecents(15);
recentsPromise.then((data) => {
// success handling
}).catch(() => {
// failure handling
});
Previous topic finishAssignment(containerItemID) Next topic ignoreDuplicateCase(containerItemID)