How to remove attribute from the member using groovy — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

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):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!