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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard