So basically the flow is supposed to give users the ability to upload PDF files to sharepoint.
The only issue is that once the file is created in sharepoint, its no longer a pdf. It has no extension whatsoever actually. (you can still open it if you download and then choose a PDF reader but it defeats the whole flow purpose)
Is there any solution to this where the file remains in a PDF format once created in sharepoint?
Solved! Go to Solution.
Hi @改善
Are your uploaded file always pdf file? If yes, you can add ‘.pdf’ directly to the end of the File Name field.
If you also need to upload other types of files and want to change the name of the files, you can get the file extension according to the below formula , and then put the extension at the end of the File Name field.
Hope the content above may help you.
Best Regards
If my reply helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @改善
You can take a try to use the following formula to get the filename with extension, then use the filename to create new file.
triggerBody()['file']['name']
After flow runs, a new file with extension will be created.
Hope the content above may help you.
Best Regards
If my reply helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Lily! this works and creates a PDF indeed.
So the triggerbody syntax is used to fetch attributes from the file and then use that as the name ? Is my thinking correct?
How could i change it so that the file keeps the PDF extension, but its renamed to the attributes pre-selected before?
Before changing the file name to the triggerbody expression i had used the dynamic content options and that was giving my file the desired name.
would you know how could i make it so that the file name is renamed according to the pre-inputs in the trigger step but still keep its PDF extension?
Hi @改善
Are your uploaded file always pdf file? If yes, you can add ‘.pdf’ directly to the end of the File Name field.
If you also need to upload other types of files and want to change the name of the files, you can get the file extension according to the below formula , and then put the extension at the end of the File Name field.
Hope the content above may help you.
Best Regards
If my reply helps, then please consider Accept it as the solution to help the other members find it more quickly.
Brilliant Lily! Thank you that works perfectly.
Mind if i pick your brain on another thing?
Currently the data from the "Period" selection menu is listed between parenthesis and underscores, is it due to being multi-select list? any idea how i could pull this out of the brackets/underscores and have it be displayed plainly?
This is the input step:
thanks!
User | Count |
---|---|
92 | |
45 | |
21 | |
18 | |
16 |
User | Count |
---|---|
136 | |
49 | |
42 | |
36 | |
28 |