Goal:
I want to add a subscribe button to multiple SharePoint pages to offer users the ability to be alerted when an update is made to that page. I understand I will need to build a flow as well, but first I am building the app. I would like the app to collect the users email and the page they subscribed to a SharePoint list. At some point the subscribe button would also then become an unsubscribe button.
Situation:
So far I have an app with:
1. Text Input >named>>txtPageName >> default text is >>ThisItem.PageURL
2. Text Input >named>> txtUserEmail >> default text is >>User().Email
3. Button >named>> btnSubscribe >> Action OnSelect is >>Patch('Subscription list',Defaults('Subscription list'),{Title: txtPageName.Text,'User Email': User().Email,'Subscription Date': Now()} ); Notify("You have successfully subscribed!",NotificationType.Success)
SharePoint List Columns:
Title
User Email
When I use the app from a SharePoint page the user email is populating to the list but the but the Title column returns ThisItem.PageURL.
Question:
What changes do I need to make to successfully capture the URL of the page the app is being used on?