cancel
Showing results for 
Search instead for 
Did you mean: 

Removing an account

Former Member
0 Kudos

Hi All,

It seems that the OACT object's Remove method is documented as 'not supported'.

Is there any other way I can remove an account? it is supported via GUI.

Avi.

Accepted Solutions (1)

Accepted Solutions (1)

Nussi
Active Contributor
0 Kudos

Hi,

it's like you said - in GUI it is allowed but DIAPI not.

that means you can try to write a code that deletes a account via UIAPI.

in your addon do the following

1. open Edit Chart of Accounts - select the criteria press OK

2. search your account in the list and use Application.ActivateMenuItem("5910") to delete the account

3. close the window

lg David

Former Member
0 Kudos

Thanks.

Does anyone knows if this feature is going to be supported in future versions?

Nussi
Active Contributor
0 Kudos

Hi,

i don't expect that - the method is already there but has no function for the last SBO versions.

i guess it's a security issue to block that method.

but you can post your issue in the SAP Business One Product Development Collaboration forum.

maybe someone hears your wish

lg David

Answers (0)