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.
I want the record to be created only after the entire multi-step form is completed, so that:
@equalt(empty(triggerOutputs()?['body/YourAttachmentColumnName']),false)
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.