[UWP][C#] unable to get addon info for published app

kranthi kumar 206 Reputation points
2020-09-27T11:28:44.083+00:00

i have an app published to store, i created a durable add-on for it & published, when i am trying to test in visual studio i couldn't get SKUID for addon, i even tried publishing a flight package to store but still couldn't get info on addon, however i can fetch current app license info as expected, am i doing something wrong ?

Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
927 questions
0 comments No comments
{count} votes

Accepted answer
  1. Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
    2020-09-29T03:03:16.623+00:00

    Hello,

    Welcome to Microsoft Q&A!

    The code you post is not the correct way to find add-on products. Generally, we use the code you post to check if the user owns an add-on or the app.
    Could you please try to get the add-on product information first?
    You could refer to the following code:

    if (context == null)  
        {  
            context = StoreContext.GetDefault();  
            // If your app is a desktop app that uses the Desktop Bridge, you  
            // may need additional code to configure the StoreContext object.  
            // For more info, see https://aka.ms/storecontext-for-desktop.  
        }  
      
        // Specify the kinds of add-ons to retrieve.  
        string[] productKinds = { "Durable" };  
        List<String> filterList = new List<string>(productKinds);  
      
        // Specify the Store IDs of the products to retrieve.  
        string[] storeIds = new string[] { "9NBLGGH4TNMP", "9NBLGGH4TNMN" };  
      
        StoreProductQueryResult queryResult =  
            await context.GetStoreProductsAsync(filterList, storeIds);  
    

    You could get more information about how to get add-on product information from this document: Get info for add-ons with known Store IDs that are associated with the current app

    Thank you.


1 additional answer

Sort by: Most helpful
  1. Roy Li - MSFT 32,731 Reputation points Microsoft Vendor
    2020-09-28T02:22:56.383+00:00

    Hello,

    Welcome to Microsoft Q&A!

    How long after you created an add-on before you trying to get it? There might be a 24-hours delay after you created an add-on before you could get it in your app.

    You could try to get it later again to see if this works. If you still could not get the add-on, please feel free to let me know.

    Thank you.


    If the response is helpful, please click "Accept Answer" and upvote it.
    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.