Len
4 min
returns an integer value that is the length of the text, including empty spaces syntax len(str) enabled for for a description of the business object categories, see notes on "enabled for" docid\ u26v9fecfs6ilwa0 pvjd business object category yes/no business rules before save rules yes business rules calculation rules (after save, with or without also recalculate on load) yes business rules calculation rules (before save or always, without also recalculate on load) yes business rules calculation rules (before save or always, with recalculate on load) yes business rules editing rules yes business rules initialization rules yes business rules read only rules yes business rules required rules yes business rules validation rules yes client expressions yes object permissions yes services yes ldap yes mobile yes quick actions (except ui quick actions) yes ui quick actions yes reports yes search/dashboard without field references yes search/dashboard with field references yes parameter parameter description str the text for which to find the length return value number value examples $(len(symptom)) the above example returns the length of the contents of the symptom field in the current instance $(len("this is an example ")) the above example returns 20 note the two trailing spaces in the text $(len(trim("this is an example "))) the above example returns 18 as the trim() function trims off the two empty spaces at the end of the text
