cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Adding information from Sharepoint list to textbox

Hi,

 

I am trying to create an E-Mail template that gets information from powerapp or Sharepoint list that also changes according to dates.

I am trying to get this information in the powerapp or from the sharepoint list as the powerapp gets this information from the list as well.

Sandkastnrocker_0-1632419186270.png

The information with date and title comes from "Wochenplan" to "E-Mail"

Sandkastnrocker_1-1632419225696.png

and it should be added in either Textinput or Richtext or HTML. It should grab the information and add the date in one area (XXXX) and the titel in the other (XXXXX). 

Sandkastnrocker_2-1632419287629.png

Also it should know if I click the Mail button on either of the three topics which title to grab and which date as it is different each week and for each topic.

Sandkastnrocker_3-1632419583836.png

I dont even know if it is possible to include information like that but I am afraid it seems to be really complicated at least for a beginner like me.

 

If you have any ideas it would be highly appreciated. Thank you

 

1 ACCEPTED SOLUTION

Accepted Solutions
BCLS776
Super User
Super User

I made a demonstration app to show how I would set it up:

Animation.gif

 I suggest putting only:

Select(Parent);
Navigate('E-mail');

In your button to change screens, and then referencing the Selected item from the gallery after that.

 

I don't quite understand your need for 3 mail buttons - are there three different kinds of emails you want to send?

 

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

View solution in original post

13 REPLIES 13
BCLS776
Super User
Super User

To give you an exact answer, we need to know more about the columns in your Sharepoint list and how you would use a date to choose the right record.

 

Chances are, you will use the LookUp() function to find a record in your list that matches the given criteria. Example:

// put this in the Text property of a label and adjust your column/list names to fit

LookUp(mySPList, ID = 1, Title)

// This looks for the first record in mySPList with an ID = 1, and then returns the value in the Title column for that record

// ID = 1 could be replaced by ID = Label1.Text to reference a control instead

If you can tell us more info about your situation, we can help you build a LookUp that suits your case.

 

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.
Anonymous
Not applicable

Hi,

 

I use a Sharepoint list with a column "Date and Time" with standard formatting.

Sandkastnrocker_0-1632471417418.png

In Powerapps Date/Time is a Textbox which uses: 

ThisItem.Startzeit

 

The Gallery with the date/time has this information in Items:

SortByColumns(
Filter(Ausbildungsplan;Startzeit>=Today()&& Startzeit<=DateAdd(Today();42))
;"Startzeit")

 

I changed the Textbox to "Textinput1" as it loads a lot faster than Richtext and you dont need any fancy writing options. Most of the time you will just send the Mail as it is, preferably already with the Date/Time information so you dont have to type it in yourself.

 

The Mail button has the following information:

Notify("E-Mail wurde verschickt";NotificationType.Success;3000) &
Office365Outlook.SendEmailV2("ausbildung@feuerwehr-langenselbold.de";"Ich möchte ein Ausbildungsthema übernehmen";TextInput1) &
Navigate(Wochenplan)

Sandkastnrocker_1-1632471848868.png

I hope I included all necessary information.

BCLS776
Super User
Super User

OK, it sounds to me like you want to populate the text box with a default message, which can be edited and then used to send as the body of the email message, right?

 

If so, try some code like this in the Default property of the text box:

LookUp(Ausbildungsplan;
    Startzeit <= Now()&& Endzeit >= Now(); // This is the matching condition
    'HT_Titel' // This is the column to find the return value
);;

Let us know how that works for you,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.
Anonymous
Not applicable

Thank you Bryan.

 

So far it works with the current date which is great. Unfortunately that seems to be only the start and my description of what I am trying to do doesnt seem to be good enough so I aplogize and will try once more to try to describe what I am trying to do. So dont worry if it might be too complicated or I am not able to fully describe what I need so you can help out. If it is so, than I will just go with the first idea of mine and let the user fill in the data.

So what am I trying to do:

I have a training schedule for one day each week with three different topics each week. My App always shows the next 42 days so usually 6 weeks and 6 different training plans.

There are some weeks and topics displayed without a trainer. I am trying to give the users the opportunity to click on a Mail symbol for a topic that is missing the trainer and send an E-Mail that they want to be the trainer for that day. So the topic and the date is always different, sometimes there are one, two or three topics without trainer for the same date. 

 

