We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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

Cube Refresh using groovy post update the metadata using Groovy rule

Received Response
31
Views
5
Comments
edited Aug 13, 2020 1:21PM in Planning 5 comments

Content

We are updating the Entity dimension attribute tagging using groovy rule. Post the update, cube refresh to be done.

I don't find function to cube refresh using Groovy.

Please suggest how do we make it automate using groovy business rule?

I know we can use EPM automate to run Groovy rule followed by cube refresh, but Please suggest how do we make it automate using groovy business rule only?

Code:

Dimension EntityDim = operation.application.getDimension("Entity")
 
Member EntityMbr = EntityDim.getMember("RA1-1102-DEB")
 
println EntityMbr.toMap()
 
def memberProps = EntityMbr.toMap()
 
memberProps["PLANNED/UNPLANNED_STORE".toString()] = 'UNPLANNED STORE'
 
EntityDim.saveMember(memberProps)
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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