I am trying to figure out how to add users to a project using Fusion. I have tried a Custom API call: Post and a Create Record for Project User. Neither work and produce a 422 error: [422] PRTU is not a top level object and can't be requested directly. I am trying to add a few users that will not be assigned to tasks to the new project and at the same time I need to remove the owner of the request from the converted request and add them to the project. Any help would be extremely appreciated!
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @JessicaBCrum
ProjectUser is a linking object, much like objectCategory and you can't modify those records directly.
Using a customAPI call you can add a user to a project like so
Views
Replies
Total Likes
Thank you @Sven-iX! I will give this a try. I really appreciate you weighing in and providing a solution.
Views
Replies
Total Likes
@Sven-iX Unfortunately I received an error. I have included a few screenshots of my input for the custom API call and the error I received.
Views
Replies
Total Likes
@Sven-iX I adjusted the JSON body and still received an error:
[400] APIModel V19_0 does not support action addUsersFromProject (PROJ)
Views
Replies
Total Likes
Views
Replies
Total Likes
@Sven-iX Now I am receiving this error:
[422] APIModel INTERNAL action addUsersFromProject does not support argument named {
"userIDs": [
"67c8bd320004760a3117d5618bf1072b"
]
}
Views
Replies
Total Likes
Right - make sure you pass it like below
updates={"userIDs":["64dcc7480386dd0f8dde7c2e1ca1c62d"]}
Views
Replies
Total Likes