Loading

Calling Long Running IP from Apex Class

Fecha de publicación: Dec 20, 2023
Descripción
Steps To Reproduce:
  1. Login to an org with Omnistudio.
  2. Create a long running IP.
  3. Try to call it from an Apex class.
  4. It will throw Too many soql queries 101.
  5. While using chainable, the IP will not get executed completely.
Solución
Steps To Resolve:
  1. Usually, it is recommended to use chainable for long running IP.
  2. But in this scenario, chainable doesn’t work in apex, it requires client.

So, the following workarounds will work:

Workaround 1:
Using VlocityBatchFramework will resolve the issue.

Here is the related document link.

Workaround 2:
A user can implement calling the IP from LWC using the following link

Workaround 3:
A user can call this IP in chainable mode from an omniscript.

Número del artículo de conocimiento

000591873

 
Cargando
Salesforce Help | Article