Thursday, December 12, 2024

SharePoint List Event Handler: The second-best reason you should use Power Automate

The regular reader might imagine I hate Power Automate w/ a fury of a thousand suns.  You would be wrong.  I hate Dataverse to that degree.  However, Power Automate has actual value.  It is just terrible at delivering it unless you are very careful.

Regardless, the second most value you can get out of Power Automate (here's the first) is to use it as a lightweight event handler for SharePoint.  In fact, it is very good at this and works very reliably.  If you have a list where you want to have "something" happen when a specific value changes to "something else", then this will walk you through it

Tuesday, November 19, 2024

Formatting HTML for PDF Documents Generated in Power Automate

Microsoft has a pre-release out which adds the PDF Print function in PowerApps to allow you to print containers.  It is handy in certain scenarios, but I believe in most situations where you need to generate documents for official policies and procedures, it is worthwhile to print/retain the source documents used to create them using any function that translates what you see into what somebody else sees.

Therefore, I believe in most situations where we are creating documents alongside official processes (HR, Legal, etc.), creating and storing the original HTML is essential instead of relying on a tool we have zero control over to serve as our record of what was created.

So this covers the older method of generating PDF documents from HTML using Power Automate.

Sunday, November 17, 2024

What does one of my own apps look like?

This is more of an sharing of "what goes on under the hood" kind of a configuration of what most of my applications look like by default.  

This is by no means the ONLY WAY to do applications, it is just a jumpstart for anyone who is just really getting into how to deploy applications in 2024/2025 and avoid most of Microsoft's dropped balls and extra licensing costs.

2027 me is going to laugh so hard at this.  Assuming some recently elected moron doesn't blow the world up before then.

Monday, October 28, 2024

Distinct() on multiple columns

Distinct() is a handy function for finding unique values within a Collection.  However, it can only do this on a single column.  That limits the value unless you start to get creative on your lists.

Combining multiple columns into a single string that you can later Split() (if needed) can allow you to do a multi-column Distinct fairly easily and use the results readily as well.

Friday, June 14, 2024

Pull Comments From SharePoint List Items Into a Field

This is a blatant copy from Ellis's excellent post here.  He really did a great job of laying this out and documenting a Power Automate flow in a way that can be readily copied/applied.  The only issue being that the new Power Automate experience of course doesn't quite treat JSON blobs the same and you need to do a minor adjustment.

However, it is worth understanding how to get some of the additional details out of a SharePoint list (like Version History) and to include it in a way that can be exported/archived as items age out of a process.  

Tuesday, February 13, 2024

Searchable, Sortable, Filterable Items property for Datatables and Galleries

People don't generally ask me this question, but I do wind up rolling my eyes a bit when I see how others have solved for the problem of having a multi-item control (Data Table, Gallery, etc.) and they want to include the ability to search, filter, and sort within it.  

This isn't so much a problem that others won't figure out on their own, just that I think it isn't obvious how to do it in a reasonably consistent manner that you can use almost everywhere.  So I've included a walkthrough below to make it easier to get started.