hi
does Webhooks works with files attached to the doctype ?
@ahmadRagheb it seems to be yes,please look at this:
@rmehta Sorry forgot to mention the same here.
'File': {
'on_trash': ['library_management.folder_scriptss.check_doc_status'],
'autoname': ['library_management.folder_scriptss.check_doc_status']
}
on_trash will be called before any document get removed/deleted.
autoname will be called before File Doctype names any document (before saving it into the database)
So, in this case if you hook the File Doctype with these triggers then these triggers will always be called before the event …
@Mohammed_Redha
@ahmadRagheb
Actually, I used this functionality but it seems to be failed as it actually removes the document and raises the error message.
Regards
Ruchin Sharma