I was trying to find a solution on how the app knows that If you click on topic, for example "Zug-/Objektübung extern" with date "12.10.2021" that it automatically ads this topic name and the date and not any other week or topic. Or you click on the mail symbol in "Modul 1" with the topic name "TH-VU LKW" It should grab that topic name and the date "28.09.2021" and not maybe "12.10.2021"

How do I let the powerapp know that If I click on a mail that it picks the corresponding date and topic?

 

To show what I have. It is a vertical gallery with three topics that is linked with the Sahrepoint list and always displays the next 42day/6weeks in the list "Ausbildungsplan" and copies all the information from there into the fields.

Sandkastnrocker_2-1632497438442.png

My solution so far is that I just added a mail symbol that navigates to a new screen and added the textinput and mail confirmation button but of course that is the same symbol for every topic in a week even though its three different topics.

 

So maybe I was able to clarify a bit better what I am trying to do. It is always really hard for me to describe what I am trying to do especially in a foreign language.

Anonymous
Not applicable

Just to add: I was able to create the textbox exactly how I want it to look like with the information through lookup. That is already a big step.

 

"Ich möchte gerne die Ausbildung für das Thema: " & Char(10) &
LookUp(Ausbildungsplan;Startzeit>=Today()&& Endzeit>=Now();'HT Titel'.Value & Char(10) &
"am " & Char(10) &
Startzeit) & Char(10) &
"übernehmen."

 

Sandkastnrocker_0-1632499165728.png

 

I "just" need a solution that it knows for what date and topic the trainer want to do and not just the next one.

 

My understanding of German is non-existent, so you're way ahead of me 🙂

 

Anyways, it looks like you are using a gallery, so there is more functionality we can use to help you out. A very handy reference is Selected, which refers to the record currently selected in the gallery. For example, GalleryName.Selected.Startzeit will bring up the associated start date for the currently selected record. Your button only needs to have the OnSelect code of Select(Parent) and then your email template fields will have references  ,such as GalleryName.Selected.Startzeit, in them. Try referencing one of your columns using this in the Default property of that email text box to demonstrate this functionality.

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.
Anonymous
Not applicable

Uh I am all giddy right now because I feel I am close to the solution. The selected works and gets the dates right so I am very hyped about that.

I have changed the 3 mailbuttons to

 

Gallery3.Selected.'HT Titel'.Value&
Gallery3.Selected.Startzeit&
Navigate('E-Mail')

 

Gallery3.Selected.'M1 Titel'.Value&
Gallery3.Selected.Startzeit&
Navigate('E-Mail')

 

Gallery3.Selected.'M2 Titel'.Value&
Gallery3.Selected.Startzeit&
Navigate('E-Mail')

 

So Powerapps should know that I need both items.

How do I make it so that it knows If I click the button in "Modul 1" that it should display the "Modul 1" and not the others. I think it works with "If" but I am not quite sure yet how it should be like so I dont get errors.

BCLS776
Super User
Super User

I made a demonstration app to show how I would set it up:

Animation.gif

 I suggest putting only:

Select(Parent);
Navigate('E-mail');

In your button to change screens, and then referencing the Selected item from the gallery after that.

 

I don't quite understand your need for 3 mail buttons - are there three different kinds of emails you want to send?

 

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.
Anonymous
Not applicable

I only want to send one E-Mail with the same purpose.

I have three topics that get their information from three different columns in Sharepoint so they all have different Names.

Column 1 = HT Titel = your Session 1

Column 2 = M1 Titel = your Sesson 2

Column 3 = M2 Titel = your session 3

 

How does the textbox know you clicked Session 2 and 3 if it only says "Gallery.Selected.Session and not

Gallery.Selected.Session1

Gallery.Selected.Session2

Gallery.Selected.Session3

 

I feel like I am missing the rest of the Default text

 

All three topics are in one Gallery box? . Is it the same in your example? I dont know.

 

Actually I dont know what I am thinking overall. I though when I volunteered to do that it might be quick an easy. I never worked with any kind of programming language and started with that app maybe 2-3 weeks ago from scratch. It is for our volunteer fire department so I am not even paid to bother others. Its all babysteps and I am just so happy that you took your time to help out and go mad trying to understand what I am doing or not doing.

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (924)