Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Flow won't work through powerapps. Only through Triggers while testing

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I was building a flow and was being helped by a man in the Powerapps community. Flow is now working but only while testing with the trigger action. When the flow is activated through powerapps, it doesn't work. Something about access to the Sharepoint folder? I've given access to the folder for all users of the company.

 

Reference to problem: (towards the end of the forum 

https://powerusers.microsoft.com/t5/Building-Power-Apps/Inputting-Datafields-from-Powerapps-for-Power-automate-flow/m-p/534245#M163954

  • yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on at
    Re: Flow won't work through powerapps. Only through Triggers while testing

    Hi @Anonymous 

     

    IN the create word document pdf action, can you remove the format date time expression from the file name and in that place, select the display name of the file created from the previous action? 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on at
    Re: Flow won't work through powerapps. Only through Triggers while testing

    Hi @Anonymous 

     

    The date i added above was for dd (date) and ss (second). For month, you can add as dd-MM. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    on at
    Re: Flow won't work through powerapps. Only through Triggers while testing

    @yashag2255 

     

    I am getting a similar error within the "ConvertWordDocumentoPDF" action of the flow.  This flow was copied (save as then turned on) from another flow. May that be the issue? The word doc works and is transferred within Sharepoint but fails at the pdf part. The reason why "File was copy and pasted from another working flow because I can't click on the File I want the pdf to go towards. I have to manualyl type it in. Why can't I click on "Standard Submissions" within the Sharepoint drop down they give me?

     

    Error:

    {
      "status"400,
      "message""The selected file doesn't exist, please select a valid file and drive.\r\nclientRequestId: 35009071-94b5-4c35-9e26-1ee3bc6c3278",
      "error": {
        "message""The selected file doesn't exist, please select a valid file and drive."
      },
      "source""wordonlinebusiness-wus.azconn-wus-01.p.azurewebsites.net" }
    333.png
  • Community Power Platform Member Profile Picture
    on at
    Re: Flow won't work through powerapps. Only through Triggers while testing

    @yashag2255  I added the code within the expression of file name before file name. Numbers appeared to create a unique ID but no date like 4/21 (today's date)?ggt.png

  • Verified answer
    yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on at
    Re: Flow won't work through powerapps. Only through Triggers while testing

    Hi @Anonymous 

     

    Add this expression before the filename, formatDateTime(utcNow(),'dd-ss')

     

    This will add todays date and the seconds from the timestamp to the name of the file. 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    on at
    Re: Flow won't work through powerapps. Only through Triggers while testing

    @yashag2255  I removed the flow, created a copy one within power automate and then ran it through powerapps. It ran smoothly. Ran it a second time, it failed. Although, when testing it in power automate the flow works. So I think the problem is the unique identifier. The name for the word doc and pdf is "vFileName." Do you think this is the issue? The name has to be unique? And if so, how do I do this? A time stamp or ID added somewhere to the name? 

  • yashag2255 Profile Picture
    24,442 Super User 2024 Season 1 on at
    Re: Flow won't work through powerapps. Only through Triggers while testing

    Hi @Anonymous 

     

    This is one of the most common errors in Flows with Power Apps. This happens when you add an action to the flow after adding the flow to Power Apps. You might want to remove the flow from the app and then add it back to the control that is being used in the app to trigger it. 

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    on at
    Re: Flow won't work through powerapps. Only through Triggers while testing

    flow 55.png @DeepakS Please clarify if "shared_sharepointonline_1" if this should be a folder within my Sharepoint (it's not), a phrase to input, or what is it?

    This is my flow, the error is within "Create file." I have updated the "Createfile_Filename" to "Createfile_Filename_1." It still does not work. I do not have a "shared_sharepointonline_1" folder. Or where can I find this name? Or do I just input "shared_sharepointonline_1" within File Name? The flow works only with manual trigger of when I fill in the data fields within power automate, not within powerapps. 

  • DeepakS Profile Picture
    2,301 Most Valuable Professional on at
    Re: Flow won't work through powerapps. Only through Triggers while testing

    Hi @Anonymous 

     

    After looking at the error message that you posted in Power Apps forum , it seems you are using incorrect connection  in create file action. update the connection and flow should work

    Fileconn.png

     

    Regards

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.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,587 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow