cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper II
Helper II

recipients for push notification using an excel file as data source

Hi, 

 

I am trying to pass a list of email address from an excel file to recipients variable in PowerAppsNotification.SendPushNotification.

Is there any way I can do that?

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@rsanya 

In general, a PowerApps push notifcation call looks like this:

PowerAppsNotification.SendPushNotification(
	{
		recipients: ["email1@contoso.com", "email2@contoso.com"],
		message: "message in the notif toast",
		params: Table({key:"notificationKey", value:"The value for notificationKey"}),
		openApp: true
 	}
)

 

You can use your own list of emails from an Excel table column like this:

PowerAppsNotification.SendPushNotification(
	{
		recipients: RenameColumns(YourExcelTable.YourExcelColumn, "YourExcelColumn","Value"),
		message: "message in the notif toast",
		params: Table({key:"notificationKey", value:"The value for notificationKey"}),
		openApp: true
 	}
)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

 

View solution in original post

2 REPLIES 2
Super User III
Super User III

@rsanya 

In general, a PowerApps push notifcation call looks like this:

PowerAppsNotification.SendPushNotification(
	{
		recipients: ["email1@contoso.com", "email2@contoso.com"],
		message: "message in the notif toast",
		params: Table({key:"notificationKey", value:"The value for notificationKey"}),
		openApp: true
 	}
)

 

You can use your own list of emails from an Excel table column like this:

PowerAppsNotification.SendPushNotification(
	{
		recipients: RenameColumns(YourExcelTable.YourExcelColumn, "YourExcelColumn","Value"),
		message: "message in the notif toast",
		params: Table({key:"notificationKey", value:"The value for notificationKey"}),
		openApp: true
 	}
)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

 

View solution in original post

Thanks! It worked.

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (22,124)