Hi,
I would like to call a custom JS function when clicking on Export Word template flyout button from a record.
I would like to call the function before exporting the doc, in order to do calculation just before document generation.
My idea is too call a JS function on the sequence action behind the Export Word flyout ribbon button.
Thanks to RibbonWorkbench, I found that the commadcore is responsible for the populate of the flyout :Mscrm.Form.WordTemplate.Populate.Flyout but I cannot customize this command in order to add my JS function...
Do you have any idea how to achieve this ?
Or another way to do my need, just keep in mind that I need to do this calculation just before the exportation (so I cannot do it on OnLoad, ...)
Thx !
Joe