Hi,
I wanted to save a gallery as a pdf in a sharepoint library. I followed a tutorial on youtube where they describe very well how to do this with a flow.
The result of the flow is picture 1.
They also explain the script you have to you use when you click on de PDF button.
This is the script:
wiw.Run({file:{name:"WieIsWaar.pdf", contentBytes: PDF(WiwOverzicht,{Orientation:PaperOrientation.Landscape,Size:PaperSize.A4,ExpandContainers:true})}})
When I test the flow inside powerapps everything works fine. I go to my sharepoint library and the pdf has been saved and when I open it I get the result that I want, with 2 or 3 pages like the pdf should be.
Now comes the problem. When I publish my app that I made to my sharepoint and I want to use it, he create a pdf in that library but when I open the pdf I only see what I see on my screen (one page) and not the entire pdf what I saw when I tested it. The strange thing is, when I go back to my app in powerapps en test it again from there it works perfectly. The pdf appears in my library and every page is there. But when I do the same from sharepoint he only gives one page.
When I go back to my flow, I see that my ‘File name’ is changed, see picture 2.
Could this be the problem or is it something else?
Picture 1

Picture 2

Thank yoy for helping.
Gtz