In a workflow, pass attributes of new object to a script

Another newbie question, I am trying to do something seemingly simple but I'm racking my brain and had enough of scrolling the SDK (why is it in a format from the 90's?)

Essentially, I have a WF which creates a new user object, I need to pass a number of attributes of the new user obj to a PS script. I've been exploring $Request.Get() and $context inside the script but I can't seem to get the script to read the new users attributes.

Any help is appreciated because I am bamboozled

Parents
  • Whilst my post was being moderated, I figured out that after the "Create" activity, I can add a "Save Object Properties" activity and point it's Activity Target to the "Create" activity. Then in my script I can use $workflow.SavedObjectProperties("Name of saved object properties").Get("propertyName")

Reply
  • Whilst my post was being moderated, I figured out that after the "Create" activity, I can add a "Save Object Properties" activity and point it's Activity Target to the "Create" activity. Then in my script I can use $workflow.SavedObjectProperties("Name of saved object properties").Get("propertyName")

Children
No Data