Monthly Car Loan Payment Estimator for Power Apps and Power Automate | Exam PL-400 | Microsoft

Azure Function for Estimating Monthly Car Loan Payments

Question

You create an Azure Function that estimates monthly car loan payments.

It takes three parameters: total loan amount, loan term (in months), and interest rate.

You want to use this estimator in the Power Apps and Power Automate.

What should you do?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: B

Power Platform provides 300+ connectors.

If you need to communicate with services that Microsoft doesn't have on its list of connectors, you can create your custom connector.

A custom connector is an API wrapper around your REST API.

You can create such a wrapper for Azure Functions, Azure Web Apps, Azure API apps.

When you create your application using one of these services, before you can export your application's APIs, you need to describe the API's operations by creating API definitions.

Power Apps or Power Automate portals provide a wizard-type interface for creating a custom connector (Number 1)

You need to input the connector name, select the security, and set the authentication type for your custom connector.

There are four types of API authentication you can choose from (Number 2)

Then you provide the API definition.

After the custom connector's successful test, you push the "Create connector" button (Number 3)

And you can use your new custom connector in Power Apps, Power Automate, and Azure Logic Apps.

Environment

Power Apps | Test Studio (Preview) - Northwind Orders (Canvas) & (Coen)

sb Move down Hl Insert step above |“ Bi Insert step below | \ Iii] Delete Save E} Publish [> Play © Copy play link
= | Tests x 3 2
Suite 2
Result steps applied EA View
oe New suite Enter a suite description
Ek Test
Ess Case
Suite Enter a case description
Case —
Order Step Screen Action Play status
Oo 1. Set 'ComboBox1'Selecteditems to Table({'n... yb: Screen1 SetProperty('ComboBox1'.SelectedItems, Table({'nwind_productsi... :
2 Select ‘ComboBox1" Ny Move down ee comnaba y -

8 insert step above >) Assert

3. Set 'TextInputt ‘Text to "24" Input1'.Text, "24") -

Insert step below | >} SetProperty

4 Select ‘icon! Ti] Delete Select

Trace

5. Enter a step description 6

Options A, C, and D are incorrect because you don't need to create a Dataverse plug-in, Web API, or PCF component to connect to the external application.

You need to create a custom connector.

For more information about Custom connectors, please visit the below URLs:

To use the Azure Function that estimates monthly car loan payments in Power Apps and Power Automate, you should create a Custom connector.

A Custom connector allows you to create a connection between Power Apps, Power Automate, and an external service or API, in this case, the Azure Function. The connector provides a standardized way to interact with the Azure Function, and it can be used by both Power Apps and Power Automate to invoke the function and pass the required parameters.

Here are the steps to create a Custom connector:

  1. In Power Apps or Power Automate, go to the Custom connectors page and click on the "New custom connector" button.

  2. Enter a name and a description for the connector, and then specify the connector's endpoint URL. In this case, the endpoint URL should be the URL of the Azure Function that you created to estimate car loan payments.

  3. Define the connector's actions. An action is a specific operation that can be performed by the connector, such as invoking the Azure Function to estimate monthly car loan payments. For each action, you need to specify the HTTP method (GET, POST, etc.), the request URL (which includes any required query parameters), and the request headers.

  4. Define the action's parameters. In this case, the parameters are the total loan amount, loan term, and interest rate. You need to specify the data type for each parameter, as well as any validation rules or default values.

  5. Test the connector by using it in Power Apps or Power Automate. You can create a new flow or app that uses the connector to invoke the Azure Function and estimate car loan payments based on the specified parameters.

Overall, using a Custom connector to integrate an Azure Function into Power Apps and Power Automate is a straightforward process that allows you to leverage the full power of these platforms to build custom business applications and workflows.