tddate
The date of the service to cancel
tcWO_Type
The work order type to use for the created work order
tcLevel
The work order level to use for the created work order
tcComment
If this is passed in then a work order comment is created with the type specified
by the parameter tcComm_Type
tcComm_Type
The comment type to use when creating additional comment
Be careful to set the units correctly on the contract as they are the units
that will be carried to the work order
o.CancelScheduledService("OC234234",{07/07/2003},"S","1","Cancelled by ITRDS","G")
The above would;
1. Create a work order of type "S" and level "1" on the account that contract "OC234234" belongs, for the 07/07/2003
2. Place the comment "Cancelled by ITRDS" in a work order comment of type "G"
4. The run number would be whatever is setup on the contract
5. All Charges, Comments and Content setup on the contract will be passed to the work order