For external object use, the function object.getAttributeValue(attribute) can also be done with object[attribute].