You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: powerapps-docs/maker/canvas-apps/how-to/pdf-function.md
+12-13Lines changed: 12 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ In the following example, we use the PDF function in the `OnSelect` property of
46
46
47
47
In this example, we're targeting the screen `SubmitInspectionScreen` to generate a PDF file from the contents of our sample app's Inspection screen. Replace it with the name of a screen in your app.
48
48
49
-
:::image type="content" source="media/pdf/print-pdf-enter-formula-2.png" alt-text="Screenshot of adding the PDF function to a button's OnSelect property.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
49
+
:::image type="content" source="media/pdf/print-pdf-enter-formula-2.png" alt-text="Screenshot of adding the PDF function to a button's OnSelect property.":::
50
50
51
51
1. Select [**Save and publish**](../power-apps-studio.md#save).
52
52
@@ -64,13 +64,13 @@ You can use the generated PDF file in many ways. Here are a few, using the examp
64
64
65
65
1. In the button's `OnSelect` property, enter the following formula, replacing `SubmitInspectionScreen` with the name of a screen in your app: `Set(myPDF, PDF(SubmitInspectionScreen));`
66
66
67
-
:::image type="content" source="media/pdf/print-pdf-button-prop-3.png" alt-text="Screenshot of setting the OnSelect property of a button in a canvas app.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
67
+
:::image type="content" source="media/pdf/print-pdf-button-prop-3.png" alt-text="Screenshot of setting the OnSelect property of a button in a canvas app.":::
1. From the [properties list](../power-apps-studio.md#3--properties-list), select the **Document** property and then enter **myPDF** in the formula bar.
72
72
73
-
:::image type="content" source="media/pdf/print-pdf-document-prop-4.png" alt-text="Screenshot of setting the Document property of a button in a canvas app.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
73
+
:::image type="content" source="media/pdf/print-pdf-document-prop-4.png" alt-text="Screenshot of setting the Document property of a button in a canvas app.":::
74
74
75
75
1. Select [**Save and publish**](../power-apps-studio.md#save).
76
76
@@ -122,29 +122,28 @@ In this example, we generate a PDF file and pass it to a Power Automate flow tha
122
122
123
123
1. To delete the default PowerApps trigger, select the trigger menu (**…**), and then select **Delete**.
124
124
125
-
:::image type="content" source="media/pdf/print-pdf-delete-flow-8.png" alt-text="Screenshot of deleting the default PowerApps trigger in the Power Automate flow.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
125
+
:::image type="content" source="media/pdf/print-pdf-delete-flow-8.png" alt-text="Screenshot of deleting the default PowerApps trigger in the Power Automate flow.":::
126
126
127
127
1. Search for and select **PowerApps (V2)**.
128
128
129
-
:::image type="content" source="media/pdf/print-pdf-select-trigger-9.png" alt-text="Screenshot of selecting the PowerApps (V2) trigger.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
129
+
:::image type="content" source="media/pdf/print-pdf-select-trigger-9.png" alt-text="Screenshot of selecting the PowerApps (V2) trigger.":::
130
130
131
131
1. Select the **PowerApps V2** trigger to expand the node, and then select **Add an input**.
132
132
133
-
:::image type="content" source="media/pdf/print-pdf-add-input-10.png" alt-text="Screenshot of adding an input to the PowerApps (V2) trigger node.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
133
+
:::image type="content" source="media/pdf/print-pdf-add-input-10.png" alt-text="Screenshot of adding an input to the PowerApps (V2) trigger node.":::
134
134
135
135
1. Select **File** as the type of user input.
136
136
137
137
1. Select **Add an input** again, and then select **Text** as the type of user input.
138
138
139
139
1. Rename the input **File Name** and change the description to **Please enter the name of the file**.
140
140
141
-
:::image type="content" source="media/pdf/print-pdf-add-input-12.png" alt-text="Screenshot of two user inputs in the PowerApps (V2) trigger node.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
142
-
141
+
:::image type="content" source="media/pdf/print-pdf-add-input-12.png" alt-text="Screenshot of two user inputs in the PowerApps (V2) trigger node.":::
143
142
#### Add the SharePoint connector to the flow
144
143
145
144
1. Select **New step** to add an action. Search for **SharePoint** and select **Create file**.
146
145
147
-
:::image type="content" source="media/pdf/print-pdf-create-file-13.png" alt-text="Screenshot of adding the SharePoint Create file connector to the flow.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
146
+
:::image type="content" source="media/pdf/print-pdf-create-file-13.png" alt-text="Screenshot of adding the SharePoint Create file connector to the flow.":::
148
147
149
148
1. In **Site Address**, select a SharePoint site that you have permission to add files to.
150
149
@@ -154,13 +153,13 @@ In this example, we generate a PDF file and pass it to a Power Automate flow tha
154
153
155
154
1. Select the **File Content** input, and then select **File Content** in the list.
156
155
157
-
:::image type="content" source="media/pdf/print-pdf-create-file-14.png" alt-text="Screenshot of selecting a file to save using the SharePoint Create file connector.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
158
-
156
+
:::image type="content" source="media/pdf/print-pdf-create-file-14.png" alt-text="Screenshot of selecting a file to save using the SharePoint Create file connector.":::
157
+
159
158
1. Select **Save**, and then select the **x** in the upper-right corner to close the Power Automate window.
160
159
161
160
1. The Power Automate pane refreshes, and the new PowerApps (V2) flow, **Create file**, appears in the list.
162
161
163
-
:::image type="content" source="media/pdf/print-pdf-flow-created-16.png" alt-text="Screenshot of the flow in the Power Automate list.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
162
+
:::image type="content" source="media/pdf/print-pdf-flow-created-16.png" alt-text="Screenshot of the flow in the Power Automate list.":::
164
163
165
164
#### Add the flow to a button in your app
166
165
@@ -178,7 +177,7 @@ In this example, we generate a PDF file and pass it to a Power Automate flow tha
178
177
);
179
178
```
180
179
181
-
:::image type="content" source="media/pdf/print-pdf-save-17.png" alt-text="Screenshot of the flow added to a button's OnSelect property.":::<!-- EDITOR'S NOTE: Please crop the screenshot IAW the new [screenshot guidelines](/bacx/screenshots-for-bap?branch=main).-->
180
+
:::image type="content" source="media/pdf/print-pdf-save-17.png" alt-text="Screenshot of the flow added to a button's OnSelect property.":::
182
181
183
182
1. Select [**Save and publish**](../power-apps-studio.md#save).
0 commit comments