aline.lima 11 Report post Posted July 29, 2014 Hello, There's a way that I can create a new note with a attached file (image or video) using API? Thank you,Aline Lima Share this post Link to post Share on other sites
Carl Claesson 13 Report post Posted July 30, 2014 Hi Aline, You can attach files to notes from the API by doing:entity = # Get an entity from ftrack. Eg. task, shot, project.note = entity.createNote('note text')note.createAttachment('path/to/file', fileName='attachment.png')Let me know if that helps. Regards,Carl Share this post Link to post Share on other sites
aline.lima 11 Report post Posted July 30, 2014 Yes, that is it! Thank you,Aline Lima Share this post Link to post Share on other sites
vitek 0 Report post Posted July 4, 2018 Hi there! How can I achieve the same thing with the new API, please? Thanks in advance! Vit Share this post Link to post Share on other sites
Mattias Lagergren 145 Report post Posted July 6, 2018 There is an article here on how to attach file to a note in the ftrack-python-api: http://ftrack-python-api.rtd.ftrack.com/en/stable/example/note.html#attachments 2 Remus Avram and vitek reacted to this Share this post Link to post Share on other sites
vitek 0 Report post Posted July 13, 2018 On 7/6/2018 at 10:26 AM, Mattias Lagergren said: There is an article here on how to attach file to a note in the ftrack-python-api: http://ftrack-python-api.rtd.ftrack.com/en/stable/example/note.html#attachments Thank you, it worked! Share this post Link to post Share on other sites
vitek 0 Report post Posted July 19, 2018 Thanks! Works like a charm! Share this post Link to post Share on other sites