I’m trying to make a function I can call from AIP logic, to create an attachment that stores information from two properties from an object input. I want to use this attachment in the PDF viewer in workshop
I am unsure how to “use” a specific object that I’ve made in ontology manager in code. I created a code repository but its not able to import my Object.
I tried to create an ontology SDK but I’m really not trying to create a whole application, just a single function logic I can use to display something in workshop.
It might be worth checking out the getting started documentation for typescript or python ontology functions. Also check out the getting started documentation for writing functions on objects.
With these you should be able to create an attachment as follows:
You should be able to create an ontology edit function that takes a single object as an input and attaches the attachemnt to the object.
You can then create a function backed action that is backed by this ontology edit function.