Add Attach to Note via Python

2 posts / 0 new
Last post
Nachogor
Add Attach to Note via Python

Hi guys,
I´m trying to add an attachment to a note created via Python but can´t find the correct way to trigger the "icon", "web" and tactic files as it happens when creating a note from tactic interface. If we do a simple checkin it obviously attaches it to the Sobject as a checkin. What am I missing? Thanks a lot for any help!
Nachogor

Diego
Diego's picture

Hi,
when you create your note you recieve the SObject for the new note, try to do a checkin on the returned SObject unsing "publish" as a context.
Check the class DiscussionAddNoteCmd in src/tactic/ui/widget/discussion_wdg.py for inspiration

Diego