Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Answered

Delay Record Creation in Power Pages Multi-Step Form Until Final Step Completion

(2) ShareShare
ReportReport
Posted on by 28

I’m working with a multi-step form in Power Pages that includes two forms: Form 1 and Form 2.

  • Form 1 collects user details.
  • Form 2 allows users to upload attachments.

Currently, after submitting Form 1, the record gets created in Dataverse, and then Form 2 opens to upload attachments.

The issue is:
As soon as the record is created (after Form 1), my Power Automate flow is triggered because it runs on record creation. This happens before the attachment is uploaded in Form 2. As a result, the email sent by the flow does not include the attachment.

What I Want to Achieve:

I want the record to be created only after the entire multi-step form is completed, so that:

  • The attachment from Form 2 is properly saved to the record.
  • My Power Automate flow (triggered on record creation) runs only after all steps are completed and includes the attachment.

Looking For:

  • A way to delay record creation until the final step (Form 2) is submitted.
  • Or any alternative approach where the flow runs after all form steps are completed, including attachment upload.
 
Categories:
  • Verified answer
    Asutosh Patel Profile Picture
    28 on at
    Delay Record Creation in Power Pages Multi-Step Form Until Final Step Completion
    @stampcoin Thank you for the suggestion. I have now added the following logic to the flow, and it works as expected:
     
    Trigger= When a row is added, modified or deleted.
    • Trigger type = Modified
    • Scope = Organization
     
    I added the following trigger condition to the flow: not(empty(triggerOutputs()?['body/cr336_fileattachments'])

     
  • Verified answer
    stampcoin Profile Picture
    2,133 on at
    Delay Record Creation in Power Pages Multi-Step Form Until Final Step Completion
    What I tested is :
     Trigger= When a row is added, modified or deleted.
    • Trigger type = Added or Modified
    • Scope = User
    • Select columns= attachmentColumName, I used logic name
    When I added a record, it triggered twice, one is do nothing, since nothing happens against to attachment column.
    You can also add a Do until, after the trigger:
     Loop until:
    @equalt(empty(triggerOutputs()?['body/YourAttachmentColumnName']),false)
    Count = for example 10.
    Add Delay inside of that:
    count = 5, Unit= second.
     
    after that add other action you want the flow  to do.
     
    try that and adjust the setting according your scenario. hope that help.
     
     
        
     
     
     
     
  • Asutosh Patel Profile Picture
    28 on at
    Delay Record Creation in Power Pages Multi-Step Form Until Final Step Completion
    @Fubar@stampcoin , To enable attachments, I’ve used a multi-step form. However, my requirement is to have a single form. So, is there any way in Power Apps to enable the File column for attachments without creating the record first?
  • Asutosh Patel Profile Picture
    28 on at
    Delay Record Creation in Power Pages Multi-Step Form Until Final Step Completion
    @stampcoin thanks for sharing the suggestion. However, the issue is that if I add a condition to run the flow when an attachment is added, it doesn't work as expected.

    The file column in the attachment is only populated when the record is first created—i.e., when the user submits the form for the first time. At that point, the flow runs, but there’s no attachment yet, so no email is sent.

    Later, when the attachment is actually added to the record, it counts as an update, but the flow doesn't run again because it's not triggered by updates to the attachment field.

    As a result, the user never receives an email notifying them that the attachment was added.

  • Suggested answer
    Fubar Profile Picture
    7,930 Super User 2025 Season 1 on at
    Delay Record Creation in Power Pages Multi-Step Form Until Final Step Completion
    There is only 1 way to not have a record created on the first step of a multistep form, and that is if you use the generate steps option when you create the first step. To use this option, you must only be using 1 dataverse table and 1 form for that table, as the steps are generated based on the Tabs on the form you use (and you cannot add additional steps, you just define 1 steps and the system renders multiple steps for you). See the Autogenerate Steps From Form Tabs:
     
    Alternatively, change the trigger on your Flow to an update of a specific field. On your last Step define a Metadata record (can be done from the Power Pages Management app when on the Step definition). of type Attribute and then set a value e.g. select  Status Reason as the attribute, then set its value to Submitted (the number that represents the status reason). When the user submits the last step, the field will be updated with the value in the metadata record and give you an update trigger on the attribute.
     
  • Suggested answer
    stampcoin Profile Picture
    2,133 on at
    Delay Record Creation in Power Pages Multi-Step Form Until Final Step Completion
    Have you tried to modify the trigger only  work when the attachment field added ?
    For example, Below from my environment, only when the attachment added, it does something, otherwise, do nothing.
     
     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >