mailchimp / Firebase

IO-4458: product partnerships team
Apache License 2.0
20 stars 18 forks source link

[Question] How to use nested properties in Member tags config? #36

Closed robertmaidlaAW closed 2 years ago

robertmaidlaAW commented 2 years ago

Is it possible to refer to nested properties (maps) in the configuration?

For example, say I have a users Firebase collection with the following body:

{
"contactData": {
   "email": "...",
   "interests": ["...", "..."]
 }
}

How can I make the extension watch the changes in the contactData map? I've tried using the following syntax as the configuration without success: {"subscriberEmail": "contactData.email", "memberTags": ["contactData.interests"]}.

barticus commented 2 years ago

Hi @robertmaidlaAW , you can use json paths for the memberTags field, but not currently for the subscriberEmail field. I'll add a task to add that.

barticus commented 2 years ago

This work is done but pending release, so I'll close this issue.