Guides on Power Platform: Difference between revisions
Appearance
No edit summary |
|||
| Line 17: | Line 17: | ||
# Go to make.powerpages.microsoft.com. | # Go to make.powerpages.microsoft.com. | ||
# Ensure you are in the environment with Resco Guides solution installed. | # Ensure you are in the environment with Resco Guides solution installed. | ||
# | # Create a new power page or edit an existing one. | ||
# Go to '''Pages''' and select the page where you want to add the guide player. | |||
# Insert an iframe to the page, then switch to '''Edit code''' and use the following code to define the iframe content:<br><code><nowiki><iframe frameborder="0" src="/_webresource/rh_rescoplayer/index.html?id=6b9021ba-6495-4207-9e9c-9d6a4aa8219b&data=endpoint%3DPortalWebApi"></iframe></nowiki></code> | |||
# Save the modified code, return to power page design studio, and click '''Sync''' to retrieve the latest code. | |||
Set up table permissions: | |||
# Go to '''Set up > Table permissions''' and add permissions for 5 tables: | |||
#* Four tables required to run the Guide player (rh_guide, rh_guidecategory, systemuser, and annotation). | |||
#* Web Resource table. | |||
#: Read privileges should be sufficient. For the sake of demonstration, you can grant it to all users. | |||
[[File:Grant-table-permissions-for-power-page.png|600px]] | |||
Set up web API access: | |||
# Return to the the Power Pages home page (list of your sites). | |||
# On your new power page, click the ellipsis button and select '''Portal management'''. | |||
# Select '''Website > Site Settings''' from the menu. | |||
# For each of the four Guide player tables (rh_guide, rh_guidecategory, systemuser, and annotation), create two new site settings: | |||
#* Enable the web API for this table. | |||
#* Set up fields that should be available via web API (or use asterisk for all). | |||
[[File:Guides-in-power-pages-portal-management-site-settings.png|600px]] | |||
{{Feedback}} | {{Feedback}} | ||
[[Category:Guides]] | [[Category:Guides]] | ||
Revision as of 11:10, 26 July 2023
|
| Warning | Work in progress! We are in the process of updating the information on this page. Subject to change. |
Traditionally, end users consume guides in Resco mobile apps. Since Release 16.1 (summer 2023), guides can also be used in various components of the Microsoft Power Platform: Power Apps and Power Pages.
As your backend server, use Microsoft Dataverse - with or without extra Dynamics features. In this configuration, you also don't need to install Woodford.
Getting started
Here's a high-level overview of steps to prepare your environment:
- Go to https://make.powerapps.com/.
- Install the Resco Guides managed solution. (How?)
- Optionally, define some N:N relationships between the Guides table and other tables (if you want to have guides related to other records). (How?)
- Optionally, define some guide categories. (How?)
- Use Guides library to create and publish at least one guide.
Creating a Power Page
- Go to make.powerpages.microsoft.com.
- Ensure you are in the environment with Resco Guides solution installed.
- Create a new power page or edit an existing one.
- Go to Pages and select the page where you want to add the guide player.
- Insert an iframe to the page, then switch to Edit code and use the following code to define the iframe content:
<iframe frameborder="0" src="/_webresource/rh_rescoplayer/index.html?id=6b9021ba-6495-4207-9e9c-9d6a4aa8219b&data=endpoint%3DPortalWebApi"></iframe> - Save the modified code, return to power page design studio, and click Sync to retrieve the latest code.
Set up table permissions:
- Go to Set up > Table permissions and add permissions for 5 tables:
- Four tables required to run the Guide player (rh_guide, rh_guidecategory, systemuser, and annotation).
- Web Resource table.
- Read privileges should be sufficient. For the sake of demonstration, you can grant it to all users.
Set up web API access:
- Return to the the Power Pages home page (list of your sites).
- On your new power page, click the ellipsis button and select Portal management.
- Select Website > Site Settings from the menu.
- For each of the four Guide player tables (rh_guide, rh_guidecategory, systemuser, and annotation), create two new site settings:
- Enable the web API for this table.
- Set up fields that should be available via web API (or use asterisk for all).
{{#CI form: title = Was this information helpful? How can we improve?
| type = inputs
| [textarea]
}}