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

Prompting user to enter filename

Description:

I have created a canvas app that collects user data and populates a word document, then converting it into a PDF. This PDF gets stored in the Onedrive. 

 

Issue:  Everytime the user feeds data and submits the document, the same document is getting refreshed instead of new pdf file generation. I need the user to enter a filename manually and then to submit the form to get saved sepeartely.

5 REPLIES 5
v-siky-msft
Community Support
Community Support

Hi @Vignesh_2112 

Could you share more details with your apps? Screenshots, Codes, Data source?

How did you populate the word document and convert to PDF? By flow? Could you share the steps?

More information is needed to provide further assistant.

BR,

Sik

Please learn through the below link.

https://youtu.be/sToM68hQoTw

Looking at your video, if you want people to be specifying the end file name, I'd suggest using a combination of IsBlank, Notify and SetFocus. This would be included in the OnSelect property of your final button.

If(IsBlank(<FieldName>),Notify("Enter a file name",Error);SetFocus(<FieldName>),

Where <FieldName> is your text input. 

 

I'd also consider having another step in your flow to check for the existence of the file name already in the eventual directory. If it already exists, have it add an increment after the file name to differentiate and not lose data.

Are you able to populate word document?

@EnergiserFlow 

Hi,

If you have only 2 or 3 parameters passed from PowerApps to PowerAutomate and it doesn't seems that you'll need the word document after the PDF file creation, why don't you reconsider your solution and use html code instead to create in OneDrive the data for PDF file.

In this way you have the possibility to name your file as powerapps parameter.

 

Capture.PNG

Helpful resources

Announcements
Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,007)