We have about 20,000 PDF files uploaded to an unstructured dataset in Foundry that I would like to connect to an 'attachment' type field in an object. Is there a way to programmatically add an attachment field in a python transform dataset that would then be the backing dataset for an object? The only documentation I can find on attachment fields is to attach files manually through action forms and functions. I would like to use the attachment type in order to leverage UI features that come along with this field in action logs and Workshop. There seems to be a few API endpoints to upload attachments in Python, so we might need to build a utility to do this, but would like to know if there is a friendlier way.
You can use MediaSets.
High-level steps: