Hi,
I am trying to call
Loop.loopMessage request from LWC Apex controller. There are no error or exception .. but document is not generating.
The same method when I will call from VFpage+Apex Controller is working fine. Is it a Known issue .. any workaround please ?
Please help .. I appreciates.
Below is My Code which is not working on LWC apex Controller class .
@AuraEnabled
public static void attachCaseSheetWithContact(String intakeSelectedId) {
system.debug('::intakeSelectedId::'+intakeSelectedId);
Loop.loopMessage lm = new Loop.loopMessage();
lm.requests.add(new Loop.loopMessage.loopMessageRequest(
intakeSelectedId,
'a0U1N000007DGdq',
new Map<string, string>{ 'deploy' => 'a0T1N000005S2Ty'}
));
system.debug('::lm::::'+lm);
if(lm != null && lm.requests != null && !lm.requests.isEmpty()){
try{
system.debug('::Request Sent :::'+lm);
if(!test.isRunningTest()){
lm.sendAllRequests();
}
}catch(Exception ex){
system.debug('::Exception Found showCaseSheetPreview::: ');
system.debug(ex);
// ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, ex.getMessage()));
}
}
}