Introduced in QPR 7.5.1
Creates a new action. Note that actions created with this command are not connected to any parent element by default.
Actions.Create(ActionType, Header, Description, Parameters, out ActionId)
ActionType: String | Integer. Either the name or identifier of an action type. The valid types are as follows:
•Comment = 1
•Lesson = 2
•Action Plan = 3
•Document = 4
•Embedded attachment = 6 (note: cannot be created as a standalone action, but needs to be connected to a parent action)
•Linked attachment = 7 (note: cannot be created as a standalone action, but needs to be connected to a parent action)
•Risk = 14
•Strategy Item = 15
•<name of a customized action type> = <DatabaseId defined for the action type in actiontypes.ini>
Header: String. Header of the action.
Description: String. Description of the action.
Parameters: No supported parameters yet. Use an empty string here.
out ActionId: Variant for storing the id of the new action created with this function call.
At least modify rights to QPR Portal.
Below are listed the return values that this function can return:
iRet = PGApplication.Actions.Create(3, "New action plan", "Created by a QPR Script", "", iId)