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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow 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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 545 members 5,956 guests
Please welcome our newest community members: