Update all items in SharePoint list Flow
Coming from a Dynamics CRM/ Dataverse background and having written plugins and later flows using Common Data Service (Current Environment) connector, I was a little lost looking at the SharePoint trigger for When a list item is added or modified.
With the CDS (CE) connector, when you use the When an item is created, updated, deleted trigger,
Using the Column filter, we could provide the list of fields/columns that if modified should the flow execute further. If none of the specified fields in the column filter were modified when this trigger was invoked, it would not execute the flow.
This is really helpful when we would like to perform an operation only if that field was updated. Say, send an email notification when a ticket is assigned to a user. We need to identify if the update was triggered because of the change in user and only then send out the email notification.
Similarly, when using SharePoint Lists as a data source, had a similar request. It was therefore required to identify if the user column had been modified in the item when the update was invoked.
There is an existing flow template available to do this.
However, this one too has the step to identify if the user field was modified missing.
When you add the SharePoint trigger;
We do not see a column filter where we can provide the list of columns that we are tracking.
To do the same in SharePoint, we need to perform the following action:
And set the following properties:
Set the SharePoint Site and List and provide the list item id for which the changes need to be tracked.
Since should be set to the version # since when you would like to compare for changes. You could either enter a date or a version #. If you want to compare it with the original record the first time it was created set it to 1. If you would like to check for the columns that changed in this update since the last update, you need to set it to the last version # of the record.
Luckily for us, we get the version # of the current update in the trigger body.
Note: VersionNumber is not made available as a Dynamic value that we can use as it is, therefore to get the previous version number we can set Since to the following expression
sub(int(triggerOutputs()?[body/{VersionNumber}]),1)
Ref: Sub function
With this included, the result of this action can now be referenced in the following steps:
Note: For Version # to be returned, you should first enable versioning on your SharePoint List.
1) Navigate to your list -> Choose the Settings gear icon at the top -> choose List Settings.
2) Here choose Versioning settings.
3) Set Item Version History to true.
With this in place, though it requires a couple of additional steps, but we are able to implement the same feature as in the CDS (CE) connector and make sure to avoid unnecessary flow step executions.
Note: The flow would be triggered, i.e. it would count towards flow run even if the user was not modified or set.
Now if you wanted to make sure that the item has a value set for the user in the first place since we need to send an email to the user, so we need to track the users data and it was changed since the last update.
The change since the last update or column filter was implemented above.
To incorporate the Row/Record level filter, make use of the Trigger Condition available in the settings of the trigger.
Note: With Trigger Conditions added, if the trigger condition does not evaluate to True, the flow will not even trigger i.e. it wont even count towards your flow runs.
Hope this helps with tracking specific column updates to SharePoint List Items.
Video liên quan
Bài đăng phổ biến
- 
Như chúng ta cũng biết, chiếc điện thoại từ lâu đã trở thành một vật bất ly thân trong đời sống xã hội ngày nay. Để tiện cho công việc cũng ...
 - 
These tips are divided into IELTS listening exam specific skills / tips and then general English language listening skills. A lot of student...
 - 
Nồi chiên không dầu 7L Sharp Thái Lan 1800w chiên nguyên con gà Giá bán : 2.650.000 khuyến mại còn 1.400.000 tại Hệ thống Điện Máy Đăng Khoa...
 - 
Chắc hẳn các chủ shop bán hàng online đều đã từng dùng qua dịch vụ giao hàng của Viettel post và Bưu điện (VNpost), bởi lẽ đây là 2 hãng vậ...
 - 
Ngày bé chúng ta vẫn băn khoăn không biết tháng 1 có bao nhiêu ngày, tháng 2 có bao nhiêu ngày, sao mà phức tạp thế, lúc thì 30 lúc thì 31...
 - 
Lấy sỉ Bánh tráng Tây Ninh ở đâu ? Vừa đảm bảo được chất lượng đúng chuẩn, giá cả hợp lý, cùng chúng tôi tìm hiểu thông qua những chia sẻ củ...
 - 
Dán bàn phím laptop đẹp Dán bàn phím laptop đẹp phải đáp ứng được những yêu cầu nào trong thời đại công nghệ 4.0? Hãy khám phá 1 bộ dán...
 - 
Tài liệu Cách tạo trò chơi Trúc xanh đơn giản có mã là 407948, file định dạng rar, có 8 trang, dung lượng file 3,316 kb. Tài liệu thuộc chu...
 - 
Công Thức Chế Tạo Đồ Trong Minecraft 1.16.4 Các công thức chế tạo đồ cơ bản Items Nguyên liệu Cách chế tạo Công dụng GỗThân gỗ Xây dựng nhà ...
 - 
Việc bật đèn Flash trên iPhone thông báo có cuộc gọi, tin nhắn gửi về thiết bị, và nếu như bạn là người thường xuyê...
 
Danh sách Blog của Tôi
Labels
- Android
 - Apple
 - Bài tập
 - Bàn phím
 - Bánh
 - Bao lâu
 - Bao nhiêu
 - Bí quyết
 - Cách
 - Chia sẻ
 - Chuột
 - Có nên
 - Công Nghệ
 - Công thức
 - Cpu
 - Cryto
 - Danh sách
 - Dịch
 - Đại học
 - Đánh giá
 - Đẹp
 - Eth
 - File
 - Film
 - Gái
 - Game
 - Giá
 - Giá bán
 - Giá rẻ
 - Giới Tính
 - Gpu
 - Gym
 - Học
 - Học Tốt
 - Hỏi Đáp
 - Hướng dẫn
 - Ios
 - Ipad
 - Iphone
 - Khoa Học
 - Khỏe
 - Khỏe Đẹp
 - Kinh nghiệm
 - Là gì
 - Làm sao
 - Laptop
 - Lg
 - List
 - Macbook
 - Màn hình
 - Máy
 - Máy tính
 - Mẹo
 - Mẹo Hay
 - Món
 - Món Ngon
 - Mua Sắm
 - Nấu
 - Ngân hà
 - Nghĩa là gì
 - Nghiên cứu
 - Ngoại ngữ
 - Ngôn ngữ
 - Nhà
 - Ở đâu
 - Phát minh
 - Phân tích
 - Phim
 - Phụ nữ
 - Phương pháp
 - Phương trình
 - Review
 - Sách
 - Samsung
 - Sáng kiến
 - So sánh
 - Son
 - Tại sao
 - Thể dục
 - Thế nào
 - Thị trường
 - Thịt
 - Thuốc
 - Tiếng anh
 - Tiếng hàn
 - Tiếng trung
 - Top
 - Top List
 - Tốt nhất
 - Trade
 - Trai
 - Trái đất
 - Trò chơi
 - Trường lớp
 - Váy
 - Vì sao
 - Xây
 - Xây Đựng
 
0 nhận xét: