Programmatically set metadata values

Technical aspects, customization, code samples.
Post Reply
michelw
Posts: 4
Joined: Mon Jun 01, 2020 9:34 am

Programmatically set metadata values

Post by michelw »

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!

User avatar
oohlaf
Posts: 3
Joined: Tue Jul 07, 2020 9:03 am

Re: Programmatically set metadata values

Post by oohlaf »

There's an example in
https://github.com/m42e/mayan-automatic-metadata
The API documentation is under System > Tools

Post Reply