Trying to add URLs on managed home screen

Tor Benjamin Johnsen 20 Reputation points
2024-09-13T11:27:00.2733333+00:00

I am trying to add some URLs on our managed home screen on android with json script for weblinks, i no longer get invalid JSON error in the JSON window but i cannot create the configuration policy due to invalid JSON. Can you see what is wrong and where my code fails?

JSON string here :

{

"kind": "androidenterprise#managedConfiguration",

"productId": "app:com.microsoft.launcher.enterprise",

"managedProperty": [

{

  "key": "weblinks",

  "valueBundleArray": [

    {

      "managedProperty": [

        {

          "key": "link",

          "valueString": "http://esl.xxl.no/PDA"

        },

        {

          "key": "label",

          "valueString": "ESL"

        }

      ]

    }

  ]

},

{

  "key": "weblinks",

  "valueBundleArray": [

    {

      "managedProperty": [

        {

          "key": "link",

          "valueString": "retailsolutions.xxlsports.com/"

        },

        {

          "key": "label",

          "valueString": "Retail Solutions"

        }

      ]

    }

  ]

}

]

}

Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
299 questions
Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,917 questions
0 comments No comments
{count} votes

Accepted answer
  1. ZhoumingDuan-MSFT 13,635 Reputation points Microsoft Vendor
    2024-09-16T02:36:05.0233333+00:00

    @Tor Benjamin Johnsen, Thanks for posting in Q&A. Based on my researching, I find the format to add URLs are as below:

    { "key": "weblinks",

                    "valueBundleArray": [
    
                        {
    
                            "managedProperty": [
    
                                {
    
                                    "key": "link",
    
                                    "valueString": "http://esl.xxl.no/PDA"
    
                                },
    
                                {
    
                                    "key": "label",
    
                                    "valueString": "ESL"
    
                                }
    
                            ]
    
                        },
    
                        {
    
                        "managedProperty": [
    
                                {
    
                                    "key": "link",
    
                                    "valueString": "retailsolutions.xxlsports.com/"
    
                                },
    
                                {
    
                                    "key": "label",
    
                                    "valueString": "Retail Solutions"
    
                                }
    
                            ]
    
                        }
    
                     ]
    
                }
    

    Please change your Json file with the similar format to see if it can work.

    And here is link with correct Json data format you can refer.

    https://learn.microsoft.com/en-us/mem/intune/apps/app-configuration-managed-home-screen-app#enter-json-data

    Hope the above information can help.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.