cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Send Entity list records as Excel to Power Apps Portal Contacts

Hello Community Experts!

 

I am new to Power Apps Portal. I am stuck with a requirement where I need to send the entity list records which is displayed on the Portal and gets updated on a daily basis, as an excel attachment in an email by selecting the contact from the Portal. Could anyone please assist me in achieving this.

 

Any assistance you can provide would be greatly appreciated!

 

Thank you!

11 REPLIES 11
Highlighted
Super User
Super User

Re: Send Entity list records as Excel to Power Apps Portal Contacts

Hi @PowerappsUser5 

There was a very similar question about this the other week. Do any of the suggestions here help?

https://powerusers.microsoft.com/t5/Power-Apps-Portals/Send-Email-with-attached-Excel-from-Power-App... 

Highlighted
Frequent Visitor

Re: Send Entity list records as Excel to Power Apps Portal Contacts

Hi @timl ,

Is it possible to send the portal records directly without using excel. Could it be possible to send the entity list in an email by selecting a contact from the portal? Any suggestions on this please?

 

Thanks in advance!

 

Highlighted
Super User
Super User

Re: Send Entity list records as Excel to Power Apps Portal Contacts

Hi @PowerappsUser5 

Yes, it's possible to send the records directly without using Excel. I think this is as much a Flow question as it is a Power Apps Portal question.

You would adapt the procedure below to retrieve your data and to send it in an email. But instead of choosing an Excel data source in Flow, you would choose your CDS data source.

https://powerusers.microsoft.com/t5/Building-Flows/Read-input-from-Excel-and-send-email/td-p/159369 

Your Flow would include an HTTP request trigger, and you can define a parameter to accept the ID of the contact that you want to email. You can then adapt the procedure from Nick Doelman's article here to link your portal page with the Flow.

https://readyxrm.blog/2019/12/28/trigger-power-automate-flows-from-power-apps-portals/ 

 

Highlighted
Frequent Visitor

Re: Send Entity list records as Excel to Power Apps Portal Contacts

Hi @timl ,

Thank you for the reply. Is it possible to create a CRM workflow so that it would be possible to select a contact from the Portal and send the entity view to that particular contact by running an on demand flow from the portal? Is it possible to include the entity view in the email?

Highlighted
Super User
Super User

Re: Send Entity list records as Excel to Power Apps Portal Contacts

Hi @PowerappsUser5 

I suspect you can do something like this to trigger your CRM workflow from JavaScript.

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/267681/triggering-workflow-using-j... 

That said, I'm not particularly expert in this area so someone else here might be able to comment further.

Highlighted
Impactful Individual
Impactful Individual

Re: Send Entity list records as Excel to Power Apps Portal Contacts

Hi @PowerappsUser5

My last answer from this question might be helpful in your requirement.

 

You can pass your text or html in email body variable in javascript in above link. 

 

--------------------------
If you like this post, give a Thumbs up. Where it solved your query, Mark as a Solution so it can help other people!

Highlighted
Frequent Visitor

Re: Send Entity list records as Excel to Power Apps Portal Contacts

Hi @hardikv ,

 

Could you please help me out on how to pass the entity list in the email body in Javascript? Also in my requirement I need to send the entity list by selecting a contact from the 'Contacts' entity on the Portal. Could you suggest on how this could be achieved?

Thank you!

Highlighted
Power Apps
Power Apps

Re: Send Entity list records as Excel to Power Apps Portal Contacts

So main thing here is to understand the whole scenario

a) Who is sending this email, a user coming on portal and clicking some button?? If yes, then why not just enable the download excel button for this user so they can download the excel file corresponding to that entity list.

b) A background process which  sends these emails periodically??

 

Basically typically if this is a background process, then portal doesn't come into play and you are sending the data using a crm workflow or flow based on whatever schedule you are using.

Highlighted
Frequent Visitor

Re: Send Entity list records as Excel to Power Apps Portal Contacts

Hi @dileeps ,

As per my requirement, I need to login into the Portal as an Administrator and the entity list is only displayed for the administrator and  is not shown up for any other users other than administrator. So as an Admin I need to send this entity list in an email by selecting a contact from the list of Portal contacts. Is there a way to achieve this?

 

Thank you!

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (3,654)