@Janvi - Thanks for the update and for providing more context on your requirements.
I understand that manually retrieving GUIDs for each asset can be time-consuming and inefficient, so let's automate this process and make it easier for you to work with metadata.
Use search_entities
to search for the relevant assets (e.g., Parquet schema elements). This will return a list of entities, each containing a GUID that you can use to fetch additional metadata.
For each entity, use get_entity
to retrieve detailed metadata, such as the fully qualified name, classifications, sensitivity labels, glossary terms, and column descriptions.
Once the metadata is collected, export it to an Excel file for easy viewing and editing. This will allow you to update the metadata outside of Purview as needed.
After editing the metadata in the Excel file, you can create a script to read the updated file and use the update_entity
method to upload the changes back to Purview.
Once the process is working, you can schedule the script to run automatically at regular intervals (e.g., daily or weekly) using cron jobs (Linux) or Task Scheduler (Windows), ensuring that the metadata is always up to date.
I hope this information helps.
Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.