Hi Ashish,
On Dec 17, 2014, at 9:10 AM, [email protected] wrote:
> - totalAmount = dispatcher.runSync("getInvoiceRunningTotal",
> [invoiceIds: invoiceIds, organizationPartyId: organizationPartyId, userLogin:
> userLogin]);
> + totalAmount = runService('getInvoiceRunningTotal', [invoiceIds:
> invoiceIds, organizationPartyId: organizationPartyId, userLogin: userLogin]);
the new runService method can automatically populate the userLogin field so, if
you want to simply call the service as the logged in user, you can simply write:
totalAmount = runService('getInvoiceRunningTotal', [invoiceIds: invoiceIds,
organizationPartyId: organizationPartyId]);
Regards,
Jacopo