30 Sep 2024 06:29 PM - last edited on 01 Oct 2024 07:27 AM by MaciejNeumann
I am setting up biz events capture and would like to be able to get certain fields from each element in an array without getting the entire array.
I do not know the size of the array ahead of time.
Example:
If my request body looks like this:
{
"myArray": [
{
"id": 1,
"name": "Jane"
},
{
"id": 5,
"name": "Jerry"
}
],
...
}
I would want the biz events to capture only the names, so something like ["Jane", "Jerry"], doesn't necessarily have to be in an array for output.
I know that I could use "request.myArray.0.name" to get "Jane" but not sure how to get ALL the names.
thanks for any input!
07 Oct 2024 12:44 PM
Hi @Peter_Youssef,
I know I can create a function or parse in DQL but I am looking to do this "filtering" when the biz event is captured, which is not mentioned in this documentation unless I am missing something.
I do not want all fields of the complex objects inside the array to get captured because they contain sensitive information.
Thanks,
Victoria