function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ryanschierholzryanschierholz 

How can I get feedback from a third-party class?

We're using an LMS app, LearnTrac, and I would like to automatically assign LESSON TWO to a user when they complete LESSON ONE.
The infomation I am given by the app is:
LearnTrac exposes the following Apex methods to developers :

redwing.LMS_API.upsertAssignments(Set<Id> userIds, Id trainingPlanId)

Creates/Updates assignments for the provided set of user ids to the specified Training Plan Id.

Parameters

userIds

Type : Set<Id>

Set of User Ids that will be assigned to the specified training plan.

trainingPlanId

Type : Id

Id of the Training Plan to which the set of user ids will be assigned to

Return Value

Type : Void

Therefore, I have built a trigger that will check to see if a certain Learning Assignment is 'Completed' and then run this class with the info for the new assignment. It doesnt work. So, I have taken a step back and just tried to execute the code in anonymous window. It still doesnt do what I want, but doesn't error. The logs don't seem helpful. How can I get more info back about what is going on?

Here is the anon block I run:
Id trainingPlanId = 'a2e0v0000001zohAAA';
Set<Id> userIds= new Set<Id>();
userIds.add('0056A000001VrA3QAK');
        
redwing.LMS_API.upsertAssignments(userIds, trainingPlanId);