Hi,
We have an issue whith agreements auto generating work orders from agreement booking dates. Many times, the "generate work orders with X days in advance" date is left behind and work order does not get generated.
Also, even if this would have been working properly, sometimes we need work orders to be generated under other conditions not related to the standard dates and fields.
When using the buttom "Generate work order" on the agreement booking date, it always work perfectly even in the agreement booking dates that does not properly auto generate the work order.
So, we thought our best solution is run via plugin the system workflow: Field Service - Generate Work Order for Agreement Booking Date with the agreement booking date guid parameter. So far, we haven't be able to run this WF on demand via plugin.
- What parameters or inputs, or in general which is needed to run this workflow on demand?
- We see this WF is set to run as a secundary process, so there is another thing should we invoque before this workflow?
- Also, since it all works fine when using the button manually from the agreement booking date, another solution seems to be recreate directly the actions this button executes, but so far we haven't been able to know what this button does. We only know at the end the generate work order from agreement booking date workflow runs, but don't know the intermediate steps or parameters for calling the workflow from the button.
Any of this solutions or another ones for generating under demand work orders from agreement booking dates will be really apreciated!