Applies To: Custom Actions and NITRO Workflows
Description
SharePoint item version history is a feature that automatically tracks changes made to documents or list items in a SharePoint document library or list. Each time an edit is made, a new version is created, allowing users to view, restore, or compare different states of an item.
Use case: URL to View Version History of an Item
Sample URL to view version history of a list item:
Configure column mappings as shown below to build above URL using expression builder:
Fixed value used in third row in above expression:
/_layouts/15/Versions.aspx?list=
Sample Use case: Send URL in email to view version history of an item.
Custom Action:
![](https://www.crowcanyon.help/wp-content/uploads/2023/11/731_2-1024x569.png)
Define Variable:
![](https://www.crowcanyon.help/wp-content/uploads/2023/11/731_3-1024x299.png)
Set Variable:
![](https://www.crowcanyon.help/wp-content/uploads/2023/11/731_4-1024x520.png)
Expression Builder:
Below configuration will be same for custom actions and NITRO workflows.
![](https://www.crowcanyon.help/wp-content/uploads/2023/11/731_5-1024x735.png)
Send Mail Action:
Configure Send Mail action to send URL to view version history of an item as shown below:
![](https://www.crowcanyon.help/wp-content/uploads/2023/11/731_6-1-1024x958.png)
Mail Template:
![](https://www.crowcanyon.help/wp-content/uploads/2023/11/731_7-1024x704.png)
Hyperlink: Configure hyperlink as shown below
![](https://www.crowcanyon.help/wp-content/uploads/2023/11/731_8.png)
Web address: %%VariableName##Value%%
Sample Output:
![](https://www.crowcanyon.help/wp-content/uploads/2023/11/731_9-1024x500.png)
Sample Version History URl of an item by clicking above link will be Like this: [Site URL] /_layouts/15/Versions.aspx?list=4c405ab4-24ed-4766-9298-4bb4a9e85a28&ID=1