I am trying to create a logic apps flow in Azure where if the file in a specific folder of sharepoint site is updated, i need to check the versioning of that file. Sepearate the major and minor version. If there is just a change in the minor version of the file, we don’t need to do anything but if the major version of the file is changed/updated we need to store the file in the azure blob storage.
enter image description here
I have created a logic app flow:
- Trigger to detect if any file is created or modified.
- Getting the content of the file
- In compose function, I have put in function to extract the major versioning of the sharepoint file as: split(triggerBody()?[‘{VersionNumber}’],’.’)[0]
- In the condition section, the 1st param is the output of the compose function.
The problem here is i need to get the previous version of the file so that I can compare the old and new version of the file from sharepoint and if a newer version is detected, store the newer version in azure blob storage.
New contributor