-
Bug
-
Resolution: Unresolved
-
High
-
8
-
Severity 3 - Minor
-
10
-
Issue Summary
Using a smart value {{object.Name}} within a automation rules, always returns value from label attribute for the object.
Steps to Reproduce
- Create a new ObjectType, by default 'Name' would be label attribute
Name Type Type Value Key Default Text Name (label) Default Text Created Default Date time Updated Default Date time
- Create a new 'Text' type attribute, let call it 'Tag'
- Make new 'Tag' as label attribute
Name Type Type Value Key Default Text Name Default Text Created Default Date time Updated Default Date time Tag (label) Default Text
- Create a object with where both Name and Tag has different values
Attribute Name Value Name Mac 1 Tag Office
- Create a automation rule using lookupObject to find the object created in step#4
- Use a log action to write the smart value {{object.Name}}
Expected Results
- {{object.Name}} should print value from Name attribute, in example it should be 'Mac 1'
Actual Results
- {{object.Name}} is printing value from Tag attribute (which is label), in example it is returning 'Office'
Workaround
Change the 'Name' attribute to anything else, for example 'Names' or 'Appliance Name'.
OR
- Add a Send Web Request action with the AQL API.
- Use the following smart value to retrieve the attribute value
{{#webresponse.body.values}} {{#attributes}} {{#if(equals(objectTypeAttributeId, "99"))}} Name: {{objectAttributeValues.value}} {{/}} {{/}} {{/}}
Replace "99" with the attribute ID related to the Name attribute in the object type.
- is related to
-
JSDCLOUD-13400 When using smart value .Name to retrieve attribute value, its returning label attribute value
-
- Gathering Impact
-
This is causing a great impact on us. Any ideas when it will be fixed?
Thanks