Power Apps for Image Resizing and Tagging: Configuration Options

Configure Power Apps for Automatic Image Resizing and Tagging within Dynamics 365 Finance

Question

You develop a Power Apps app that allows users to upload images.

The app automatically resizes images and adds metadata tags to uploaded images.

The app must automatically tag images of checks within Dynamics 365 Finance.

You must enable access to the Power App from Finance and pass a variable to indicate context to the app.

Pop-up blockers are enabled on all user devices.

You need to configure the app.

What are two possible ways to achieve the goal? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

AD.

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/fin-ops/get-started/embed-power-apps?toc=/dynamics365/commerce/toc.json

To enable access to the Power App from Dynamics 365 Finance and pass a variable to indicate context to the app, there are two possible ways to achieve the goal:

Option A: Add the app by using the Power Apps button on the standard Action pane

  • This option involves adding the app to the Dynamics 365 Finance Action pane, which is a common location for users to access actions related to a form or page.
  • To add the app, navigate to the desired form or page in Dynamics 365 Finance and click the "Customize" button. From the customization page, click "Form options" and then "Navigation". From the navigation page, select the desired group in the Action pane, and click "Add a button". In the "Add a button" dialog, select "Power Apps" as the button type, and select the desired Power App. You can also specify the variable to pass to the app in the "Data" field.
  • This option does not involve any JavaScript code and does not require opening a new window, so pop-up blockers should not be an issue.

Option B: Use JavaScript to open a modeless dialog. Pass the context with a querystring value.

  • This option involves using JavaScript to open a new window containing the Power App. A modeless dialog is preferred because it allows users to continue using Dynamics 365 Finance while the app is open in another window.
  • To implement this option, you can create a button or hyperlink on a form or page in Dynamics 365 Finance. When the user clicks the button or hyperlink, the JavaScript code can be executed to open the app in a new window and pass the necessary context as a querystring parameter. For example:
javascript
var url = "https://web.powerapps.com/apps/{app-id}?context=" + encodeURIComponent(context); window.open(url, "app-window", "width=800,height=600");
  • This option requires JavaScript code and opening a new window, so pop-up blockers should be considered.

Option C: Use JavaScript to open a new modal dialog. Pass the context with a querystring value.

  • This option is similar to option B, but instead of opening a modeless dialog, it opens a modal dialog, which blocks user interaction with Dynamics 365 Finance until the dialog is closed.
  • To implement this option, you can use similar JavaScript code as option B, but instead of using window.open, you can use Xrm.Navigation.openAlertDialog to open a modal dialog. For example:
css
var url = "https://web.powerapps.com/apps/{app-id}?context=" + encodeURIComponent(context); var alertOptions = { height: 600, width: 800 }; Xrm.Navigation.openAlertDialog({ text: "<iframe src='" + url + "' width='100%' height='100%' frameborder='0'></iframe>" }, alertOptions);
  • This option also requires JavaScript code and opening a new window, so pop-up blockers should be considered.

Option D: Embed the app on a page as a FastTab.

  • This option involves embedding the Power App directly on a page in Dynamics 365 Finance, as a FastTab section. This allows users to interact with the app directly within the context of Dynamics 365 Finance.
  • To implement this option, you can create a new FastTab section on a form or page in Dynamics 365 Finance and set the type to "IFrame". You can then specify the URL of the Power App in the "URL" field, and optionally specify the variable to pass to the app in the "Data" field.
  • This option does not involve any JavaScript code and does not require opening a new window, so pop-up blockers should not be an issue.

Option E: Create a Power Automate flow that sends an email with