แก้ไข

แชร์ผ่าน


Test preview for monetized apps

You can create a Software as a Service (SaaS) offer and test the end-to-end purchase experience for your monetized apps in Teams. Users who are added as the preview audience for the Teams app can review your SaaS offer before you publish.

Create a Preview offer ID

You can generate the Preview offer ID from the AppSource preview link in the Partner Center. Ensure that the SaaS offer is in the Preview creation phase. To generate the preview offer ID:

  1. Go to Partner Center and sign in using your developer credentials.

  2. Select Marketplace offers.

  3. Select the SaaS offer you want to preview.

  4. Add a preview audience for your SaaS offer.

  5. Select AppSource preview link under Go Live to find the Preview offer ID in the browser address bar with publisherId.offerId-preview format.

    Screenshot shows the Offer overview screen with AppSource preview option highlighted.

  6. Copy the Preview offer ID from the browser address bar.

    Screenshot shows the Preview offer ID.

    Note

    Unlike a public offer ID, the Preview offer ID can be recognized with the -preview suffix. For example, publisherId.offerId-preview.

    If the offer you want to preview is limited to the non-US regions, Developer Portal for Teams might not be able to find your offer. You can either add United States to the list of markets, pricing, and availability or ignore the error and select Preview in Teams to upload a custom app to Microsoft Teams.

    Screenshot shows the user can select United States region.

Configure your app with the preview offer ID

Before you begin, sign in to the Developer Portal using a developer account with preview audience for users to see your subscription plans in the Microsoft Teams Store.

After you've generated your Preview offer ID, link the offer ID to your Teams app. To link the offer ID:

  1. Go to Developer Portal and sign in using your developer credentials.

  2. Select Apps from the left pane.

  3. Select the app to link the SaaS offer to.

  4. Select Plans and pricing and enter the Publisher ID and Offer ID.
    Ensure the offer ID contains -preview suffix.

  5. Select View to preview your subscription plans.

  6. Review the plans listed under Apps Subscription and select Save.

    Screenshot shows the Plan and pricing screen to add offer ID.

The subscriptionOffer property is added to your app manifest.

"subscriptionOffer": {
     "offerId": "publisherId.offerId-preview"  
     }

Note

  • Check for the label Preview offer next to Apps subscription to confirm if the offer is a Preview Offer.
  • The subscriptionOffer property is supported in manifest schema version 1.10 or later.

Upload your custom app into Teams

After you configure your app with the Preview Offer ID, create an updated app package and upload it to Teams to test the end-to-end purchase experience. For more information, see Upload your app in Teams. You can also select Preview in Teams in the Developer Portal for Teams to launch your app quickly in the Teams client.

If the Preview offer is specified in the app manifest and the preview audience is defined in the Partner center for the offer, the user can see the Buy a subscription button.

Screenshot shows the Buy a subscription option.

Error scenarios

  • If the offer ID is specified, but the user isn't part of the Preview audience defined in the Partner Center, the Buy a subscription button isn't enabled and the app shows the following warning message to the user:

    No plans found with -preview. Make sure you're in the preview audience.

    Screenshot shows the No plans found with preview warning.

  • If the offer ID specified in the app manifest isn't a Preview offer, the app shows the following warning message to the user and custom app upload is disabled:

    This isn't a preview offer. Be sure to append the -preview to the Offer ID.

    Screenshot shows the not a preview offer warning.

See also