Forum Discussion

Rajorigin's avatar
Rajorigin
Specialist
2 years ago

Unable to create a segment by using the date attribute in the nested object

Hi fellow bonfirerers,

Hope you are all doing well.  I seek your inputs on the below...

I am trying to create a segment using a Nested Custom Attribute. The array object is called 'accounts' and from the object path I am choosing the 'account_created_date' and filtering this ( the data type is Time) to select all 'account_created_date' after '2023-01-015'. Unfortunately, I am not seeing any volumes, which is not the right outcome. Happy to be guided as always. 

Screengrab from settings, object array path

Screengrab from settings, data type for the attribute is "Time".

 

 

 

  • Actually I have figured the solution. The JSON that passed the date attribute to the nested object "accounts" did not declare data as a TIME data type. This is important for inside nested arrays or array of arrays. Therefore, I have advised my technical team to reload with the correct datatype for nested dates. Hoping this should fix the problem 🙂 Example this is how the nested attribute date should be passed in JSON 

    The relevant doc from Braze relating to this issue is attached below :

    Nested Custom Attributes (braze.com)

     

  • Actually I have figured the solution. The JSON that passed the date attribute to the nested object "accounts" did not declare data as a TIME data type. This is important for inside nested arrays or array of arrays. Therefore, I have advised my technical team to reload with the correct datatype for nested dates. Hoping this should fix the problem 🙂 Example this is how the nested attribute date should be passed in JSON 

    The relevant doc from Braze relating to this issue is attached below :

    Nested Custom Attributes (braze.com)