web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : Eu0AVLfbjhr+SaSh0oMXoL
Power Apps - Building Power Apps
Unanswered

can we upload file before creating record in Model driven app?

Like (0) ShareShare
ReportReport
Posted on 25 Mar 2022 11:16:07 by 121

Hello Experts, 

 

I have below requirement in model driven app,

I have one entity and it has one of the columns of File data type,

In that entity I have one record with html file attatched to that record (as it has file data type column)

 

now I want to clone that record to new record, in this process I want to read the html file from the older record and create a new record, here I am able to capture all the fields but not able to capture the html file from the older record to new.

because before creating record I want to patch the html file to new record, but it is showing that below message "This record hasn't been created yet. To enable file upload, create this record"

praneshJ_0-1648206561271.png

 

how to solve this issue?
what are the best possible ways to achieve this?

 

any quick response is really appreciable

 

Regards,

Pranesh

 

I have the same question (0)
  • ChrisPiasecki Profile Picture
    6,414 Most Valuable Professional on 27 Mar 2022 at 17:48:08
    Re: can we upload file before creating record in Model driven app?

    Hi @praneshJ,

     

    You'll need to create the record before you can update it with any file column data, therefore 2 operations are required. This is the current behavior/design of Dataverse file and image column types.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • praneshJ Profile Picture
    121 on 28 Mar 2022 at 05:01:01
    Re: can we upload file before creating record in Model driven app?

    Hello @ChrisPiasecki ,

     

    Thanks for the response, now I got it, this process should go through two stesp as you mentioned 

    1. The records first need to be created 

    2. Then file needs to be attached.

     

    Is there any blog spot which will help me to implement this?

     

    Thanks in advance!

     

    Best Regards,

    Pranesh

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 629 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 397 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 232 Moderator

Last 30 days Overall leaderboard