Hi,I wonder if someone could help me with following. I need to update the FullName field by adding the Intranet name. But this name needs to be added just below the ShortName field. See example below
Testing.Test1
Testing Test1
Testing A Test1
Testing.Test1
<===test1@intranet address
TEST111
Any help would be great!!!
Thanks.
Subject: Perhaps something like this?
-
Get FullName field values as an array.* Get upperbound of array and increase by one.
-
Create a new array of strings with that size.
-
Set an offset variable to 0
-
Loop through the original array. If you encounter the shortname, insert the new value and increase an offset by one. For all values, copy the value to the new array, to the position in the old array plus the offset.
-
Write the new array back to the field.
That should do it.
Subject: new array postion
Thanks so much!! I’m planning to work on this tomorrow morning, and let you know.