---
title: "Get Sample Definition Attribute UUID via Scripting"
id: "get-sample-definition-attribute-uuid-via-scripting"
project: "MES User Manual"
url: "https://docs.sepasoft.com/articles/user-manual/get-sample-definition-attribute-uuid-via-scripting"
updated: 2026-07-31T14:59:09Z
---

# Get Sample Definition Attribute UUID via Scripting

**Sepasoft MES Module Suite**
 
#### Getting Sample Definition UUID
 To get an attribute UUID, you can load the Sample Definition Object to get the attribute property and then you can get the UUID of that property.
 getPropertyUUID()

```python
# Get MESSampleDefinition, extends from AbstractMESObject
sampleDefinition = system.mes.spc.definition.getSampleDefinition('Individual')
# Get MESSampleAttributeProperty, extends from AbstractComplexProperty
attribute = sampleDefinition.getSampleAttributeProperty('X')
# Get UUID from AbstractMESComplexProperty getPropertyUUID()
attributeUUID = attribute.getPropertyUUID()
print attributeUUID
```


****
 
**Sepasoft MES Module Suite**