You need to sign in to do that
Don't have an account?
Dave Berry 9
SBQQ__ContractService: SBQQ,QuoteAfter: ... System.CalloutException: Callout from triggers are currently not supported.
Hello!
I am developing automation to create SBQQ quotes and opportunities in order to eventually create contracts, etc... One step of the automation tries to contract the opportunity. When calling, I notice that I am getting the following error. The contract is produced but I am not getting a renewal opportunity created. Any help would be greatly appreciated.
Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, SBQQ.QuoteAfter: execution of AfterUpdate
caused by: System.CalloutException: Callout from triggers are currently not supported.
(SBQQ)
We see this error in the Apex Jobs status detail for the apex class SBQQ ContractService. Does anyone know what is failing and why?
Update, if we reduce the batch size to 1, this error doesn't occur.
I am developing automation to create SBQQ quotes and opportunities in order to eventually create contracts, etc... One step of the automation tries to contract the opportunity. When calling, I notice that I am getting the following error. The contract is produced but I am not getting a renewal opportunity created. Any help would be greatly appreciated.
Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, SBQQ.QuoteAfter: execution of AfterUpdate
caused by: System.CalloutException: Callout from triggers are currently not supported.
(SBQQ)
We see this error in the Apex Jobs status detail for the apex class SBQQ ContractService. Does anyone know what is failing and why?
Update, if we reduce the batch size to 1, this error doesn't occur.
Assuming your logic is in MyClass and myMethod has all your callout logic.
global class MyClass {
@future Public static void myMethod(String a) {
//long-running Apex code
}
}
-------
You can refer the details in salesforce knowledge blog here.
https://help.salesforce.com/articleView?id=000176570&type=1
Please mark it best if it helps you. Thanks.
Thanks,
Nazrul