I have a simple powerapp that has a button. This button is connected to a flow that when pressed triggers a notification to pop up for any user that has powerapps on their phone and is logged in under a specific user. This very same button also completes a SUBMITFORM function.
How can I take values from the SUBMITFORM and pass them as parameters in the string of my notification message? Instead of the message simply being "A new ticket has been created.".... I would like it to say "(Name field) has created a new (priority status) ticket" where the parenthesis are my parameters passed from the recently submitted form.
Everything I have tried has messed this up so any help is apprecaited. I attached an image of my very basic flow.
Use the Ask in PowerApps trigger in Flow, instead of the one you are currently using. It will allow you to pass parameters into your flow to do exactly what you want to do.
Then when you invoke the flow in powerApps you will say <MyFlowName>.Run(<parm1>, <parm2>) and the values associated with those parameters will be sent along with the request to run the flow. They will show up in the flow as Dynamic Content under the Ask in PowerApps section.
This post has additional information... https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/using-logic-flows
Okay I will try this now.
Do you know if there is a way to send a follow-up notification if the status of the row is not updated within 24 hours.
The app is actually Microsoft's "Service Desk" template and the data is stored in a excel online file (onedrive). Not sure if you have any experience with this or not.
I do not have specific knowledge of that template app. You could build a flow that runs daily (or more frequently if needed) that reads the excel file and finds rows with a specific status (open or active perhaps?) and then compares two dates (not sure exactly which dates you would need to compare) to find any records where the requisite update did not occur within 24 hours and sends an email.
Tip: For testing just use a manual trigger to start this flow so you can kick it off easily while testing. Then when it is working right, delete the manual trigger and replace it with a schedule trigger to run it at a specific time.
Regarding the first inquiry and initial question, I was able to figure most of it out. Here is what my flow looks like (see attached image).
Here is the code: PowerAppsbutton_1.Run(Value1.Text & " created a ticket with the subject " & "'" & Value7.Text & "'", Dropdown1_1);SubmitForm(NewTicketForm)
Now the issue is that I can not seem to get the value for the Dropdown1_1. I can select text boxes just fine and pass them through, but it will not let me pass the selected value of the dropdown1_1 through to the notification. I tried using .Text to ensure it was a string, but red squigglies pop up.
Please follow the screenshot and comments below:
Actually, the trigger you were using is the right one. (That's what I get for answering from memory instead of having a live example in front of me.)
Reference the image below. This shows using the Ask in PowerApps to establish the parameters I am passing. I put my cursor into the field I want to include a parameter in and then click Ask in PowerApps in the Dynamic Content window. This will automatically add the right linkage to accept a parm from the PowerApp.
Note: after you select one, you may not initially see Ask in PowerApps when you go to the do a second one -- if not, click on See More next to PowerApps in the Dynamic Content window and it will show up for you to select.
I have showed two different ways you can use the parameters. You can capture into a variable for use throughout your app or you can use directly into something like an email. I believe the order they appear in the flow list (here sendmeanemailnotification_Body, then setvariable_Value) should be the order you need to specify them in the PowerApps run statement, but you can easily test that if the wrong value comes up in the wrong place.
Check out the News & Announcements to learn more.
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.