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 / Send an email with a h...
Power Apps
Answered

Send an email with a hyperlink to browsescreen

(0) ShareShare
ReportReport
Posted on by 78

Hello community,

 

please help me. I've attempted to recreate a deep linking reference: https://powerapps.microsoft.com/en-us/blog/powerapps-deep-linking/,   in order to provide a direct link to the forms on a email notification. However, I am getting errors on the powerapps formula -for the formula used on the home screen: "Name isn't valid. This identifier is recognized" and error "Invalid use of '.' on the NewScreen.

 

So i've followed the article to replicate this URL link on an email and created a timer on the home screen. 

 

set the property of OnTimerEnd: If(Not(IsBlank(Param("machineId"))),Navigate(NewScreen,ScreenTransition.Cover,{devices:LookUp(Machines, MachineID = Value(Param("machineId")))}))

 

On the newscreen, OnSelect of the Submitton Button: Office365Outlook.SendEmail("email here", "Test", "https://web.powerapps.com/apps/c1944cc6-1a04-4d73-bf24-564e70cc279e?machineId=" & Devices.MachineID)

 

Timer button home screen.pngSubmit Button new screen.png

 

Categories:
  • WarrenBelz Profile Picture
    156,967 Most Valuable Professional on at

    Hi @mthiru ,
    I do a bit of both deep linking and generated links (but not timer stuff), so I will have a go at helping you. Firstly, this bit

    Office365Outlook.SendEmail(
     "email here", 
     "Test", 
     "https://web.powerapps.com/apps/c1944cc6-1a04-4d73-bf24-564e70cc279e?machineId=" & 
     Devices.MachineID
    )

    seems valid as far as the syntax goes -so your reference to Devices.MachineID

     If(
     Not(
     IsBlank(Param("machineId"))
     ),
     Navigate(
     NewScreen,
     ScreenTransition.Cover,
     {
     devices:
     LookUp(
     Machines, 
     MachineID = Value(Param("machineId"))
     )
     }
     )
    )

    I parsed it all so it made better sense to me and what you appear to be wanting to do is pass a value from a Lookup on the parameter passed (which is text) referencing another value in a table. You are also opening a screen passing some parameters.
    Without looking too far into all of this, may I suggest we explore the following:
    Set a Global Variable with the incoming parameter

    If(
     !isBlank(
     Param(machineId)
     ),
     Set(
     vMachID, 
     LookUp(
     Machines, 
     MachineID = Value(Param("machineId"))
     )
     )
    )
     

    then send this to the email (I have added a masked link for better presentation)

    Office365Outlook.SendEmail(
     "email here", 
     "Test", 
     "<a href='" & 
     "https://web.powerapps.com/apps/c1944cc6-1a04-4d73-bf24-564e70cc279e?machineId=" & 
     vMachID & "'>Link Here</a>"
    )

    I would appreciate your thoughts.

     

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @mthiru ,

    Do you want to send an email to a specific user when you submit a new record through the Edit form successfully?

    Do you add a "Machines" data source within your app? Could you please share a bit more about data source used in your app?

     

    Based on the formula that you mentioned, I think there is something wrong with it. I assume that you want to send an email along with the App URL to a specific user when you submit a new record through the Edit form successfully, is it true?

     

    I have made a test on my side, please consider take a try with the following workaround:

    Set the OnStart property of the App to following:

    Set(UserIDValue, Param("userID"));
    If(
     !IsBlank(UserIDValue),
     Navigate(NewScreen,ScreenTransition.Cover);EditForm(NewForm1)
    )

     

    Within the Edit screen, add a Edit form, set the Item property of the Edit form to following:

    If(
     !IsBlank(UserIDValue),
     LookUp('User Data Source', UserId = UserIDValue)
    )

    Set the OnSelect property of the "Submit" button to following:

    SubmitForm(NewForm1)
    

    Set the OnSuccess property of the Edit form to following:

    Office365Outlook.SendEmail(
     "email here", 
     "Test", 
     "https://web.powerapps.com/apps/c1944cc6-1a04-4d73-bf24-564e70cc279e?userID=" & NewForm1.LastSubmit.UserId
    )

    Note: I assume that there is a "UserId" column in your Users data source, which could identify one record in your data source uniquely.

     

    Please check and see if the following thread would help in your scenario:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Editing-a-record-from-a-flow-powerapp/m-p/265416

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Embedded-link-to-a-Sharepoint-List-item-in-PowerApp/m-p/303910

     

    Best regards,

  • Kathomsen Profile Picture
    35 on at

    Thank you! This was the simple solution I needed.

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard