How to remove attribute from the member using groovy
Summary:
Hi ,
I am trying to remove custom attribute from the member using groovy. I can see member being removed from memberproperties but it is still showing custom property in the application.
Dimension ProjectDim = operation.application.getDimension("BusinessUnit")
Member ProjectMbr = ProjectDim.getMember("NO_BU")
def memberProps = ProjectMbr.toMap()
println (memberProps)
memberProps.remove("BU_PLID")
println ("AfterRemove :"+ memberProps)
ProjectMbr.dimension.saveMember(memberProps)
def memberProps2 = ProjectMbr.toMap()
println ("AfterRemove2 :"+ memberProps2)
Can anyone guide me.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):