-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I use excel template to bulk load experts/owners with info for entities? #257
Comments
Hi, @KellyG123 ! Thank you for using PyApacheAtlas! I need to do a better job of linking to my docs! You can use the built in ms-graph functionality of PyApacheAtlas to convert email addresses to the right structure in the Atlas payload. Ultimately, your spreadsheet would look like:
And your entities = reader.parse_bulk_entities(
'path/to/spreadsheet.xlsx',
contacts_func = client.msgraph.email_to_id
) You can learn more about the msgraph features on the docs |
Thanks Will. Uploading expert and owners is straightforward. But if I want to upload info (business areas or departments, etc.) for expert and owner, how should prepare the template? Thanks. |
@KellyG123 - I am so sorry for the massive delay here. Currently, I don't support adding to the info field. You could do that post the parse_* method with an additional file / lookup table. If I were to support it, how would you want to represent it in Excel? For other fields, I've had to introduce a sort of pseudo-JSON like |
Thanks Will! We can upload Expert/Steward with info for glossary term like attached excel via Purview UI. It would be great if we can prepare Owner/Expert with info for technical assets/entities in excel similarly. |
…by adding a `:` delimiter between email and info. This is similar to how Microsoft Purview suppports info in the import of terms. Addresses #257
@KellyG123 thank you so much for sharing that sample! It was extremely helpful and I am implementing it in that way for the next release! |
…by adding a `:` delimiter between email and info. This is similar to how Microsoft Purview suppports info in the import of terms. Addresses #257
@KellyG123 Thank you for your extreme patience. I just published a new release and it is now available on PyPi with the fix. With time off for the holidays I was finally able to get this out. Thank you for your continued use of PyApacheAtlas! |
The excel bulk load template works great. I can use "BulkEntities" spreadsheet and below code to upload experts/owners for entities. Does it support to upload experts/owners with info? If yes, could you share the example format of experts/owners with info (format) in excel template? Thanks a lot!
entities = reader.parse_bulk_entities(file_path,contacts_func = client.msgraph.email_to_id)
results = client.upload_entities(entities)
The text was updated successfully, but these errors were encountered: