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 Apps
Unanswered

Sending a link

(0) ShareShare
ReportReport
Posted on by 22

Hello...I have an app that submits a form to a sharepoint site and I would like to send a link to that form via an email. I am able to get the email to send but the link never comes through. Here is the code I am using...

 

Office365.SendEmail("blank@blank.com","Sending a link","This is our link: " &ThisItem.'{Link}') and the email comes through like this...

 

This is our link:

 

Any suggestions? 

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Stmorgan ,

    Could you please share a bit more about scenario?

    Where do you put your Office365.SendEMail() formula? Do you put your Office365.SendEMail() formula along with the SubmitForm() formula within the "Submit" button?

    Further, could you please share a screenshot about your app?

     

    I suppose that you put your Office365.SendEMail() formula along with the SubmitForm() formula within the "Submit" button, and want to send an email with the form link when you submit your form data, is it true?

    I assume that you use SubmitForm function to submit your form data into your SP list, please consider modify your formula as below:

    Set the OnSuccess property of the Edit form  (EditForm1) in your app to following:

    Office365.SendEmail(
    "blank@blank.com",
    "Sending a link",
    "This is our link: " & EditForm1.LastSubmit.'Link to item'
    )

    Note: The EditForm1 represents the Edit form control within your app.

     

    Best regards,

  • Stmorgan Profile Picture
    22 on at

    Hi Kris, 

     

    Thanks for the response...I have tried doing it on the form "On Success" but I don't get the option for 'link to item' only 'link. When I try to use 'link' though my email returns blank.

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

    Hi @Stmorgan ,

    Which data source do you use within your app? A SP list or a SP Library?

     

    I have made a test on my side, and don't have the issue that you mentioned. I could get the 'Link to item' property.

     

    Please consider take a try to re-create a new connection to your SP List or SP Library from your app (remove the previous connection), then connect your Edit form to the new created connection, then check if you could get the 'Link to item' property.

    EditForm1.LastSubmit.'Link to item'

     

    Best regards,

  • Stmorgan Profile Picture
    22 on at

    I am linking to a SP library. I tried deleting my data source and reconnecting it but I still do not get a "link to item" option. This is all I get...Capture1.PNG

  • Stmorgan Profile Picture
    22 on at

    I was able to go into another PowerApp I created directly from a SP list and not custom and I do have the "link to item" in that one. The only difference I see is on my other App I have 3 different verisons of the form, browse, detail and edit but on this one I only have 1 version.

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