Hi everyone,
I'm trying to update dynamically user's Teams ("Other teams", not home team) with custom API call as I can't find suitable default option neither in Update User module, nor Update Teams module.
I'm able to pull current user's team(s) and add a new team to the collection, but when I try to update user with this new value (collection), I get an error:
Any thought on how this can be resolved? Or maybe other ideas how I can either add certain users to the Team or add Team (as Other team) to certain users
I'd appreciate any suggestions
Thank you!
Views
Replies
Total Likes
Hi,
as there seems to be no concrete action for any possible end point, I think you will need to work with a classical PUT request to the endpoint TEAMOB using the Custom API call module.
Therefore you have to send all team members again using this example payload:
{
'teamMembers': [{
"userID": "<userID of first user>"
},
{
"userID": "<userID of second user>"
},
{
"userID": "<userID of third user>"
}, ...
]
}
Regards
Lars
Thank you, I had similar approach, but the problem is that we have too many users that need to be added. It does not make much sense to list them manually here as I can just list them as team members in WF team itself (also manually).
I was thinking about automating this as users in the assignments may change and we may miss someone if we hard code the user list either via WF or Fusion.
The idea was to go through the project tasks assignments, pickup those who needs to be notified, filter out the duplicates and add them dynamically to the Team to notify.
Views
Replies
Total Likes
If you are still having problems with this, then here is how I do it.
{"teams": [
{this is all the users current teams},
{"ID": "the ID of the new team you want to add"}]}
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies