Forum Discussion
How to delete/remove Team Member from a Project in Project for the Web?
Dale_HowardMVP ah interesting. I assumed since adding a team member adds to the office group. It would do the reverse automatically. I'll try removing from the group first and see whether it's possible then. Thanks for the suggestion. I'll report back here. To confirm either way.
- Karen_McCrackenJul 10, 2023Copper ContributorHi Neil - We also have the same issue. Any help would be greatly appreciated.
- DannyWiederJul 10, 2023Copper Contributor
Karen_McCracken - Hi.
I had the reply below from Microsoft and it worked (in the past this was possible from the UI). Hope this helps.
- In the script below, replace your project id with the actual GUID of the affected project, and run the script.
var projectId = "your project id";
var data = { "msdyn_scheduler": 192350000 };
Xrm.WebApi.updateRecord("msdyn_project", projectId, data).then((result) =>
{
console.log(result);
}
);
- RodFrommJul 10, 2023Iron Contributor
I just tested this with a User type resource in a named instance using the Project Accelerator. I was unable to delete them if any of the following were true:
1. They were assigned to any project group2. They were assigned to a task, but not assigned to the project's group.
3. Edited 7/11/23 - In the Project Accelerator, if they were ever assigned to the Project Manager field on the Summary tab. Meaning, I assigned them to the field, saved the project then replaced their name with another. I could not delete the resource. I repeated this test multiple times and got the same results. I looked at the Power App code and as shown below there is an Event Handler tied to this field, which explains the behavoir. However, I need to look a little deeper to see if I can determine why this field is treating different tahtn the rest.
I also assigned resources to all the other fields on the Project Accelerator's Summary, Issues, Risks, Changes views and within Programs and I could delete the resource, which is what I expected.