Power Automate SharePoint Item Modified flow | Track Column Changes (Version History)
Вставка
- Опубліковано 20 лип 2024
- This Power Automate video is a step-by-step tutorial on how to track column changes (version history) for SharePoint by using "when an item is modified trigger" in flow. We can track to see the column changes for the modified item, leverage the send an http SharePoint action to get previous values of item based on previous version & also leverage the "Get changes for an item or file" action to get the information of which columns have changed.
The video will showcase some interesting patterns to get the "Version History". Video will have something for everyone from beginners to advanced users. Trying the CRAWL, WALK, RUN & SPRINT technique in this video.
Video covers the following:
✅ When an item is modified trigger in flow
✅ Add trigger conditions in Power Automate
✅ Get SharePoint column changes based on Version Number in flow
✅ Get previous column values using versions SharePoint REST API
✅ Create HTML data with column change information
✅ Send email notification of SharePoint column changes tracked
Helpful Links 🔗:
Learn flow expressions:
• Power Automate flow Ex...
Download flows shown in video (*only for learning purposes):
github.com/rdorrani/Microsoft...
#PowerAutomate #SharePoint #Versions #flow
Table of Contents:
00:00 - Introduction to Track SharePoint column changes in flow
00:41 - Run a flow when SharePoint item is modified
04:18 - Run flow based on trigger conditions when column is modified in SharePoint
10:00 - Track changes & Version History when SharePoint item is modified
28:30 - Send column changes information in HTML Format in Email
31:17 - Subscribe to Reza Dorrani channel
🤝 Let’s connect on social:
🔗 Reza Dorrani LinkedIn: / rezadorrani
🐦 Reza Dorrani Twitter: / rezadorrani
Best, most informative Power Autmoate video I have ever seen. I'm on a high from this. You rock my world Reza.
Thank so much
I can see a tremendous effort behind these videos. Your channel is a treasure. Well done Reza!!
Thank You so much for appreciating the efforts.
Again watched and built along. Kept rewinding to catch and understand various steps and expressions intimately. I've built up my skills greatly watching your videos. I did download the flows in the end to get the tracking bits but nothing replaces "learning by doing" when it comes to development. Thanks for all you do. Greatly appreciated.
So happy to hear the feedback and I completely agree - best way to learn is by building apps/flows step-by-step.
The amount of detail in your presentations is fantastic. I learn both, tactical details and overall understanding of how the Power universe works.
Thank You
Yet another outstanding video. Thanks Reza. Your channel is an invaluable resource for me and I'm sure thousands of others. Thank you for explaining things so clearly and concisely.
Thank You so much!
I just came across your channel and I've already seen a couple of videos that helped me a lot. Keep on doing so well Reza. Thank you very much!
Glad to hear it! Thanks for watching and liking the videos
This is perfect Reza - thank you so much for all of your hard work. I know we all really appreciate you!
Thank You so much for watching and liking the content
Excellent video! Appreciate all your efforts and passion to explain these in detail, with why, how & what. Wholesome! Thank you mate.
So nice of you. Thank You for watching.
Thank you, man, you're a star. A complete detailed tutorial for writing expressions will be very helpful!
Here is that tutorial- ua-cam.com/video/O97IdCbfMQI/v-deo.html
Really useful video, it makes me realize that many of the functionalities are possible which I earlier labeled as "not possible " or "not supported "
Glad to hear that. Possibilities are endless.
Hi Reza, some fantastic and extremely helpful videos. Really appreciate your guidance here!
I note that the process involves quite a bit of knowledge about what expressions / codes to use where - how does a user get familiar with understanding and building these expressions directly (rather than blindly copying and pasting your presented code!)
Expressions tutorial ua-cam.com/video/O97IdCbfMQI/v-deo.html
I have a new video coming tomorrow which has more new expression functions.
Great Effort Reza. Appreciate you putting so much energy in making this videos.
My pleasure!
Awesome video! ✌️😉
Your method is easier to read once setup than the default email version history sent from SP.
Glad to hear that! Thanks so much for watching.
This is quite detailed! Can’t get enough of your in depth knowledge. Your videos have truly given me job security and made all my coworkers benefit from the knowledge you provide.
I do have a question though. How would you format a multi choice column?
I do not have any video references for multi choice column. I will recommend checking on forums in case someone has done something similar
powerusers.microsoft.com
Your contents are a value addition to the power platform community, I really gained a lot of information watching all your videos and had learned quite a lot.
Thank you for sharing and keep up the good work @Reza. I truly appreciate your effort on making these amazing learning videos.
❤❤👍👍👌👌
Thank You so much for your kind words
@@RezaDorrani , I tried with one of my sample list and it worked as expected but there is only one thing if we also keep track of Person or Group field or Date field, it also takes some more values from previous version like for Person field, it takes entire custom json and for Date field it also takes time field as well.
For Person Field:
Column "Updatedby" has updated from "{"__metadata":{"type":"SP.FieldUserValue"},"LookupId":3,"LookupValue":"PreVerUserName","Email":"PreVerUser@email address"}" to "ModifiedUserName"
For Date field:
Column "UpdatedDate" has updated from "2022-08-02T07:00:00Z" to "2022-08-03"
Any thoughts on this?
@@niranjandas3295 You will need to write additional expressions for these type of columns. It does require more work.
@@RezaDorrani, I am on it. Thank you😀
Hello Reza,
Thanks a ton for this great video. This topic is untouched and very limited material is available on the internet. The approach you took in this is very fantastic of moving to simple to advance. Thanks once again for the fantastic video which I was looking for very long time. Thanks for accepting the request too for making video on this topic.
Akshay
Glad it was helpful! Thanks so much for the wonderful feedback.
This is awesome. Thanks Reza. Perfectly explained. 👍🏻
Your most welcome. Thanks so much for watching.
The best tip I ever came across for creating trigger conditions is to use the filter array action. Construct the filter (ignoring the array) switch to advanced mode and there you have exactly what you need to use as your trigger condition!
Great tip
Great tip, thanks a lot
Fantastic video ! Always learning abundance of knowledge from you 👍
Awesome, thank you!
@@RezaDorrani please make video on API Integration in Powerapps
@@saifkazi8504 On community tab of channel, there is a post about new ideas. People are voting for it there. Most voted ones will result in videos.
i could n't get the filter array to work until i watched to edit in advanced mode and get put true in single quotes. i almost skipped it :) good work reza as always..
Most welcome
I gained more insight into the power of Power Automate. Thank you Reza
👍 thank you
Thank you. Very neat and effective walk through.
Your most welcome
Brilliant Reza!!! Just Brilliant. Thank you
Most welcome
This got DEEP 😮
Would have taken me like 6 months to figure this out 😅
Great flow, love the explanations!
I believe it works only if your SharePoint names (and hence the internal field names) are simple.
It should work for any name
Excellent information. Great efforts from you to explain in-detail.
Thanks
Amazing, Thank you for your videos @Reza I learn very fast by following you.
Happy to hear that!
Thank a lot for this video Mr Dorrani, very very helpful :)
You are very welcome
Amazing videos, i love your work. Your videos have helped me alot at work 😊
Thanks
That was extremely helpful. Thank you so much.
You're very welcome!
Very nicely explained. You make it look so easy. (But this is super complicated :) )
Thanks Radhika
brilliant video, as always! really appreciate the efforts you put into these
Glad you like them!
@@RezaDorrani if your trigger condition is multiple words, what is the syntax (e.g., Just Approved)? is it full quotes? single quotes? same question for the control variable. thanks!
Single
Amazingly helpful! Full disclosure my friend... I have been using your tips in many of my current builds! Advanced questions: how to process only changed items in an excel to update only targeted sp columns 😜
Advanced question would need an advanced video :)
Let’s first see the response to this one. Start is slow.
Thanks so much for your videos. I learn a lot with you.
You are so welcome!
Thank you very much, Reza! Been watching your videos for a while now, and this one was one of the most useful videos that one could think of - music to business users’ ears 😄! Q: Would this flow be less practical if there’s another flow (for the same list) that has some UPDATE actions? I imagine that would make the user who created the flow as the Editor of that item… 🤔
Thanks again, and keep up the great work 👏🌷
Thanks so much!
Thank so much Your channel is a Gold. Well done Reza, please make note if you can do in the future, invoicing functionality so you can add multiple products and calculate total amount and quantity and saved to SharePoint Thanks.😍
I make videos when I get multiple requests on a particular topic.
Every quarter I ask subscribers for topic suggestions on the Community Tab of my UA-cam channel.
Subscribers vote for topics and the highest voted topics get added to my backlog.
Make sure you post this in the next topic suggestion post. If it gets a lot of votes, I will add it to my backlog.
Reza, you sir are a genius. This video has been super useful for me. Your method works great for single select, text fields, and booleans. That said, I’m curious if there is there a way to track changes of a multi-choice column?
Thanks Aaron!
Multi select is definitely possible. Thing is the type of data it returns would be an array. So basically you would need to compare 2 arrays. You could use the intersection expression for 2 arrays. It will give you all common values in both arrays. The count of this new array must match count of original array. If not same means the field was updated.
Hello Reza. Once again a great video and as always very well explained. I’m trying to incorporate this workflow into a PowerApps form. I currently have the workflow capturing all changes made within the form, it is publishing the changes to a 2nd list titled Audit Log - Field Names: Amended By, Change Date, Column Name, Previous Value (Text Field), New Value (Text Field) and Source ID (1st list ID). The information within this 2nd list is then presented as a table within the 1st lists PowerApps form using a tab titled Version History. Everything is working as intended except for people picker field types. For these fields, the full metadata is being pulled in (Note: One field is a multi-select field). I have parsed out the LookupValue for these field types and have taken the multi-select people pickers and converted into a string variable. But I seem to spinning my wheels trying to figure out how to merge this info back into the ‘Old Value” and “New Value” variables and publish to the full list to the Audit Log. Any guidance you can provide would be greatly appreciate. Thank you for your time.
This is not something that I have tried. And would need to recreate your scenario to know the options.
I recommend checking or posting your query on forums with screenshots in case someone has done something similar
powerusers.microsoft.com
Again an amazing solution !
Thank You
Wealth of knowledge in this one!
Thank You
well done, Great Job, you are the best!
Wow, thanks so much
Amazing as always. I found an issue with this that I thought I would share in case it helps others.
If you are modifying a SharePoint list with a PowerApps attachment control, the list item will save two versions. The first with all your changes and another with no changes.
But the flow only triggers on the second version and finds no changes to report on.
My plan to work around this is to trigger the flow on the onsuccess property of the PowerApp. I hope that works.
That probably is a bug with the attachments control. Thanks for sharing this.
What an excellent detailed instruction on column changes scenario. I learn a lot from this. Also, would it be possible to send only one email if column changes occur on multiple items ?
For that idea would be to run flow on a schedule, get items modified since last flow run, get the changes information and send it in email. I do not have a video reference on this scenario though.
Nice Video Reza as always. No compromise on quality and intent is carried clearly. One quick question, is there an equivalent REST API call for Get item changes since version no#. I understand there is an action available in Power Automate. Looking for similar functionality using REST API service to use in different system (Nintex).
If you try peek code on the flow action to get item changes, it should give the underlying rest api call info.
Interesting and very useful - thx
Most welcome
Hi Reza, Thank you for putting so much effort in making this tutorial. It really helped me in automating one of my flows. I was able to build till like @28:14. However, Could you help me in getting full tutorial for the last part where you built to track changes for specific columns only and how to get out put for previous value vs current value? Thank you!
Most welcome!
Video description has link to download sample flows shown in video for learning purposes.
Hi Reza, your videos are just amazing. Many thanks for your hard work for the community!
Could we use the same approach to track "real" changes of documents? Example: I want to only trigger a certain approval, if the content (!) of a file has been changed and want to ignore changes on the metadata.
I am not sure about content within documents. This feature only gets metadata info.
Hello, I have this exact same question, but my "solution" uses the track changes as in the above video, except the other way around.: if all of my columns have the "false" value, it means a content change has triggered the flow.
But I'm open to better solutions.
Edit: Condition has a choice option of "Has Column Changed: ", so you could use this instead
Hi Reza,
Kudos to your hard work that u have put in to make this video. Instead of sending mail with updated and old values ,Is it possible to create one item with all the details in new sharepoint list?
Possible
You are amazing! Thank you! How did you get so good at this!???
Practice
This is excellent and so helpful! Instead of sending an email, though, I want to send the column name, previous value and new value to a different sharepoint list (create a new item in that list). I've been trying to modify your flow here to that specificity, but I'm stuck.
Most welcome!
I would have to try it out to provide guidance. I recommend checking or posting your query on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Very useful video. Thank you so much.
Had one query,is it possible SharePoint trigger run only if one particular given column is modified using trigger condition option? Like we have in dataverse trigger where we can specify the column name
Currently not with the SharePoint trigger.
This is amazing tutorial Reza! There's so much information and I'm having to follow along at 0.75x speed just to keep up with you.
One thing I'm struggling to understand, why does the Filter array value change from "item" to "value". At 19:41 you can see it is "item" but at 20:54 its transformed into "value". Mine hasn't so i'm struggling to understand. Thanks
Once you save the flow and edit flow again, it transforms it into value.
Both will give same output.
Just to say Thank you!
Most welcome
Fantastic video as usual, Reza. Quick Question: How would I go about displaying Column Display Names in the email instead of the column names, which tend to look funky: File_x0020_Link vs. File Link?
You can use select data operation action and map new column names.
Thank you so much Reza, once again a great effort video and very crisp and clear explanation. I am here facing an issue within this flow. All changes i am getting on my mail with previous values, but in few columns i am just getting written as "Previous value is" and not getting the value in some columns (whose ccolumn's names are large).What to do in this case. Hope you will help.
Once again, Thanks for this Great Video :)
Most welcome!
I have not come across the mentioned issue and hence not sure what the reason for your issue is. I recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
Hello @Reza,
Thanks for the video. It is the best and my flow almost worked like a charm 🙂.
I had one problem with it but that was on SharePoint list side. I have found out if there is in original name of the column underscore "_", flow is not able put those previous values into email. Previous values in the email were always empty. I had to create new columns without underscore.
But still .. great thanks for this video 🙂.
Thanks for watching.
_ is typically related to internal name of column. Not sure how the columns were created in your case.
@@RezaDorrani
I know only one way :-). Create SHP list -> List settings -> Create column
And about the name - no special marks, punctuation and if there were two and more words in the name, I always used _ (for example name of the column is name of the city "Hradec Králové", I would name it in the beginning "hradec_kralove") but now when I found out it could be problem so I would name it without _ ("hradeckralove").
Great video Reza, thank you very much!
Are we able to do the version history in Dataverse? 🤓
Dataverse also has auditing. I don’t have a video reference on it though.
Great video, however would like to know the steps for the selecting specific fields for tracking and email in HTML table format, do you have a video for the same? i am unable to pick from the json file.. Thanks!
I dont think I do. I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Thanks Reza. I am huge fan of yours and have learned so much by just watching your videos. I have a question, is there a way we can change the status of a column by clicking on a button within the email that is sent out to notify the users, without actually going to the SharePoint list/Document library.?
Thank You so much!
Adding buttons in emails -> approval action and/or send an email with options action. Once buttons are clicked, flow can capture the response and update status automatically.
@@RezaDorrani Appreciate the quick response. So this email that is sent out, is not an approval email. I understand that 'Start and wait for an approval' action can capture the responses and comments of the approver and we can use 'Update file properties' to change the status in the library. The question is, can we do this in a separate email that is sent out to a user, who is not an approver so he can complete an action (requested in the email) and then change the status to 'Completed' from the same email without accessing the Document Library?
@@user-sr4od8xd1f Thats send an email with options action. Check documentation on that.
@@RezaDorrani When I look at the advanced options, it only shows the options to include attachments. Is there a documentation you can share with me? Please and thank you.
@@user-sr4od8xd1f ua-cam.com/video/wII54Fl-lAk/v-deo.htmlsi=kqjLNpxL4IUicqcF
Very helpfull as always Reza, its there any way to hide item properties? in order to users can modify only one colum of the item, for example, only attach a file?
Not that I am aware of. Note: SharePoint does not support column level security.
Even if you somehow manage to hide fields, a smart user can always update that data via flow or powershell etc.
Thank you Reza. I need to only run it as a trigger condition if a field value has been changed, not if a field value equals something. So I wonder how to write that trigger as an @change not an @equals?
There is no trigger for that since you would need to get the previous version of the item to know it if has changed or not
Hi Reza, thanks for the video! We used part of your tutorial to get the changes via Power Automate into a SP form modified with Power Apps. Storing a string variable that we later split in PApps into a collection, to be displayed in a gallery. Everything works great, except the Modified column. This column has a date with the hours, and then when we split the values by ":" characters to get a field name and a value, it gets trimmed and shows only 3 characters. I've been trying unsuccessfully to change the date format between the flow steps before the final string is generated. Could you give some advice? Thanks in advance! Kind regards.
I do not have a video reference on this scenario and would have to try it out to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Great stuff. thanks
My pleasure!
Hi Reza, first, I would like to thank you for doing such a great job sharing this functionality. I do have a question for you. I have not been able to import the flows with some of the additional features into my environment and I would really like to add the HTML table with the before and after fields. Could you give me some guidance on how to add this functionality?
Thanks Bob!
Im not sure why you are not able to import the flows. Might have to do with some limitations for your environment. I would recommend posting your issue with screenshots on the forums at powerusers.microsoft.com/
@@RezaDorrani thanks for the quick reply. It seems that my company may be restricting imports. Thank you though. I may have to be ok with the initial flow, which is still amazing!
Dear Reza, You nailed it again. Is there any way to capture who has modified the list columns in the tracking?
Modified By column has that information.
Bundle of thanks.
Most welcome
Thank you for all of your hard work, Reza! We appreciate your well thought out solutions.
At 29:48, I can see that previous values are in red and new values are in green. How is it possible to set the text of those values to the appropriate color?
Video description has link to download flow. You can check the logic in it.
Awesome video! How would I use this flow to send the information to a separate list that tracks changes from the 1st list instead of an email?
Thanks.
I do not have a video reference on how to send information to a separate list and would have to try it out to provide guidance. I recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Hey great tutorial. I just have one question. How do you track changes for the multiple choice column type? You have covered only single choice column type changes
Multi choice values would need to be converted to an array and then would need comparing 2 arrays.
I do not have a video reference on this scenario and would have to try it out to provide guidance. I recommend checking or posting your query on forums in case someone has done something similar powerusers.microsoft.com
Awesome Reza Thanks
Thanks Sundra
Hello Reza! This video was very helpful! Question, rather than sending an email with the versioning history, how can I add the versioning history to a separate sharepoint list? I want an overall view of the change activity in a list.
Use create item in action and save the data in other list
Hi Reza! GREAT VIDEOS and GREAT CHANNEL!!!!
Question: If I want to creat a backlog sharepoint list with all the changes instead of sending them by email?- Is it possible?
Ex: Field A / Old value / New value / who changed / date of change
Version history already has all that information. But if you would like to store it in a separate list, then that is possible.
Thanks for another great vid. Can I store this change info into another Sharpeoint List (think creating a history). Or would there be a better way to achieve this in Sharepoint? Thanks again
History is already available in versions. You could store in another list if required.
Mr. Reza, thank you for your very helpful videos. I followed your instructions step by step and I am getting the columns that have changed but the only previous value I am getting is for modified date. the other columns do not have values. Please help.
Most welcome!
I have not experienced any issues with this hence not sure.
Thanks!
Thank You
Thank you so much for this video. I have followed your video, I make 3 column changed, but my output just only recorded one column "Title". Please kindly give your advice.
Not sure why that would be the case. I recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
Good Morning! You have become my go-to for power automate videos! Thank you for all your hard work putting these together. I am running into one issue, and it may be a simple fix. I am running this process on a doc lib and when I pull the URL from the its not quite the same as yours. In your URL after IsDlg=1 there is &list=, mine stops at IsDlg=1. I am assuming this is because its a doc lib instead of a list but when I add it to the email and replace the FileName with the ID it doesn't work. Any suggestions?
Glad to hear that!
I have not tried with a document library so not sure of the exact steps. It would not be the same as list. I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
@@RezaDorrani I actually ended up figuring out. I left the URL as is but instead of removing FileName=, I kept it and just replaced the hardcoded file name with the dynamic Full Path
Great video as always Reza!!! This is awesome. I am wondering instead of emailing it, what about pushing all this changes into another SP list for logging (tracking purposes) and reporting.
Thanks!
I think you did not complete your question
@@RezaDorraniHey Reza, sorry, I was half sleep 😅 I was wondering if instead of emailing these changes, I was thinking pushing the changes info into a new SP list for tracking and reporting purposes.
@@Will-ny8yf You could try that
@@RezaDorrani Hello Reza, I was able to track the changes of an item in a separate list (4 column list: column changed, before, after, timestamp)… by following your steps I was able to only push the changes to the column changed (name of column changed), before (previous value) and timestamp… I am unable to push what the new change (current value) is into the after column. Any suggestions?
- should I initialize a new variable from the when and item is modified (get all the new values) and add it to the scope and then append it to the varValues?
@@Will-ny8yf Not sure to be honest. I would have to try this out to know more.
Awesome!
Thanks!
Thank you for the video. I learned a lot. I am trying to create a flow that sends an email only when one item is modified in a sharepoint list; however, I have several edits that needs to happen to the same list at different points. How can I structure my flow so that it only goes out when the one item I need is modified and not the other?
Look into flow trigger conditions
Hello Reza, thanks again for your great videos. I am trying to do track SHarepoint lists items changes, specifically on attachments, if there are additional files after this change. What would you recommend please to do that ? Thanks
I don’t think there is any option to track attachment changes as there is no versioning on attachments
@@RezaDorrani 👌ok thanks good to know, I will try out another way
Hi Reza, Thanks for your videos. just want to ask does this normally trigger as well even if an item is being created? it keeps triggering on my created flow.
It should not do that. However, you can always check the version number in flow and not perform any action if version is 1.0
Brilliant example, it would be good to show a modified version of this where the column changed is a people column.
Thanks!
Currently, no plans for a follow up video for this.
hi Reza, this is a great flow and really helps me troubleshooting a lot of things..... However, i have noticed that if the Person column is amended then the Previous Value is not populated in the email. Any idea why and how the flow should be changed to capture Person's column change?
I will have to look at your flow in action to provide guidance. Not sure I have tested it with person column change. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Thank you Reza Sir for this video. Lets say if we want to extract the difference of new and old values from the field and store them in a new variable. For instance, Description column (from your video) has previous values of "Building Access" and after the update it has "Building access Key needed". What if we need to show just the new changes ( Key needed) not every thing ( Building Access key needed), how we can achieve this though power automate? Thank you!!!
That would require expressions. I would have to try it out to know the steps. I recommend checking or posting your query on forums in case someone has done something similar
powerusers.microsoft.com
@@RezaDorrani Thank you. I will try the above link to see if there is any guidance available and also look into expressions as well. Thanks again!!
Hi Raza,
This looks good and can you share how to get only the lookup value out of its metadata as the entire row comes as an output for lookup column.
You would need to use expressions to get value out of json object for lookup. I don’t have a specific video reference for it.
Hi Rezza, thank you for the awsome videos. Just a small query is there any way that after we mention someone in a SharePoint list using @ symbol and you know how you get the link as an open ticket in the email and the user straight away get access to the ticket and can make changes. Can we stop them from accessing the list and make changes? Kind Regards
I do not have a video reference on @ mention scenario and would have to try it out to provide guidance. I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Hello Reza, great video. What about if I want to add the previous and current changes column to a second sharepoint list instead of an email? I saw some of the comments had my same questions and you suggested adding a create item. I did that but I’m not sure what expression or dynamic content to add on the “create item “ columns, to see the current and previous change on the 2nd sharepoint list.Thank you.
Same expressions as I used to send the details in the email.
I have no plans for a follow up video on this though hence can only guide
@@RezaDorrani thank you for replying. But the same expression does not work. Also, I tried to download the flow from the link in the description because I wanted to create the HTML table but the codes are raw input and is hard to tell which one you used to create the HTML table. Or is there another video where you show how you achieved the table? Thank you.
@@alondraespinal5115 I dont have another video.
I will recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
🤯 Thanks Reza.
Your most welcome
I love all of your videos! In fact, I'm a member of your channel. I have a question about this video.
How do you keep the flow from sending a blank email in the beginning when the user first creates something in the SharePoint list for columns that I want to track changes for? Example, I am creating a request entry and there are columns that I want to follow but I am not at the stage yet where I will need to input data. I followed the instructions to create an HTML table and send via email. The email, however, will send a blank table to that shows nothing has changed. What can I do to say if it was blank before don't show anything until something actually changes in the field??
Thank you Reza so much! You are an inspiration and you make learning this stuff easy to understand.
Most welcome!
One option I can think of would be to add conditions in flow to check if those columns you are targeting are empty.
@@RezaDorrani Hi Reza, Thanks for your videos again! I just wanted to follow up on this comment. Where would I place this condition in the original flow you created? Secondly, would the Condition be something like IF the field = 'null', do not send for that particular field? I am confused because of my lack of expertise in Power Automate, but I promise I'm trying to learn at your feet.
@@DubGee007 I did this video a long time ago and hence do not remember the specifics.
You would need to use expression null.
I will recommend checking or posting your query on forums in case someone has done something similar powerusers.microsoft.com
Hi Reza, Thanks for the clear explanation I have small issue, not getting Value in this expression "coalesce(body('Send_an_HTTP_request_to_SharePoint')?['d']?['results']?[0]?[item()],'')", should I change anything?
I cannot guess here on chat + I have not come across this issue and hence not sure what is the cause for your issue. I recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Hi Reza, thanks a lot for this, helped me a lot. A question though. I have a "Assigned to" column in my SharePoint list that allows for multiple values. In my scenario, an item can be assigned to one person - that person will receive a notification.
However, when I add a newly assigned person, an email is sent to both the originally assigned person and the new one too.
Is there any way to prevent this? I would like the email to be sent only to the newly assigned person.
Thanks a lot,
I have not come across this issue. I would recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
Very Good, 5 star, , can you please put the long experession for splitting replacing from body/column has changed
Video description has link to download the flow.
This is exactly what Im looking for. Thank you. I'm new with PA and I don't have programming experience but I was able to follow you're clear instructions. My problem though, I created the SharePoint list from excel and it created internal column names like field_2, etch and that's what shows in my email. I can't figure out how to show the actual column names! Please please help 😭
It will show the column internal names. You would have to write expressions to do column name mappings. I do not have a video reference on that though.
@@RezaDorrani Thanks for the response. 😊
Hi Reza, this was really helpful as always :) Just had a question, we are trying to track changes in multiple persons column of SharePoint. The above flow gets data from all versions but is there a way we can get only the differential data? For example, person A & B was assigned to an item. After the change, B was replaced by C. We need the flow to only capture details of C. Is this possible?
I don’t think there is an option to just get the differential data in flow. May be graph api may have something. You will need to check graph api documentation.
@@RezaDorrani Hi Reza, thanks for your reply. Found a way to store the information in an array and then compare the array to find differential.
good Video, I have a situation where we need previous version vs current version Comparision for notifying the approver.
I Have maintained email addresses in sharepoint with multiple line option and now I want to compare the previous version vs current version, how we an highlight only the changes
You would have to compare values and see if change is made. This video is the best reference I have on this topic.
Great video as always, Reza.
I'm wondering how would you deal with a document library that allows minor versions? The versions of a document can go from minor versions 0.1, 0.2, 0.3, then gets published to 1.0. Then to minor versions again 1.1, 1.2, 1.3, 1.4, and then published to 2.0. So you can't always subtract 1 or 0.1 to get the previous version.
I’m sure there is a SharePoint rest api to get all versions from where you could get the previous version number.
@@RezaDorrani Yes we can use the REST API to get that. But was just wondering how you would do it as you often have cleaver ways. :)
@@conaxlearn8566 I have not thought about it from a doc lib perspective :)
LOL Thank you so much but the last part which is the key to show specific column changes history is only for premium :)
Premium?
Great video! can I ask how I could count the times a status in sharepoint has been modified ie from pending to rework, and look at how many times the status has been changed to rework before the status is set to Complete, using powerautomate?
For that you would have to get all versions, check for changes and count. I do not have a specific video reference on this use case though.
@@RezaDorrani are you able to share a video of extracting SP item versions ie via powershell or powerautomate?
@@lavieenrose4310 I make videos when I get multiple requests on a particular topic.
Every quarter I ask subscribers for topic suggestions on the Community Tab of my UA-cam channel.
Subscribers vote for topics and the highest voted topics get added to my backlog.
Make sure you post this in the next topic suggestion post. If it gets a lot of votes, I will add it to my backlog.
Thank you Reza, I would like to ask - your trigger condition is fired when Priority column is 'critical'. So when anything else at all in that item changes, the trigger condition will fire while priority is critical. What would be the trigger condition so that it only fires when Priority is changed to critical and that it doesn't fire when anything else in that item changes? It only fires when Priority is set to critical. Much appreciated.
There is no option in trigger conditions to fire only when a particular value changes to something. It will fire when item is updated and value is critical.