cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChazBolt
Level: Powered On

Gather username as dynamic content from creator of OneDrive file

 Hi,

 

So I am making a Flow so that when someone fills out a Form, it looks up and gets content of a pdf.

 

The pdf file identifier is being dynamically generated from one of the form answers. The pdf is named "New Employee -- EMPLOYEE NAME" and the "EMPLOYEE NAME" is one of the form answers. 

 

Screenshot Image (Sorry im not the best with coding, this was the best i could get to work)

 

every time i test it, i get back this error:

{
  "error": {
    "code": 404,
    "source": "flow-apim-msmanaged-na-northcentralus-01.azure-apim.net",
    "clientRequestId": "edac1bc5-4e21-4abd-bd7d-428b226d05cb",
    "message": "The response is not in a JSON format.",
    "innerError": "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."
  }
}

Any help?

2 REPLIES 2
Community Support Team
Community Support Team

Re: Gather username as dynamic content from creator of OneDrive file

Hi @ChazBolt,

 

I did the test on my side. Using Get file content action does show the problem you mentioned.

You could use Get file content using file path action to implement your needs.

Fill the dynamic content in the File path, you could get file content, and its output can also be used.

Image reference:

1.PNG

It work, as below:

2.PNG

Please take a try.

 

Best Regards,

Barry

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ChazBolt
Level: Powered On

Re: Gather username as dynamic content from creator of OneDrive file

So i ended up still using Get File Content, and instead of sourcing using the dynamic content of a pdf that has been partially filled in, i had it source the original empty pdf and just reapply all the information, including the new stuff.

Then it just creates a new pdf with the same name and overwrites the old one.

 

Your answers works too, and it does the same practical thing, rewrites over a file with the same file with the same info plus more.

 

But this still isnt what i really want to do, which is update the file directly with new information, not overwrite it with the same file with new information. 

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,572)