Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Retrieve GUID from a workflow?

Updated: 21 May 2010 | 4 comments
arbleb's picture
0 0 Votes
Login to vote

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.

discussion Filed Under:

Comments

claus66's picture
04
Nov
2009
0 Votes 0
Login to vote

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
04
Nov
2009
0 Votes 0
Login to vote

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
05
Nov
2009
0 Votes 0
Login to vote

The component you're looking

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

arbleb's picture
05
Nov
2009
0 Votes 0
Login to vote

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!