Regarding the synchronous setting of assignedUser.teamsNames, I aim to set the work team to be the same as a specified user's team. However, the formula I attempted to use resulted in displaying [object Object], indicating a potential need to convert the object into a string format or to extract specific data from the object.
Formula for Assigning Specified User's Team
Collapse
X
-
teamsNames is a notStorable so you need to use the teamsIds instead, but if you want to see the name you can just loop through them and build your string. -
try this instead:
PHP Code:$teamsIds = assignedUser.teamsIds; $i = 0; while ($i < array\length($teamsIds)) { $team = record\fetch('Team', array\at($teamsIds, $i)); if ($team) { job = string\concatenate(job, ' ', object\get($team, 'name')) ; } $i = $i + 1; }Comment

Comment