This may seem like a very basic question but I am really struggling with it. In my app I need to have a contact link that sends an email to a specific person.
I have it working using a label with the Launch feature in the OnSelect and everything 'hard coded' into the App.
I really need to be able to bring this Name/Email address in from an outside source so the Power App doesn't have to be modified if the person changes. I am not using a SharePoint Person field for this. For whatever reason, I can't seem to figure out the best way to accomplish this.
Solved! Go to Solution.
After much reading of various articles and trying different things, I have solved my issue.
My source list has a single column that contains the email address of the contact person.
I set the OnVisible property of the screen to set a variable with the contact information from my list.
OnVisible = Set(varContact, DataSource)
Then I have a TextInput field with the items value set to:
Items = First(varContact).Title
In order to send the email using the users default mail client I am using the Launch function for the OnSelect value.
OnSelect = Launch("mailto:" & TextInputContactInfo)
Hi @JR-BejeweledOne ,
Follow the below steps to achieve your needs:
Office365.SendEmail("Test3@xxxxxx.xxmicrosoft.com","Send email from PowerApps","Item: "&Concat(ComboBox1.SelectedItems,First_x0020_name&" "))
I hope this resolved your issue if you see any challenge let me know I am always happy to help.
Regards,
Krishna
If this post helps, then please consider Accept it as the solution and give thumbs-up to help the other members find it more.
Proud to be a Super User!
Regards,I am not sure I understand what you are saying. I have a SharePoint list that contains a number of different data options for my app. I filter them based on a DataType column.
One of the entries is the Name and email address (Title and description column) of the person I need to show in the Send email link.
I am not getting this information from the Office 365 users connection, I already have it in my data source list.
Hi @JR-BejeweledOne ,
Ok, I have implemented this below prototype, and let me know if that is not what you want no worries I will change up to your needs.
Follow the steps to achieve this at you:
Office365Outlook.SendEmail(Email,Title & "Button Click","This is a sample email from Power Apps")
Let me know if this doesn't work I can show you the working model since it is too large in size I am not able to attach it here.
I hope this resolved your issue if you see any challenge let me know I am always happy to help.
Regards,
Krishna
If this post helps, then please consider Accept it as the solution and give thumbs-up to help the other members find it more.
Proud to be a Super User!
Regards,Thank you but this isn't what I am looking for. If we ever need to change the contact person or add additional contact people we would need to edit the app which is what I am trying to avoid.
After much reading of various articles and trying different things, I have solved my issue.
My source list has a single column that contains the email address of the contact person.
I set the OnVisible property of the screen to set a variable with the contact information from my list.
OnVisible = Set(varContact, DataSource)
Then I have a TextInput field with the items value set to:
Items = First(varContact).Title
In order to send the email using the users default mail client I am using the Launch function for the OnSelect value.
OnSelect = Launch("mailto:" & TextInputContactInfo)
User | Count |
---|---|
206 | |
94 | |
87 | |
47 | |
43 |
User | Count |
---|---|
252 | |
104 | |
103 | |
61 | |
57 |