When a new user is added to Firebase, I would like to send myself an email with all of the data associated with that user. So if I have a /contacts path and a /projects path, I'd like to include the data from both paths when a child is added to the /contacts path.
I've looked at Zapier using Mailgun, but can't figure out how to accomplish this.
If Zapier won't work, is this something can be accomplished with the firebase-util?
Tree for my-firebase-app.firebaseio.com/contacts
-contacts
--anonymous:-JttGEelQDsVtZ55n3d2
---name: john doe
---address: 100 Main St.
// . . .
Tree for my-firebase-app.firebaseio.com/projects:
-projects
--anonymous:-JttGEelQDsVtZ55n3d2
---projectName: "My first project"
---projectDate: July 27, 2015
// . . .
UPDATED:
In response to the comment below, here is some additional info:
I have tried the following steps in Zapier:
- Selected
Add child record
under Firebase - Selected
Send email
under Mailgun - Set path to data:
/contacts
- In the email body section, I inserted
Raw Json Data
The email only contains the Json data located in /contacts
. It does not contain any of the data located in /projects
.