-
Bug
-
Resolution: Unresolved
-
Low
-
2
-
Severity 3 - Minor
-
Issue Summary
Directly using urlEncode(), length(), capitalize() functions with Asset objects' attributes does not return any values. These functions can be found on this page.
Steps to Reproduce
- Create a schema and add an object type to that schema.
- Add a Text type attribute say 'Attribute' of the object type and create an object.
- Create an Automation rule with Object updated trigger.
- Print the value of Name and Attribute using Log action: {{object.Name}} and {{object.Attribute}}. Run the rule by updating attribute value. This will show correct result.
- Now, print the value of attribute with functions like {{object.Attribute.length}}, {{object.Attribute.capitalize}} or {{object.Attribute.urlEncode}}
Expected Results
The values should not be empty
Actual Results
The values are empty
Workaround
Create a variable and then use {{<variable_name>.urlEncode))
I can confirm that the following functions are also failing to return a value when using global automations on a specific object type that has this attribute:
log {{object.mycustomtextattributte.abbreviate(3)}} returns nothing.
log {{object.mycustomtextattributte.replace("-","_")}} returns nothing.
log {{object.mycustomtextattributte.remove("-")}} returns nothing.