Hello everyone. I am hoping to get some insight on this issue we are having.
Occasionally we will need to delete an opportunity, it's associated quote(s) and opportunity item(s). We are using the REST API to do this. Most all of this works fine, however we can not find a way to delete the associated opportunity item. Whether using the API or the Espo front end. Here is the API call and response:
[2021-09-14 23:52:34] Espo.ERROR: API [DELETE]:/:controller/:id, Params:Array ( [controller] => OpportunityItem [id] => 6102dacfc32b08261 ) , InputData: - Opportunity Item can be deleted only within Opportunity
record. [] []
[2021-09-14 23:52:34] Espo.ERROR: Display Error: Opportunity Item can be deleted only within Opportunity record., Code: 403 URL: /api/v1/OpportunityItem/6102dacfc32b08261 [] []
Referencing the error that they can only be deleted within the Opportunity, we cannot figure out how to do that either (API or front end). When we delete all of the other records, the opportunity item is effectively unlinked, but it's also an orphaned entry in the database.
We are attempting this using the built in Admin account. Additionally, when looking at the roles, there is no Opportunity Item scope to give permissions to.
Our Espo verion is 5.5.6
Thanks for any help.
Occasionally we will need to delete an opportunity, it's associated quote(s) and opportunity item(s). We are using the REST API to do this. Most all of this works fine, however we can not find a way to delete the associated opportunity item. Whether using the API or the Espo front end. Here is the API call and response:
- Request URL:
http://espo/api/v1/OpportunityItem/614219e7d30745df1 - Request Method:
DELETE - Status Code:
403 Forbidden
[2021-09-14 23:52:34] Espo.ERROR: API [DELETE]:/:controller/:id, Params:Array ( [controller] => OpportunityItem [id] => 6102dacfc32b08261 ) , InputData: - Opportunity Item can be deleted only within Opportunity
record. [] []
[2021-09-14 23:52:34] Espo.ERROR: Display Error: Opportunity Item can be deleted only within Opportunity record., Code: 403 URL: /api/v1/OpportunityItem/6102dacfc32b08261 [] []
Referencing the error that they can only be deleted within the Opportunity, we cannot figure out how to do that either (API or front end). When we delete all of the other records, the opportunity item is effectively unlinked, but it's also an orphaned entry in the database.
We are attempting this using the built in Admin account. Additionally, when looking at the roles, there is no Opportunity Item scope to give permissions to.
Our Espo verion is 5.5.6
Thanks for any help.
Comment