Hi,
I have the following requirement:
I have customized buttons in place that put all selected Invoice Line Details (Project Operations) to NonChargeable.
I have a Javascript for this.
The button works fine, but the Parent Invoice needs to be Recalculated (for the Totals in entity "Invoice Line").
So, what I basically need to do, is calling the WebResource "msdyn_SI.RecalculateInvoice" from the Invoice Header,
with Parameter PrimaryControl/FormContext of the Parent Invoice.
How can I manage to get the Invoice.FormContext starting from the Invoice Line details?
All I find is deprecated (XRM.Page) or does not work.
any ideas?