DEV Community

Cover image for Using Microsoft Learn API to Validate Power Platform Makers

Using Microsoft Learn API to Validate Power Platform Makers

david wyatt on February 05, 2024

A key part of good goverance on any platforms is ensureing your developers have the right training, and this can be particularly important for Citi...
Collapse
 
ahmed_alhallag_bd4776d35a profile image
Ahmed Alhallag

Hi David, Great Post!
I'm trying to follow up with you but I can't figure out what to pass exactly for the skills and certificates inputs at the start of the flow trigger

Collapse
 
wyattdave profile image
david wyatt

HI @ahmed_alhallag_bd4776d35a , thank you.
Its a simple object array with the title of the skill or certificate you want to check that they have completed. It should look like this:

[
    {"title":"title of skill_1"},
    {"title":"title of skill_2"},
    {"title":"title of skill_3"},
    {"title":"title of skil1_4},
]
Enter fullscreen mode Exit fullscreen mode
Collapse
 
ahmed_alhallag_bd4776d35a profile image
Ahmed Alhallag

Okay got that! I had a different understanding in mind.
What changes do I need to make if I needed to grab all relevant skills and certs of a certain member without passing specific skills/certs?

Thread Thread
 
ahmed_alhallag_bd4776d35a profile image
Ahmed Alhallag

Another Issue @wyattdave (I'm sorry if I'm being annoying I just got into Power Platform very recently :D)

Image description

I found these two folders in your repo but I'm not sure where should I place them exactly, is it in onedrive? sharepoint? would really appreciate your guidance!

Thread Thread
 
wyattdave profile image
david wyatt

Not being annoying at all. For the users skills you need to get them to create a share link (from there profile in ms learn). From the URL you can get the share idea to pass in the API URL. That will return everything they have done on ms learn.
The folders are just to keep everything together, you only need the solution to import in. And the office script which should be stored in your OneDrive script folder or a SharePoint site (my solution uses a SharePoint site). Though the script is to check that certain things have been done, so if you just want full list you can skip that and delete the run script action in the flow.

Thread Thread
 
ahmed_alhallag_bd4776d35a profile image
Ahmed Alhallag

Thank you for your prompt response David! That was really helpful.
I have a quick final ask:

  • Based on the Display Name (or email) that I have internally within the org, I'm trying to use these keywords and lookup each individual's profile on MS Learn. the problem with the transcript/profile URLS is that they don't contain an accurate concatenated version of the name correctly. Do you have any thoughts on how can I approach that?
Thread Thread
 
wyattdave profile image
david wyatt

Sadly not, the ms learn profile is owned by the user not any org, so the only way to get access is for them to create a share link (I looked everywhere for another API to access it). The only way around I can think of for you is to setup a ms form/ app and get each user to add there share link to a list/table. You can then query that to get share id.

Collapse
 
jaloplo profile image
Jaime López

Great insights!!!

My only concern is to know if the API's endpoints will change in the future. As not being public or publicly documented, there is a chance that Microsoft could change them specifications.

Collapse
 
wyattdave profile image
david wyatt

That's very true and a good call out. Whenever you go off plan you can't expect any warning or consideration about updates so that risk needed to be factored in

Collapse
 
balagmadhu profile image
Bala Madhusoodhanan

Amazing @wyattdave