Substring0
4 min
returns a string containing a substring of consecutive characters from another string this function can be used to replace the left and right modifiers as used in syntax substring0(text,startposition,length) 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 parameters parameter description text the text from which to extract the substring startposition the position of the first character to include in the output the first character starts with position zero length (optional) the length of the substring return value text value example $(substring0 (symptom, 21, 7)) if the symptom field in the business object being evaluated contains the following printer seems to be working fine for others his setup for the printer is fine the function skips the first 21 characters starting from zero and returns the substring starting with index 21 (the 22nd character) the returned string continues for 7 characters the result in this example is " orking " note that the space after "orking" is counted as a character see also substring docid\ um8baucvnr3jtquj2bo 8 ()
