Displayname is: Mustermann, Max AB
Used smart-Values in automatation:
a: {{initiator.displayName}}
b: {{initiator.displayName.left(10)}}
c: {{initiator.displayName.lastIndexOf(" ")}}
d: {{initiator.displayName.left(15)}}
Result without error:
a: Mustermann, Max AB
b: Mustermann
c: 15
d: Mustermann, Max
I like to have the result from d) for EVERY Displayname. So I want use c) and d) together:
{{initiator.displayName.left({{initiator.displayName.lastIndexOf(" ")}})}}
(I want put the result from c) as a number in d).
But there comes an error. Whats wrong?
Of the top of my head I think you can combine these operators thusly:
{{initiator.displayName.left(initiator.displayName.lastIndexOf(" "))}}
But I need to test it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Olli
Yes, and...to Darryl's answer:
If you always have the same suffix, such as "AB", you could use the function substringBeforeLast()
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.