Design a Logic Apps flow in Azure that tracks SharePoint file versions. On detecting a major version change, save the file to Azure Blob Storage

  Kiến thức lập trình

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:

  1. Trigger to detect if any file is created or modified.
  2. Getting the content of the file
  3. In compose function, I have put in function to extract the major versioning of the sharepoint file as: split(triggerBody()?[‘{VersionNumber}’],’.’)[0]
  4. 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

Raman Maharjan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT