Deleting one of the additional access Group of an operator using an activity.
Hi,
I am using below steps to open my operator and delete one of the access groups of my operator.
Step 1 . Obj-Open-By-Handle , passing the pzInsKey of my operator
Step 2. Loop through ".pyAccessGroupsAdditional" value list ,
When condition --> .pyAccessGroupsAdditional(<CURRENT>)=="Access group to remove"
Step 2.1 (Property-Set) Param.Subscript == Param.pyForEachCount
Step 2.2 Property-Remove
.pyAccessGroupsAdditional(Param.Subscript)
Step 4 -
Obj Save
Step 5 -
Commit.
But its not working correctly as I am able to see the access group again once I log off and log in. The access group is getting removed only temporarily until I log off and log back in.
Also tried obj-save with write now option checked, OR Call Save activity in . But same result. Kindly suggest if any other/better way is there.
Regards,
Anan