'How to identify and replace box ids with sharepoint ids

Recently we have migrated all our data from BOX to MS SharePoint. For some reason, we are storing BOX Ids (folder id & file id) in our database. Now after migration, we have to update BOX ids with SharePoint Ids. What is the easiest way to get folder ids and file ids from SharePoint, to replace BOX ids with respective SharePoint Ids?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source