Introduced in QPR 7.5.1
Last changed in QPR 8.0 SP1
Removes an external (i.e. non-action) parent from an action
Actions.RemoveExternalParent(ActionId, Product, ModelId, ObjectId)
ActionId: Integer. ID of the action from which an external parent is removed.
Product: String: PG | SC | Portal. If this is PG or SC, also ModelId and ObjectId need to be defined, and in the case this is Portal, Discussion Forum is used as the parent. Note that this cannot be PG when calling this function from the SCApplication.Actions object. However, SC can be used when calling the function from the PGApplication.Actions object.
ModelId: Integer. In the case product is SC or PG, define here the ID of the model in which the external parent resides.
ObjectId: Integer. In the case product is SC or PG, define the ID of the external parent here.
Modify rights to the action defined by ActionId.
Below are listed the return values that this function can return:
iRet = SCApplication.Actions.RemoveExternalParent(456456, "SC", iDentorexId, iTopElementId)