Retrieve GUID from a workflow?

arbleb's picture

So I'm trying something very basic and I've run into a wall.

After a couple hours of hunting and pecking I assume I must be missing something easy.

I want to use the AddComputerToCollection component and that works fine when I hard code in a resource GUID.

However, from a user perspective, I want them to key in a machine name.  From there I need to do a lookup in Workflow for the appropriate GUID so I can then run AddComputerToCollection.

How in the jelly do I retrieve the GUID for a user inputted computer name?!

Orrr...add a resource by name (instead of GUID) to a collection.

claus66's picture

GetComputerIdByNameAndDomain

Have you tried the GetComputerIdByNameAndDomain-component. This should get your GUID in a single domain environment. As an alternative you could make a component to query the vComputer view

arbleb's picture

Thanks. I did end up making a

Thanks.

I did end up making a custom component that gets me the GUID but I replaced it with the component you referenced.

Hmmm.  Hard to find that one.

How about RemoveComputerFromCollection?  There is an Altiris component to AddComputerToCollection..can't find one for remove?!

claus66's picture

The component you're looking

The component you're looking for is 'RemoveInclusion'.

arbleb's picture

Haha! Needle. Haystack. Why

Haha!

Needle.

Haystack.

Why some of these are clearly marked under the Altiris Category and some are not is a mystery.

Thank you very much for the replies.  My faith in humanity is restored!