Attempting to deactivate account / department
I'm using the TeamDynamix c# API for imports and one of my tasks is to deactivate a department. There is an api.CreateAccount function and an api.UpdateAccount function in the c# code, but both are acting like they're trying to create. They both give a bad request result when the account name is the same as one that already exists. I need to set acct.IsActive to false but even the api.UpdateAccount function results with a account already exists message when I debug the response object. I'm being prevented from being able to deactivate an existing account or assign the value of acct.IsActive = false and have it be saved. It seems accounts are keyed on the acct.Name field and the api.UpdateAccount function is really a create function and not an update function.
How do I deactivate an account ?
Thank you
Answer (1)
Hello Kirk,
I'll have to check into this for you. But it might not be possible to deactivate them via an API call, and instead you'd have to go into TDAdmin > Organization Settings > Accts/Depts to find and deactivate the desired Account.
Sincerely,
Mark Sayers
Sr Support Consultant, CS