Introduced in QPR 7.5.1
Last changed in QPR 2012
Set value to an action's property.
Actions.SetProperty(ActionId, PropertyName, Value)
ActionId: Integer. ID of the action for which the property value is set.
PropertyName: String. Name of the property for which a value is set. One of the following properties (note that the actual selection of available properties depends on the type of the action):
•Header | Name: String.
•PublishType | PublishTypeName: Integer | String. Defines the users for who the action is published. 0 = action's creator, 1 = parent element users, 2 = selected users, 3 = all.
•PublishForUsers: Integer | String. Either an integer array or a comma-separated list of user IDs for who the action is published. This is valid only if PublishType is 2.
•CreatedDate: DateTime | String.
•Creator.Id: Integer. Sets the creator by user ID.
•Creator.LoginName: String. Sets the creator by login name.
•Owner: Integer | Array of integer.
•AssignedTo: Integer | Array of integer.
•ApprovedBy: Integer | Array of integer.
•Progress: Integer | Float.
•IdentifiedBy: Integer | Array of integer.
•NameOfTheEmbeddedFile: String. Note that this property is empty for default action types as attachments are in fact child actions for the action they are attached to. In order to query attachments, use ActionTypes=EMBEDDEDATTACHMENT in the Actions.Find call.
•MIMETypeOfTheEmbeddedFile: String. Note that this property is empty for default action types as attachments are in fact child actions for the action they are attached to. In order to query attachments, use ActionTypes=EMBEDDEDATTACHMENT in the Actions.Find call.
NOTE: The listing above assumes that the default actiontypes.ini is used. With customized actiontypes.ini files some default properties can be missing or additional ones available.
Value: Variant. Value for the property defined by PropertyName.
Modify rights to action defined by ActionId.
Below are listed the return values that this function can return:
iRet = SCApplication.Actions.SetProperty(iId, "Header", "Modified by a script")