Graph SDK property to set App Version for Win32LobApp.

Sangamesh S Gouri 16 Reputation points
2021-06-01T12:29:38.183+00:00

101593-graphapiquestion.pngHi,

I am using Microsoft.Graph SDK : Version=3.19.0.0. I am working on supporting publishing of intunewin packages to intune server. I couldn't find property exposed for setting for App Version mentioned as part of Graph SDK class Win32LobApp.

Thanks,
Sangamesh

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Diana Wanjuhi 1,376 Reputation points
    2021-06-02T09:48:12.98+00:00

    Hello @Sangamesh S Gouri thank you for reaching out. To set the app version, you can use the committedContentVersion property on the win32LobApp resource type.

    Please let me know whether this helps and if you have further questions,

    Diana.

    0 comments No comments

  2. Sangamesh S Gouri 16 Reputation points
    2021-06-02T11:46:50.72+00:00

    Hi @Diana Wanjuhi ,

    I tried setting the committedContentVersion property while publishing intunewin package but it didn't set that to UI in intune.
    I tried setting that value manually in UI and tried making the Get API call in graph explorer. it doesn't return correct value. It is something while we upload package to Azure storage blob updates committedContentVersion id internally and not visible in UI.

    Please refer the screenshots attached.101742-appversion.png 101600-committedcontentversion.png

    Thanks,
    Sangamesh

    0 comments No comments

  3. Sangamesh S Gouri 16 Reputation points
    2022-09-12T12:53:08.65+00:00

    Hi @Diana Wanjuhi ,

    When the support will be provided for the setting App version field for win32 application through Graph SDK.

    Thanks,
    Sangamesh

    0 comments No comments

  4. Rogier Langeveld 1 Reputation point
    2023-01-06T10:00:20.947+00:00

    Running into the same problem here...

    It appears to me that 'commitedContentVersion' can only be set to an uploaded contentVersion. (Which is a simple counter that starts with 1 and is increased everytime you create a new contentVersion.) It seems it can not be set to an actual application version string...

    If I try to set 'commitedContentVersion' to an arbitrary string (e.g. "1.2.3"), I get an error.
    I tried to set 'displayVersion', 'identityVersion' and 'contentVersion' as parameters. No error, but no display neither...

    Since I am using an MSI file within a Win32LoBApp, it was suggested the ProductVersion from the MSI file is used. But it isn't.
    I also tried updating the msiInformation parameter:

    {  
        "@odata.type": "#microsoft.graph.win32LobApp",  
        "identityVersion": "1.2.3",  
        "displayVersion": "1.3.2",  
        "contentVersion": "2.1.3",  
        "msiInformation": {  
            "productCode": "{01234567-1234-2345-3456-0123456789AB}",  
            "productVersion": "1.2.3",  
            "upgradeCode": "{01234567-1234-2345-3456-0123456789AB}",  
            "requiresReboot": false,  
            "packageType": "dualPurpose",  
            "productName": "Test application",  
            "publisher": "Thats me"  
        }  
    }  
    

    I do get a "204 No content" response, but none of this data is actually shown in the Intune portal....

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.