From 3aaf6c0574e376b15ca88650460256e078ad16bd Mon Sep 17 00:00:00 2001
From: liuyan <liuyan@prec-tech.com>
Date: 星期四, 17 十一月 2022 16:09:17 +0800
Subject: [PATCH] 624向SPO推科室

---
 force-app/main/default/classes/NFM001Controller.cls |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/classes/NFM001Controller.cls b/force-app/main/default/classes/NFM001Controller.cls
index 996d589..caed6a3 100644
--- a/force-app/main/default/classes/NFM001Controller.cls
+++ b/force-app/main/default/classes/NFM001Controller.cls
@@ -344,9 +344,14 @@
                 // 銈ㄣ儵銉笺亴鐧虹敓銇椼仧鍫村悎
                 System.debug(Logginglevel.ERROR, 'NFM001_' + iflog.Name + ':' + ex.getMessage());
                 System.debug(Logginglevel.ERROR, 'NFM001_' + iflog.Name + ':' + ex.getStackTraceString());
-                logstr += ex.getMessage();
-                iflog.ErrorLog__c += ex.getMessage() + '\n';
-                iflog.ErrorLog__c += ex.getStackTraceString() + '\n';
+                //NFM624瑙﹀彂001鍜�201鎺ュ彛 20221102 LY start
+                // Callout from triggers are currently not supported.
+                if (!String.valueOf(ex.getMessage()).contains('Callout from triggers')) {
+                    logstr += ex.getMessage();
+                    iflog.ErrorLog__c += ex.getMessage() + '\n';
+                    iflog.ErrorLog__c += ex.getStackTraceString() + '\n';
+                }
+                //NFM624瑙﹀彂001鍜�201鎺ュ彛 20221102 LY end
 
                 //---Gaozw---add
                 if (rowData.retry_cnt__c == null) rowData.retry_cnt__c = 0;

--
Gitblit v1.9.1