Converting Regular Common Name Lists into Notes Hierarchical Names


result := "";
@For(n := 1;n <= @Elements (Members );n := n + 1;
	look := @Trim( @NameLookup ( [Exhaustive];Members [n ]; "FullName" ));
	result := @Trim( @Unique (result : @If (look= "";@Name ([Abbreviate];Members[n ]); @Name ([Abbreviate];look)))));
FIELD comment := @Implode (result;@NewLine );

@Prompt([Ok]; "Members " + @Text(@Elements (Members )); "Found " + @Text(@Elements(result ))+ " Abbreviated Canonical Names for "+ @Text ( @Elements (Members ) )+ " Users" )
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
No comments yetLogin first to comment...