none
get object target id in a workflow RRS feed

  • Question

  • When using the PowerShell activity (NOT the PowerShell Workflow Activity) in a workflow, how can I get an object ID?

    I.e. with PowerShellWorkflowActivity you can use $fimwf.targetID but how can I do that in a normal Powershell activity?

    Thanks,
    JD

    Monday, April 27, 2015 6:44 AM

Answers

  • Thanks. Have reverted back to using parameters e.g. [//Target/DisplayName].

    JD

    • Marked as answer by JOTdude Tuesday, April 28, 2015 4:31 AM
    Tuesday, April 28, 2015 4:31 AM

All replies

  • Hi JD,

    What kind of Powershell Activity do you use?

    The way to get ObjectID (of the target) is coded in the PowerShell Workflow Activity. So, if it's not present in your activity, I'm afraid that you have to find another way...

    Regards,

    Sylvain

    Monday, April 27, 2015 10:59 AM
  • Thanks. Have reverted back to using parameters e.g. [//Target/DisplayName].

    JD

    • Marked as answer by JOTdude Tuesday, April 28, 2015 4:31 AM
    Tuesday, April 28, 2015 4:31 AM