Skip to content

Commit

Permalink
updated list rule msg and custom viw for get rule
Browse files Browse the repository at this point in the history
  • Loading branch information
hardik-crest committed Jun 26, 2023
1 parent 66e8323 commit 471e14d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 4 additions & 1 deletion office365_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2001,7 +2001,10 @@ def _handle_list_rules(self, param):
action_result.update_summary({"total_rules_returned": num_rules})

return action_result.set_status(
phantom.APP_SUCCESS, "Successfully retrieved inbox rules"
phantom.APP_SUCCESS,
"Successfully retrieved {} rule {}".format(
num_rules, "" if num_rules == 1 else "s"
),
)

def flatten_json(self, y):
Expand Down
9 changes: 7 additions & 2 deletions office365_get_rule.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h4 class="wf-h4-style">No data found</h4>
<h4 class="wf-h4-style">Action Parameters</h4>
<table class="wf-table-vertical">
<tr>
<td>Email Address</td>
<td>User ID</td>
<td><a href="javascript:;" onclick="context_menu(this, [{'contains': ['email'],
'value': '{{ result.param.user_id }}' }], 0, {{ container.id }}, null, false);">
{{ result.param.user_id }}
Expand All @@ -101,7 +101,12 @@ <h4 class="wf-h4-style">Action Parameters</h4>
</tr>
<tr>
<td>Rule ID</td>
<td>{{ result.param.rule_id }}</td>
<td><a href="javascript:;" onclick="context_menu(this, [{'contains': ['email'],
'value': '{{ result.param.rule_id }}' }], 0, {{ container.id }}, null, false);">
{{ result.param.rule_id}}
&nbsp;
<span class="fa fa-caret-down" style="font-size: smaller;"></span>
</a></td>
</tr>
</table>
</div>
Expand Down

0 comments on commit 471e14d

Please sign in to comment.