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

In Powerapps Listing appended comments from SharePoint list

I have a SharePoint list that is serving a HelpDesk application that i'm building on Power Apps, But I am not been able to show the data on my "Notes" column on Power Apps. The list has the version setting enabled, and the Notes column also has the Append Changes enabled, however, my Help Desk app only displays the last Note made, not all of them.

How can I display all of the data in my Note column in my app?

 

 

Thanks in Advance.

 

 

11 REPLIES 11
Nogueira1306
Super User
Super User

Use a gallery to show multplie records

 

I am assuming that Notes have many records

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

My website!

Pstork1
Most Valuable Professional
Most Valuable Professional

The way an Append Changes field works is that it saves the current changes as a new version.  But in SharePoint the field will show all the versions of that field in one place.  There is nothing built into Power Apps that duplicates that functionality.  The easiest way to display the contents of that field is to use a Power Automate flow to retrieve each version of the item and build the field and build the note from those versions.  Then return that to Power Apps for display.  Here's an article with a full walkthrough of that approach.

Display Appended Comments Version History From SharePoint List On PowerApps (c-sharpcorner.com)



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Anonymous
Not applicable

@Nogueira1306 Thanks for your help.

We are using form method.

It works like similar to comment method. when the user edits the note and submit app should display the last edited notes along with pervious notes.

In share point list we had enabled the append option to the column but still in powerapps only the last data is seen.

I need to display as below

 

 

Thanks in advance 

Okay... You can try to use "Concat" function and concat ALL notes from that item in a field... 

 

https://docs.microsoft.com/en-US/powerapps/maker/canvas-apps/functions/function-concatenate

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

My website!

How do you concat the appended notes inside a SharePoint list column?

hsfournier
Helper II
Helper II

I will share my experience, as I found it extremely difficult to find info on how to deal with this issue myself.  So if you are trying to get this to work I would recommend checking out this tutorial: https://www.agarwalritika.com/post/get-version-history-from-mlt-field-on-sharepoint-in-canvas-apps. That is finally how I got something to work. 

 

I tried to use Concat as one of the posters suggested, and was not able to get it to work. It would not Concat for the individual record, it would only Concat for the entire column, and so you saw all the comments for all the records.

 

Obviously, it was a mistake on my part to set the column to Append. So I created a new multi-line column and each time the Flow runs, I take the variable with that information and Patch it to the new column using an UpdateIf. I have replaced the field in my galleries and forms with the new column, so that going forward info is being saved into a column without Append set up. So eventually, all previous info will be largely copied over and I will do the last few and then delete that column.

@hsfournier Do you think you could help me with this, maybe give me screen shots of the automate flow.  I am getting an error and not sure where.

 

Thank you so much for any help you can provide.

You bet. Here you go. Just keep in mind in the Apply to Each the text replaced is based on the content in my Sharepoint column. Also for the Send HTTP request, I blacked out the name of the list, but tried to leave the ' ' surrounding it, but thought I would point that out in case it isn't clear in the screen shot. Hopefully, this all makes sense and solves your problem. 

 

Full Flow

hsfournier_0-1704307374609.png

First 3 Steps

hsfournier_1-1704307419712.png

Step 4 with formula

hsfournier_2-1704307539390.png

 

Step 5 with JSON

hsfournier_3-1704307624242.png

JSON code

{
    "type""object",
    "properties": {
        "d": {
            "type""object",
            "properties": {
                "results": {
                    "type""array",
                    "items": {
                        "type""object",
                        "properties": {
                            "__metadata": {
                                "type""object",
                                "properties": {
                                    "id": {
                                        "type""string"
                                    },
                                    "uri": {
                                        "type""string"
                                    },
                                    "type": {
                                        "type""string"
                                    }
                                }
                            },
                            "Abstract": {},
                            "Modified": {
                                "type""string"
                            },
                            "Editor": {
                                "type""object",
                                "properties": {
                                    "__metadata": {
                                        "type""object",
                                        "properties": {
                                            "type": {
                                                "type""string"
                                            }
                                        }
                                    },
                                    "LookupId": {
                                        "type""integer"
                                    },
                                    "LookupValue": {
                                        "type""string"
                                    },
                                    "Email": {
                                        "type""string"
                                    }
                                }
                            }
                        },
                        "required": [
                            "__metadata",
                            "Abstract",
                            "Modified",
                            "Editor"
                        ]
                    }
                }
            }
        }
    }
}
Step 6
hsfournier_4-1704307688002.png

