Is there some example code somewhere on how to set metadata programmatically?
I'm slowly trying to write an app that can automatically extract bits of metadata, and I want it to populate metadata values based on this. My idea is to automatically add company names to invoices by trying to extract IBANs from the text content of the document. The reason that I want to piggy-back on metadata is that I also want the user to be able to override/manually set this data in case automated extraction fails, so metadata seemed like a viable candidate. If there are better options, feel free to educate me!
Programmatically set metadata values
Re: Programmatically set metadata values
There's an example in
https://github.com/m42e/mayan-automatic-metadata
The API documentation is under System > Tools
https://github.com/m42e/mayan-automatic-metadata
The API documentation is under System > Tools