Forum Discussion
Hi JackLacava,
How can I delete the account through the condition? I don’t know how to do it in the BR.
The API call is BRApi.Finance.MemberAdmin.RemoveMember, you will find it in the api tree. If you don't know how to look for intersection values or how to create the necessary PK objects to pass, I'd suggest checking out the Financial Calculations Handbook book, or coming to a Rules class.
I might sound patronizing, but I would also suggest you implement this as a Custom Calculate function, and take good backups before you start executing it. Having it as part of a regular Calculate would be very risky. What you are trying to achieve has the potential to be very destructive, I really would not recommend it.
- Henning2 years agoValued Contributor II
Cannot agree more, deleting accounts where data is 0 sounds like a very risky idea! Technically you should not be able to do that as the system will give you an error message that you cannot delete the member as it has data on it.
I hope this is a misunderstanding and what you mean is deleting the data, i.e. 0, on the account, not the actual account member in the metadata!
Related Content
- 2 years ago