- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
07-17-2024 01:54 AM
Dear Community,
I was trying to use the json_extract to extract the value of "RuleActions" and have no success so far.
Sample data:
{"RuleOperation":"AddMailboxRule","RuleId":"0","RuleState":"Enabled, ExitAfterExecution","RuleCondition":"{(SubString IgnoreCase(SubjectProperty)=ABC Communication)}","RuleName":"ABC Communication","RuleProvider":"RuleOrganizer","RuleActions":"[{"ActionType":"Move","DestinationFolderId":"LgAAAAAugyiuv11hR6F4h74ucfwGAASDFVCEqNKZSaN2wuruT03jAAC7WAXhAAAB","FolderIsInThisStore":"True"}]"}
The value is always turned out to be "[{" instead of "[{"ActionType":"Move","DestinationFolderId":"LgAAAAAugyiuv11hR6F4h74ucfwGAASDFVCEqNKZSaN2wuruT03jAAC7WAXhAAAB","FolderIsInThisStore":"True"}]"
The syntax that I'm using is
RuleActions = json_extract(OperationProperties, "$.RuleActions")
FYI, I've tried json_extract_scalar, json_extract_array, json_extract_scalar_array and have no success.
Thank you in advance!
Cortex XDR
07-18-2024 07:35 AM
Hello @Antony_Chan
Thanks for reaching out on Live Community!
Please try following query format if you are looking for Action type value or replace it with whichever field you want.
RuleActions = json_extract(OperationProperties, "$.RuleActions.ActionType")
Please click Accept as Solution to acknowledge that the answer to your question has been provided.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!