How to read target object in Create groovy script

This topic has 1 reply, 2 voices, and was last updated 4 years, 2 months ago by pryton.

  • Author
  • #22676


    I need to have access to the target object before updating it and wondering how to accomplish that. I have tried to define in sync.json like this but get an exception which says “javax.script.ScriptException: ReferenceError: “target” is not defined.”

                        "source" : "",
                        "target" : "Roles",
                        "transform" : {
                            "type" : "text/javascript",
                            "globals" : { },
                            "source" : "require('lib/crm').getSecurityRoles(source, target);"

    Of course I can retrive the object before updating in the create groovy script but I wish to avoid that.


    • This topic was modified 4 years, 2 months ago by sazzadul.

    apparently i cant post my answer due to a cross site scripting acttack append

    i sent it you via public message hope it helps

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?