Attachments and Ontology Forms

I have made a form with ontology and need attachments uploaded. I want to do extraction from the form being uploaded by the user and for that need the attachments media reference. But all Im getting is the RID of the attachments. How can I get that

https://www.palantir.com/docs/foundry/forms/attachments-field#attachments-field

this link says you can set destination folder-but unfortunately I am not getting the option.

Hello!

I’d love to ask a few follow up questions to clarify the set up! Are you using Foundry forms (as linked in those docs) or are you using an Ontology Action (with the form UI)?

And then to check, are you using the Attachment property type or the Media Reference property type?

And finally, what extraction are you hoping to do?

If you’re hoping to extract text from the media being uploaded, then we would strongly recommend using the Media Reference property as you can then easily extract text from the media using Pipeline Builder, Python Transforms, TypeScript Functions or AIP Logic.

Best,
Isy

Hi Isy! Thanks for responding!

We are using Ontology Action and I tried using both Media Reference and Attachment(media reference however expects a text input of the ID when I make a form selecting that option; attachment gives us only RIDs under its column)

And yes I want to do entity extraction from the pdf and like you said want the media reference property but for some reason its giving me the above challenge and I do not have the destination folder option coming.

Please guide me on how must I set the ontology if I want to make such a form that allows me to take both string inputs and documents (attachment/media reference) which I could later do entity extraction from.

Best,
Siddharth

Have you created an Object type with a media reference property first? Make sure that the media reference type is selected for the property!

Once you’ve done that, you should be able to create an Action type with a media reference parameter. That will allow you to display a file picker within the form.

1 Like

Thanks Isy, was able to get it done!

1 Like