Use the GetObjectIdentifier
method to retrieve an object ID given its fully qualified reference. The Metasys user interfaces often refer to an object ID as the item reference.
Library method name |
GetObjectIdentifier
|
---|---|
Description | Retrieve an object ID. |
Method signature |
Guid GetObjectIdentifier(string ItemReference)
|
Method input parameters |
ItemReference : fully qualified reference (FQR) of the object, from which the method returns the GUID. |
Return value | The Guid object. |
The following .NET C# code is an example of successful object ID response:
Guid objectId = client.GetObjectIdentifier("Win2016-VM2:vNAE2343996/Field Bus MSTP1.VAV-08.ZN-SP");
Console.WriteLine(objectId);
/*
d5d96cd3-db4a-52e0-affd-8bc3393c30ec
*/