SAP Knowledge Base Article - Public

3169287 - How to capture assignment activity logs using API

Symptom

Activity logs are made available to Litmos Account Owners to help track the activities that occur within the tenant organization. These activity logs are useful for tracking:

  • The activity performed
  • How the actiity was initiated
  • The source of the activities that were performed
  • The target record for the activities performed
  • The date and time the activities were performed

These activity logs can be an important and often necessary data set for organizations that require audit logging and read access logging. Most often these audits are related to inquiries regarding performance monitoring, personally identifiable information, data protection, data privacy and GDPR.

Environment

SAP Litmos LMS

Reproducing the Issue

NA

Cause

Na

Resolution

We can use the below API to capture assignment activity logs:

GET /org/activities/actions?source={source}&since={YYYY-MM-DD HH:MM:SS}&to={YYYY-MM-DD HH:MM:SS
<ActionActivitys xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ActionActivity>
<ActivityType>string [max length 100]</ActivityType>
<ObjectType>string [max length 50]</ObjectType>
<ObjectId>string [max length 50]</ObjectId>
<OriginalObjectId>integer</OriginalObjectId>
<ObjectName>string [max length 500]</ObjectName>
<TargetObjectType>string [max length 50]</TargetObjectType>
<TargetObjectId>string [max length 50]</TargetObjectId>
<OriginalTargetObjectId>integer</OriginalTargetObjectId>
<TargetObjectName>string [max length 500]</TargetObjectName>
<ActivityBy>integer</ActivityBy>
<ActivityByUserName>string [max length 255]</ActivityByUserName>
<ActivityDate>YYYY-MM-DD HH:MM:SS</ActivityDate>
</ActionActivity>
</ActionActivitys>

Keywords

API, Assignment activity logs , KBA , LOD-SF-LIT-API , Litmos Features - API , How To

Product

SAP Litmos solutions all versions