How to check the Modified By value of a file

Hi!

I’m working on a project that needs to check the Modified By/Last Saved By value of a file. Do we have any activity or workaround to make this happen?

Thank you!

@_pjflo

New FileInfo("FilePath").LastWriteTime will give you the required value. use in assign It would give in date format

cheers

Hi, I’m looking for the the last person who edited/saved the file.

@_pjflo

Is that a shared folder ?

Cheers

It’s actually a SharePoint library synced to my machine through OneDrive. I’ve tried the solution on that link but it’s not giving the Last Saved By value of the file.

@_pjflo

Then do you have office 365 access? If so we need to go that toute as fileinfo will give only local file details…as its one deice synced we have to connect to one deive or share point…

Cheers

How can this be done? I’d like to give it a shot.

@_pjflo

You can use this activity

With integration services - https://docs.uipath.com/activities/other/latest/user-guide/use-drive-card

Use this if you have azure app configured - https://docs.uipath.com/activities/other/latest/user-guide/microsoft-office-365-scope

Then use find files to get the file you need …from there we can get the file properties we need

Driveitem.LastModifiedBy.User.DisplayName

Cheers