cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UnitedLexAdmin
Level: Powered On

Static email address in collection for email screen

I'm using the OFTB email screen and want to be able to hard code an email address in the MyPeople collection. The values in this collection are used for recipents of the email. 

 

Example:

 

Every time an email is sent using this screen I want INFO@INFO.com to be included in the To line.

1 ACCEPTED SOLUTION

Accepted Solutions
FoDelement
Level 8

Re: Static email address in collection for email screen

@UnitedLexAdmin 

Eidt the code of the "send email" icon.

      Set(_emailRecipientString, Concat(MyPeople, Mail & ";"));           
Office365.SendEmail(_emailRecipientString & "INFO@INFO.com", TextEmailSubject1.Text, TextEmailMessage1.Text, {Importance:"Normal"});           
Reset(TextEmailSubject1);           
Reset(TextEmailMessage1);           
Clear(MyPeople)

View solution in original post

6 REPLIES 6
PavanKumar
Level 8

Re: Static email address in collection for email screen

Hi,

You can add necessary email address column to the collection as follows: Collect(Collection_1,AddColumns(Sharepoint_List,"NewColumn_1",info@gmail.com));

 

and use it to send email as required.

 

Please mark it as verified if it answers your question

Regards,

Pavan Kumar Garlapati

FoDelement
Level 8

Re: Static email address in collection for email screen

@UnitedLexAdmin 

Eidt the code of the "send email" icon.

      Set(_emailRecipientString, Concat(MyPeople, Mail & ";"));           
Office365.SendEmail(_emailRecipientString & "INFO@INFO.com", TextEmailSubject1.Text, TextEmailMessage1.Text, {Importance:"Normal"});           
Reset(TextEmailSubject1);           
Reset(TextEmailMessage1);           
Clear(MyPeople)

View solution in original post

UnitedLexAdmin
Level: Powered On

Re: Static email address in collection for email screen

@FoDelement Thanks for the reply! This is perfect, but is there anyway to have the email address show in the EmailPeopleGallery as well so it doesn't confuse my users?

FoDelement
Level 8

Re: Static email address in collection for email screen

That being a lookup column, it may be better to just add a label and put "Info@info.com will also be emailed" or something like that. 

 

https://snipboard.io/V7bULE.jpg

UnitedLexAdmin
Level: Powered On

Re: Static email address in collection for email screen

@FoDelement Correct me if I'm wrong, but the PeopleBrowseGallery is the lookup and the EmailPeopleGallery list all the people in the MyPeople collection. Is there a way to have a default value in the MyPeople gallery without having to add to the collection manually?

UnitedLexAdmin
Level: Powered On

Re: Static email address in collection for email screen

@FoDelement Figured it out. Added the address to the collection from the OnVisible property of the screen. Thanks for the help!

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (5,240)