Hi,
I am trying to figure out the custom function for the automation rule trigged when an invoice is created.
The custom function should create a record (Operation) in the custom module Operations with the Operation Name = Subject (from the Invoices module) and Quantity for this Op = Quantity for the main product/the first in the list (from the Invoices module).
I wrote something like this, but it doesn't work:
| void CreateOperationForOrder ( string invoiceID ) |
Also, whether the rule executed on create Invoice with criteria: Subject is ${SalesOrders.Subject} OK?
| Subject | is | ${SalesOrders.Subject} |
Please help,
Thank you