question

NitinRoy-0966 avatar image
0 Votes"
NitinRoy-0966 asked NitinRoy-0966 commented

MS Graph Intune API to get all mobileApps of type #microsoft.graph.win32LobApp

I have deployed few win32Apps along with few MSIs using Intune and now I want to get all the applications which are of type #microsoft.graph.win32LobApp "only" from the Graph API using Graph Explorer.

When I use https://graph.microsoft.com/v1.0/deviceAppManagement/mobileApps , I get all the applications (MSIs, win32Apps etc...), but when I apply filter to get only Win32LobApp I get an error.

The filter I am using as: https://graph.microsoft.com/v1.0/deviceAppManagement/mobileApps?$filter=odata.type eq '#microsoft.graph.win32LobApp' but I get below error:

{
"error": {
"code": "BadRequest",
"message": "Invalid filter clause",

where I am going wrong? I did try multiple variations, but I am unable to retrieve only Win32LobApps. Please help !!

mem-intune-graph
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

TimmyAndersson avatar image
0 Votes"
TimmyAndersson answered NitinRoy-0966 commented

Hey,

Try the following instead to get the Win32apps:

https://graph.microsoft.com/beta/deviceAppManagement/mobileApps?$filter=(isof(%27microsoft.graph.win32LobApp%27))

this works for me and is the same call that endpoint.microsoft.com uses if you try to filter from the web page.

Thanks,

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Timmy,

Many Thanks, a small change in your answer , it should have been : https://graph.microsoft.com/beta/deviceAppManagement/mobileApps?$filter=(isof('microsoft.graph.win32LobApp'))

But your suggestion works like a charm with the slight modification.

1 Vote 1 ·