Power Apps - SharePoint Record Log
Learn Power Apps - how to

Power Apps - SharePoint Record Log

When building Apps sooner or later a request is to keep a log of the changes made to a record. Of course, SharePoint has audit capabilities, but they are complex to set up and will introduce challenges on how to get these logs into Power Apps to be able to show your users. With Power Apps, we often create small process-driven apps and in these projects, we do not have the time to figure out how this works.

This made me think of a log system that could be easy to incorporate into my apps, without the need to be a SharePoint developer. And quest what? I Succeeded.

In an earlier blog, I showed you an alternative approach on how to deal with data from a third-party source, and here I used a CSV formatted string as a container for my data. I use the same approach for creating my log.

First I add a multiline column to my SharePoint list called is_log, here my log will live. Then I add this field to my Form in PowerApps and apply some relatively simple formulas to update the log. Then I hide this data card for my users. How to implement this I explain in the first video:

Learn Power Apps | SharePoint Log Changes - Part 1

Then in the second video, I add an HTML text control which I use to show my users the log in a nicely formatted table. Now you might think 'HTML that's not something for me', but trust me it is super simple to add the code for this and I show you how simple it is to find, just copy-paste ??.

Now comes the more complex part of the video, turning the CSV formatted text into rows inside of my table. Here we use formulas like Concat(), Split(), ForAll(), With(), Last() and FirstN(). A complicated formula really, but when you learn how Power Apps works not all too hard to put together. In the video we build the formula step by step, starting with just a string, so trust me this will fly. The second video you can find here:

Learn Power Apps | SharePoint Log Changes - Part 2

Hope you like this approach in adding a log to a record, please let me know what you think?

If you have comments or idea for further blogs.....

要查看或添加评论,请登录

Paul Kroon的更多文章

  • Power Apps - Row numbers

    Power Apps - Row numbers

    Last week Shane Young posted a new video on YouTube and part of this video was dealing with row numbers. There is no…

  • Power Apps & SharePoint | How to deal with >5K lists

    Power Apps & SharePoint | How to deal with >5K lists

    Sometimes we need to work with large lists in Power Apps like Products or Customers. And when we work on mobile we…

  • Power Apps - import data from a third system (alternative Approach)

    Power Apps - import data from a third system (alternative Approach)

    When we create Power Apps we often need to use data that is stored in other data sources like Oracle, Sap and SQL…

  • Power Apps - Canvas App - Design Your Apps

    Power Apps - Canvas App - Design Your Apps

    Often Power Apps are not quite attractive when it comes to design. They are hooky, looking like old-fashion Windows…

  • Learn Power Apps - Refresh Your Galleries

    Learn Power Apps - Refresh Your Galleries

    Recently Shane Young posted a video on why you shouldn't use Refresh() Formula to update your galleries in your Apps…

  • Power Apps - Outlook Reporting Tool

    Power Apps - Outlook Reporting Tool

    Last week I was scrolling a bit on LinkedIn when I ran into a post of @ Hanneke Vogels. Her goal was to find a…

    3 条评论

社区洞察

其他会员也浏览了