请求提供SharePoint Add-In评分评论功能的链接地址构造示例
Got it, let's break down how to construct that "Leave a Rating" link for your SharePoint Add-In clearly:
基础链接模板
The core URL structure points to the Office Store's rating page, with placeholders you'll replace with your add-in's unique details:
https://store.office.com/rating.aspx?assetid=<YOUR-ADD-IN-UNIQUE-ID>&source=SharePoint
关键参数说明
<YOUR-ADD-IN-UNIQUE-ID>: This is the GUID assigned to your add-in. You can find this in:- Your SharePoint App Catalog (view the add-in's properties)
- The Office Store Developer Center (under your add-in's details)
source=SharePoint: This optional parameter tags the rating request as coming from SharePoint, which helps you track rating sources in your developer analytics.
完整示例
Suppose your add-in's unique ID is a1b2c3d4-5678-90ef-ghij-klmnopqrstuv, the final working link would be:
https://store.office.com/rating.aspx?assetid=a1b2c3d4-5678-90ef-ghij-klmnopqrstuv&source=SharePoint
集成到"Leave a Rating"按钮示例
If you're adding this to your add-in's UI, here's a simple HTML snippet you can adapt (using SharePoint's Fluent UI styling for consistency):
<a href="https://store.office.com/rating.aspx?assetid=a1b2c3d4-5678-90ef-ghij-klmnopqrstuv&source=SharePoint" target="_blank" class="ms-Button"> <span class="ms-Button-label">Leave a Rating</span> </a>
额外注意事项
- For internal-only add-ins (not published to the public Office Store), the same URL structure works—just use the add-in's GUID from your organization's App Catalog.
- Always use
target="_blank"to open the rating page in a new tab/window, so users don't lose their place in your add-in.
内容的提问来源于stack exchange,提问作者Alan Bell
相关产品推荐
相关产品推荐

