cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rsanya
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
mdevaney
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
mdevaney
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (93,640)