Step 7 (expressions are below screen shot)

hsfournier_5-1704307738439.png

replace(body('Substring'),'/','')

concat('<div style="margin-bottom:5px;">',items('Apply_to_each')?['Editor']?['LookupValue'],' (<span style="color: rgb(3, 131, 135)">',formatDateTime(items('Apply_to_each')?['Modified'],'dd/mm/yyyy hh:mm:ss tt'),'</span>)',': ',outputs('Compose'),'</div>')

 

Last Step

hsfournier_6-1704307819204.png

And in the App this is the code I added to an icon to make it work

//runs flow to show all appended comments
Set(
    varResponse,
    AppendComments.Run(ThisItem.ID).response
);
//updates the abstract info to the infractions column
UpdateIf(
    'Sharepoint List Name',
    IsBlank(Infractions) && varGallSPList.ID = 'Sharepoint List Name'[@ID],
    {Infractions: varResponse}
)
 
If this works for you, maybe mark it as a solution.

Thank you so much, the automate worked with no errors.  Now do you think you could help me where to put the variables in the power app?  I have a gallery list that I would like to display all the comments in an HTML Text box on select of that gallery item.  Thank you so much for all your help, this is amazing I greatly appreciate it.  

tkshepley_3-1704312006676.png

The screen onVisible I have this.

tkshepley_0-1704311391768.png

the HTMLText box I have and I am getting an passed a blank value error.  I do not think it is picking up the id.  I have the ID set in the gallery.

tkshepley_1-1704311522103.png

tkshepley_2-1704311891625.png

 

 

 

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!      

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Community Roundup: A Look Back at Our Last 10 Tuesday Tips

As we continue to grow and learn together, it's important to reflect on the valuable insights we've shared. For today's #TuesdayTip, we're excited to take a moment to look back at the last 10 tips we've shared in case you missed any or want to revisit them. Thanks for your incredible support for this series--we're so glad it was able to help so many of you navigate your community experience!   Getting Started in the Community An overview of everything you need to know about navigating the community on one page!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Ranks and YOU Have you ever wondered how your fellow community members ascend the ranks within our community? We explain everything about ranks and how to achieve points so you can climb up in the rankings! Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Powering Up Your Community Profile Your Community User Profile is how the Community knows you--so it's essential that it works the way you need it to! From changing your username to updating contact information, this Knowledge Base Article is your best resource for powering up your profile. Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Community Blogs--A Great Place to Start There's so much you'll discover in the Community Blogs, and we hope you'll check them out today!  Community Links: ○ Power Apps ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Unlocking Community Achievements and Earning Badges Across the Communities, you'll see badges on users profile that recognize and reward their engagement and contributions. Check out some details on Community badges--and find out more in the detailed link at the end of the article! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio    Blogging in the Community Interested in blogging? Everything you need to know on writing blogs in our four communities! Get started blogging across the Power Platform communities today! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Subscriptions & Notifications We don't want you to miss a thing in the community! Read all about how to subscribe to sections of our forums and how to setup your notifications! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Getting Started with Private Messages & Macros Do you want to enhance your communication in the Community and streamline your interactions? One of the best ways to do this is to ensure you are using Private Messaging--and the ever-handy macros that are available to you as a Community member! Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Community User Groups Learn everything about being part of, starting, or leading a User Group in the Power Platform Community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Update Your Community Profile Today! Keep your community profile up to date which is essential for staying connected and engaged with the community. Community Links: ○ Power Apps  ○ Power Automate  ○ Power Pages  ○ Copilot Studio   Thank you for being an integral part of our journey.   Here's to many more Tuesday Tips as we pave the way for a brighter, more connected future! As always, watch the News & Announcements for the next set of tips, coming soon!

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Top Solution Authors
Top Kudoed Authors
Users online (3,250)