您位於此處:
InsPolicyService:getRuleLogs
此服務會針對目標原則,依照執行日期以遞增順序排序,來取用規則記錄。
運作方式
-
此服務會查詢 ObjectAppliedResult__c 表格,以檢視是否有任何具有 RecordId__c 對應至目標物件的資料列。
-
如果存在此類資料列,則服務會根據 AppliedDateTime_c 欄位,將資料列轉換並以遞增順序傳回給來電者。
輸出 JSON
請參閱下列輸出 JSON 範例。
{
"result": [{
"id": <Id>,
"objectId": <Id>,
"stateTransitionId": <Id>,
"stateTransitionName": <String>,
"executionDate": <Datetime>,
"results": [{
"id": <Id>,
"name": <String>,
"condition": <String>,
"message": <String>,
"action": <String>,
"result": <Boolean>,
"details": {
<String>: <String>
}
}]
}]
}