2

I have gone through the following references - Refernce 1 Refernce 2

Those are perfect for the Version History Title and VersionLabel, Created By. But I need to get the only columns which are updated in the Version 1, 2 and so on. That is I need to get the only updated columns as per version, not all the columns in the version.

I did the following code to print those as-

Write-Host "$($version.VersionLabel), $($item.id), $($version['Title']), $($version['Category1']), $($version['Reason2']), $($version['Code2']), $($version['Assignedto12']), $($version['Contact13']), $($version['Borrower14']), $($version['Branch16']), $($version['DueDate12']), $($version['EmployeeError19'])"

So how can I get the only updated column values, instead of getting all the columns values.

1 Answer 1

1

In order to get only the values which have changed from previous version, you need to keep track of previous version and compare the field values in current version.

4
  • Do you mean it will take lot of time to perform the export or to write the code? I am not aware of any other alternative. Dec 21, 2016 at 6:10
  • No, I mean while importing to the list. It'll take a lot off time to compare with the previous version, So is there anything else to achive this?
    – Ram
    Dec 21, 2016 at 6:12
  • If you look at documentation of SPListItemVersion, you will not find anything which will help in accomplishing that, unless I am missing something. msdn.microsoft.com/en-us/library/… Dec 21, 2016 at 6:19
  • OK, How to get the Peopele Field & the Multiline Field in a single cells of Excell File?
    – Ram
    Dec 21, 2016 at 6:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.