Need Help with @SetField

I want to set an author name field “AuthorField” (which is a multi-value field) to include a role and a group. The role is [Admin], and the group will be depended on the “Geo” field, which could either be “USA”, “AP”, “CAN”, etc.

I created an agent to set the field:

@SetField(“AuthorField”; “[Admin]”:“Sales-”+Geo+“-WW”);

After running the agent, I would expect the AuthorField to have 2 values:

“[Admin]”

“Sales-USA-WW” (suppose the Geo field is “USA”).

But I get these 2 values as a result instead:

“[Admin]USA-WW”

“Sales-USA-WW”

So could someone point me to where I’m doing wrong? I’ve spend the whole afternoon trying to figure this out with no avail. Thank you for your help!!

Hu T

Subject: Lists take precedence

“[Admin]”:“Sales-”+Geo+"-WW"means take the list

“[Admin]”:“Sales-”

then add

Geo+“-WW”

to it

Put brackets around individual list items to avoid confusion

“[Admin]”:(“Sales-”+Geo+“-WW”)