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
Bhavesh RekvarBhavesh Rekvar 

How we can get talent LMS user in Salesforce

I'm tring to how we can get talent LMS user in Salesforce using Apex code, but not getting any solution please let me know any solution of my question..
VinayVinay (Salesforce Developers) 
Hi Bhavesh,

We do not have any talent LMS user in salesforce and I believe it is part of managed package.

Check below link for more details

https://help.talentlms.com/hc/en-us/articles/360014658613-How-to-integrate-Salesforce-and-TalentLMS

Thanks,
Bhavesh RekvarBhavesh Rekvar

Hi Vinay,


I have already followed that instruction as given link, I'm trying to get talent LMS user in salesforce with the help of talent LMS API but I'm totally new to all things of salesforce so can you provide me a whole code of how can I get the talent LMS users using Apex code.


I don't have any knowledge of Apex development so if can you provide the whole code to get talent LMS users in salesforce using apex code.


Below i have tried this code in saleforce (apex code)


public class Get_talentLMS_User {
    public static void RestServiceMethod(String sessionId){
    
     HttpRequest req = new HttpRequest();
     req.setEndpoint('https://ignatiuzardent.talentlms.com/D5ZgtG7uMIBhgrQBncL1MwStSHBUuT/v1/users');
     req.setMethod('GET'); 
     req.setHeader('Authorization', 'OAuth ' + sessionId);
     req.setHeader('Content-Type','application/json'); 
     req.setTimeout(120000);
     
      
     HttpResponse res = new HttpResponse();
     //res = http.send(req);
     
     system.debug(res);
     }
}


Please review the code if any error in the code so please update the code let me know.


As you mention the blog URL, I have already seen this blog but it is not useful for me so please give me the best solution to this problem.