Notifications
Announcements
I have two issues:
My question on this is, how would I populate the variable with the correct object that was just populated in the Statement?
After i create a document using the object stored in the variable, this is what I get. I can only assume that the create file method doesn't like using object variables?
Thanks for any help, i'm pretty new to flows, as you can probably tell!
Hi @Mick92,
I would use two set object variable actions. One in every case. This way you don't have to figure out in which case it was. Hope that makes sense?
Hi @Expiscornovus That does make sense, thankyou.
Have you ever seen the other issue? Where using the variable as the file content results in an error?
Regards,
Michael
Yes, I have seen that other issue way too often 😂
I believe you can store it as string instead of an object and use the base64 and base64tobinary functions to convert it into reusable valid filecontent.
Have a look at this article by @Jay-Encodian who explains it a lot bettter than me 😁:
https://www.encodian.com/blog/how-to-add-a-file-to-a-power-automate-variable/
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 538 Super User 2025 Season 2
Tomac 405 Moderator
abm abm 252 Most Valuable Professional