|
1 | 1 | ---
|
2 |
| -title: Manage cards |
3 |
| -description: This article will help you use security roles to manage cards and explains how to delete a record. |
4 |
| -ms.date: 11/17/2022 |
| 2 | +title: Manage and create cards in solutions |
| 3 | +description: This article helps you manage cards in solutions. |
| 4 | +ms.date: 08/08/2023 |
5 | 5 | ms.topic: overview
|
6 |
| -author: sericks007 |
7 |
| -ms.author: sericks |
8 |
| -ms.reviewer: |
| 6 | +author: cotaylor |
| 7 | +ms.author: cotaylor |
| 8 | +ms.reviewer: mkaur |
9 | 9 | ms.custom:
|
10 | 10 | ms.collection:
|
11 | 11 |
|
12 | 12 | ---
|
13 | 13 |
|
14 |
| -# Manage cards |
| 14 | +# Manage cards in solutions |
15 | 15 |
|
16 |
| -This article will help you use security roles to manage cards and explains how to delete a record. |
| 16 | +Create a card from within a solution if, for example, you want to deploy the card to a different environment. Solutions can contain not only cards but also customized tables, choices, and other components. You can quickly customize an environment in various ways by creating cards and other components from within a solution, exporting the solution, and then importing it into another environment. For more information, see [Solutions overview](../../maker/data-platform/solutions-overview.md). |
17 | 17 |
|
18 |
| -## Manage cards with security roles |
19 | 18 |
|
20 |
| -This section shows you how to manage cards using security roles. |
| 19 | +## Create a solution |
21 | 20 |
|
22 |
| -### Change who can create cards |
| 21 | +To package cards in a solution, you need to start by creating a solution. You can skip this step if you already have a solution in which you want to link your card to. For more information, see [Create solution](../../maker/data-platform/create-solution.md). |
23 | 22 |
|
24 |
| -Cards are stored as rows in Dataverse within the **Card** table. Administrators can use [security roles to control who can create, read, and update cards](/power-platform/admin/wp-security-cds#tablerecord-ownership). |
25 | 23 |
|
26 |
| -For example, if the user is only assigned to a security role that does not have permission to create rows in the **Card** table, then the user won't be able to create cards. |
| 24 | +## Create a card in a solution |
27 | 25 |
|
28 |
| -Note that a user will still be able to receive and use cards sent in Teams, regardless of the security role assigned to the user, as those cards are accessed by the Cards for Power Apps service. |
| 26 | +You can create a blank card from within a solution. |
29 | 27 |
|
30 |
| -### Disable cards for an environment |
| 28 | +1. Sign in to [Power Apps](https://make.powerapps.com). |
| 29 | +1. If necessary, switch to the environment that contains the solution in which you want to create a card. |
| 30 | +1. In the left navigation bar, select Solutions. |
31 | 31 |
|
32 |
| -The Cards for Power Apps service uses the security role called **Cards Role** to communicate with Dataverse. By removing permissions for the **Cards Role** in an environment to create, read, or update the **Card** table, no one will be able to use cards within that environment. |
| 32 | + :::image type="content" source="../media/manage-cards/solution-tab.PNG" alt-text="Screenshot of solution tab."::: |
33 | 33 |
|
34 |
| -### Cards security roles |
| 34 | +1. In the list of solutions, select the solution in which you want to create a card. |
| 35 | +1. In the banner under the title bar, select New > Card. |
35 | 36 |
|
36 |
| -- **Cards Basic Role** can be used to grant a user access to view, create, and use cards in that environment. |
| 37 | + :::image type="content" source="../media/manage-cards/solution-new-card.PNG" alt-text="Screenshot of menu to create new card."::: |
37 | 38 |
|
38 |
| - Other security roles can be modified to view, create, and use cards by changing security role access to the **Card** table in Dataverse. |
| 39 | +1. Type the name and optionally the description of your card and select Create |
39 | 40 |
|
40 |
| -- **Cards Role** is used internally by the Cards for Power Apps service to communicate with Dataverse. |
| 41 | + :::image type="content" source="../media/manage-cards/create-card-modal.PNG" alt-text="Screenshot of dialog to create new card."::: |
41 | 42 |
|
42 |
| -## Manage cards with DLP policies |
| 43 | +1. Create your card, save your changes, then select Back to return to your solution. |
43 | 44 |
|
44 |
| -The **Cards for Power Apps** connector is used to automatically send cards via Power Automate. [DLP policies](/power-platform/admin/wp-data-loss-prevention) enforce rules for which connectors can be used together with other connectors. |
| 45 | + :::image type="content" source="../media/manage-cards/card-designer.PNG" alt-text="Screenshot of card designer."::: |
45 | 46 |
|
46 |
| -Administrators can use DLP policies to determine which connectors can be used in flows that send cards, for example if both the MSN Weather connector and the Cards for Power Apps connector are classified as **Business**, then makers can send daily status cards with the weather. |
| 47 | +1. Your new card appears in the list of components for that solution. If you save any changes to your card, they're reflected in the version that's in the solution. |
| 48 | +1. If your card has any dependencies, such as Dataverse tables, from the commands menu, select Advanced > Add required objects. You can repeat this step anytime you add more required objects to your card. |
47 | 49 |
|
48 |
| -## Delete a card |
| 50 | + :::image type="content" source="../media/manage-cards/add-required-objects.PNG" alt-text="Screenshot of adding required objects of card."::: |
49 | 51 |
|
50 |
| -This section shows you how to delete a card. |
| 52 | +1. All required objects of your card appear in the list of components for that solution. |
51 | 53 |
|
52 |
| -### Delete a card as the owner |
| 54 | +> [!NOTE] |
| 55 | +> If you choose to manage the required objects of your card in separate solutions, you must ensure they're imported into your target environment prior to importing the solution containing your card. |
53 | 56 |
|
54 |
| -1. Sign in to Power Apps. |
55 |
| -1. Select **Cards** from the left pane. |
56 |
| -1. Select the card to be deleted. |
57 |
| -1. Select **Delete** in the command bar. |
58 | 57 |
|
59 |
| - :::image type="content" source="../media/manage-cards/delete-a-card.PNG" alt-text="Screenshot of how to delete a card."::: |
| 58 | +## Add an existing card to a solution |
60 | 59 |
|
61 |
| -### Delete a card as the administrator |
| 60 | +1. Sign in to [Power Apps](https://make.powerapps.com). |
| 61 | +1. If necessary, switch to the environment that contains the solution in which you want to create a card. |
| 62 | +1. In the left navigation bar, select Solutions. |
62 | 63 |
|
63 |
| -If the owner of an app is unavailable, it is currently not possible for an administrator, such as Global admin, Azure Active Directory Global admin, or Dynamics 365 admin to delete a card. We're working on enabling this capability. |
| 64 | + :::image type="content" source="../media/manage-cards/solution-tab.PNG" alt-text="Screenshot of solution tab."::: |
| 65 | + |
| 66 | +1. In the list of solutions, select the solution in which you want to add a card to. |
| 67 | +1. In the banner under the title bar, select Add existing > Card |
| 68 | + |
| 69 | + :::image type="content" source="../media/manage-cards/add-existing-card.PNG" alt-text="Screenshot of menu to add existing card."::: |
| 70 | + |
| 71 | +1. Select the card you want to add to your solution and select Add |
| 72 | + |
| 73 | + :::image type="content" source="../media/manage-cards/select-existing-card.PNG" alt-text="Screenshot of selecting existing card to add."::: |
| 74 | + |
| 75 | +1. Your existing card appears in the list of components for that solution along with any required tables of that card. If you save any changes to your card, they're reflected in the version that's in the solution. If you add more required tables, follow the steps in "Create a card in a solution" to add the new required objects of your card to your solution. |
| 76 | + |
| 77 | +## Add a Power Automate flow with the Cards for Power Apps connector to a solution |
| 78 | + |
| 79 | +A common way to send cards is by using a Power Automate flow. For more information, see [Send a card automatically with a flow](../send-a-card/send-card-with-flow.md). |
| 80 | + |
| 81 | +When creating a flow to send cards in a solution, it's important that in addition to the flow, you also include the cards and any tables the card requires in the solution as well. To add any cards and tables, start by creating your flow in a solution and adding actions from the Cards for Power Apps connector. Then, follow the instructions above for adding an existing card to add all the cards used in the flow. Any required tables will be automatically added. |
| 82 | + |
| 83 | +## Known Limitations |
| 84 | + |
| 85 | +### Dependencies for cards aren't displayed correctly in solution explorer |
| 86 | + |
| 87 | +When importing a solution containing a card that depends on tables not present in the same solution, the import fails if those tables aren't already present in the target environment. Similarly, removing a solution containing tables that a card depends on fails. The dependency viewer in these scenarios is not helpful at identifying which tables or cards is causing the operation to fail. |
| 88 | + |
| 89 | +Instead, to identify which cards depend on which tables when resolving dependency issues, start by opening the card designer. Next, navigate to Cards from the sidebar, select the card you're interested in, and select Edit. Once the card designer opens, select Data from the sidebar to view the tables that card depends on. |
| 90 | + |
| 91 | +### Card dependencies for flows aren't represented in solution explorer |
| 92 | + |
| 93 | +When importing a solution containing a flow that depends on cards not present in the same solution, dependencies on cards will not be enforced. The solution maker must ensure that cards used in the flow are also present in the solution or the target environment to ensure the flow works correctly in the target environment. |
0 commit comments