web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Powerapps Notification...
Power Apps
Unanswered

Powerapps Notification Customization

(0) ShareShare
ReportReport
Posted on by 12

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.

 

 

Untitled.png
Categories:
I have the same question (0)
  • LRVinNC Profile Picture
    2,297 on at

    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

  • black_magic101 Profile Picture
    12 on at

    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.

  • black_magic101 Profile Picture
    12 on at

    I seem to be confused.  Do I add "Ask in Powerapps" into the message box or the parameters box in flow?  

  • LRVinNC Profile Picture
    2,297 on at

    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.

     

     

  • black_magic101 Profile Picture
    12 on at

    Makes sense...

     

    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.

    Untitled.png
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @black_magic101 

     

    Please follow the screenshot and comments below: 

     

    For initiating a Flow on submit of a form through a powerapps, please modify the OnSuccess attribute of the form.
    Expression. 'PowerAppsbutton-2'.Run(Text(DataCardValue3.Text),Text(DataCardValue4.Selected.Value));Back()MicrosoftTeams-image (49).png

     

    Flow:
    Here we have created two variable to accept value from the powerapps and then setting it up on the push notification.MicrosoftTeams-image (48).png

     

    Note: Please make sure that you have two different variable defined in the flow.
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • LRVinNC Profile Picture
    2,297 on at

    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.2d.png

     

     

  • LRVinNC Profile Picture
    2,297 on at

    Try Dropdown1_1.Selected.Value.

  • black_magic101 Profile Picture
    12 on at

    See attached image.

     

    I am still getting red squiggly's under my dropdown selection.  I am fairly certain that creating the variables is unnecessary.  The issue lies within the dropdown1_1 value?

    Untitled.png
  • black_magic101 Profile Picture
    12 on at

    I've tried all combinations I could think of.  Not working =[

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard