Power Pages - How to upload a file in SharePoint using Power Automate?

Поделиться
HTML-код
  • Опубликовано: 26 янв 2025

Комментарии • 19

  • @edencanada
    @edencanada 3 месяца назад +1

    Is there a limit for file size? KB size files are uploaded fine. However, MB size files throwing error.

    • @abm4975
      @abm4975  3 месяца назад

      What error are you getting?

    • @abm4975
      @abm4975  3 месяца назад

      Try open the create file action step > settings > disable "Allow Chunking" from the Content Transfer.

    • @edencanada
      @edencanada 3 месяца назад +1

      @@abm4975 The error is from the Javascript "Error uploading files."

    • @edencanada
      @edencanada 3 месяца назад +1

      @@abm4975 The error is not from Power Automate. In fact the Power Automate flow is not even getting kicked. The error is exception from the JavaScript code "Error uploading files.". This is only happening for larger files.

    • @abm4975
      @abm4975  2 месяца назад

      Could you please give me bit more context about this? Where this JScript is implemented?

  • @edencanada
    @edencanada 3 месяца назад +1

    Good stuff. Thanks.
    On submitting the Power Page form, an entry should be done in the Candidates table in the Dataverse and FileName, URL & type of File (Certifcate, Resume) should be entered in Files table in the Dataverse. Then in the model driven app. When a Candidate name is clicked it should show the Candidate details as well as a subgrid with the files of the candidate. I guess the same Power Automate flow could add two records in the Files table.
    The entry into the Candidates table can be done through JavaScript on submit and the entries into the Files table can be done using Power Automate.
    Is my approach right or do you have some better suggestions?
    Thanks once again.

    • @abm4975
      @abm4975  3 месяца назад

      If you want to upload two files then you need to create two separate files (file data type) in dataverse. All this can done via part of file upload. No JScript needed at all.

    • @abm4975
      @abm4975  3 месяца назад

      Hi
      I have got another video regarding how to retrieve the files from SharePoint.
      ruclips.net/video/berkmWoILaY/видео.html

    • @edencanada
      @edencanada 3 месяца назад +1

      @@abm4975 Thanks

    • @edencanada
      @edencanada 3 месяца назад +1

      @@abm4975 Thanks.

  • @harikiran9385
    @harikiran9385 Месяц назад

    Hi, I am getting the below error in "create file" at the flow when I try to trigger the flow manually. Could you please help me how I can resolve this error
    InvalidTemplate. Unable to process template language expressions in action 'Create_file' inputs at line '0' and column '0': 'The template language function 'base64ToBinary' was invoked with a parameter that is not valid. The value cannot be decoded from base64 representation.'.

    • @edencanada
      @edencanada Месяц назад

      The best way is to download the HTML file and the JavaScript file *exactly as is* from the link given in the description. And create the Power Automate exactly as mentioned in the video. Don't change anything. Even the titles in the steps of the flow should be the same and it will work. After it works play around to make changes as you need.

    • @harikiran9385
      @harikiran9385 Месяц назад

      @ Thank you. I will try to do this.

    • @harikiran9385
      @harikiran9385 28 дней назад

      @@edencanada When I try to do as is, the flow is triggering and running successful only if I have the flow till compose, but when I have create file in the flow, the flow doesn't work. Any idea on what could be the problem.

  • @samirsamal3125
    @samirsamal3125 3 месяца назад +1

    Hi
    It's a very good video.
    But in video voice sound is very low.
    Could you please improve this.
    Thank you

    • @abm4975
      @abm4975  3 месяца назад

      Ok next time. Thanks for the support.