Hello Hilary,
I'm having a similar problem I place this xdMath:Eval(xdMath:Eval(my:To/pc:Person, 'concat(pc:DisplayName, ";")'),"..") and I get "my:To/pc:Person" does not point to a valid location path of a field or group. Can you assist me if figuring this out?
OR
If you can assist me in achieving what I'm ultimately trying to accomplish which is to gather the email address(es) from the people/group picker field. Currently, I got it where if a user inputs information in a text field then that initiates an Action rule with condition set to None and Set a field's value: EmailTo (AnotherTextbox) to substring(xdMath:Eval(xdMath:Eval(../my:To/pc:Person/pc:AccountId, 'concat(";", .)'), ".."), 2). This sets EmailTo a textbox to DOMAIN\User; DOMAIN\User;....
EmailTo (a textbox field) runs an Action rule on itself condition set to None and Set a field's value:EmailTo to translate(., "DOMAIN\", " ") and results are for example USER; USER;... if multi users are selected, but if it's a single user then USER (Without Semicolon) There are two problems if the user goes back to add additional users then the EmailTo field does not get updated, unless the textbox that starts the chain reaction changes too. If the person/group picker field allowed Action rules I could avoid using another field as the trigger. Hence, the reason I need a text field that Refreshes with this code xdMath:Eval(xdMath:Eval(my:To/pc:Person, 'concat(pc:DisplayName, ";")'),"..") capture updates to the field.
When publishing a person/group field to a SharePoint site it only capture the first user and I need it to capture all users inputted in the person/group picker field and email the users selected via workflow.
I also had a problem that if it was one user in the person/group picker field the user does not get the email when there is no semicolon(;) after the username. So, I created a rule on the Submit button that if EmailTo does not contain ; it then concat( EmailTo,";") then the user gets the email.
In addition, I've tried using this xdMath:Eval(xdMath:Eval(../my:To/pc:Person, 'concat(../my:To/pc:Person/pc:AccountId, ";")'), "..") but I get this error: "../my:To/my:To/pc:Person/pc:AccountId" does not point to a valid location path of a field or group.
Thanks Chris