Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Answered

When a row is added, modified or deleted in Power Automate

(0) ShareShare
ReportReport
Posted on by 234

Hi everyone, 

 

How come when a row is added in Dataverse through a basic form in Power Pages, the subject action in Power Automate triggers twice, one sdkMessage: Create and one sdkMessage: Update?

 

I looked at the body() of the action and there's no difference between the two, only the sdkMessage and modifiedOn. 

 

There are no other flows that update the line item, can anyone tell me why this is? Thank you. 

Categories:
  • apangeles Profile Picture
    234 on at
    Re: When a row is added, modified or deleted in Power Automate

    Hi @Fubar@Lucas001@ragavanrajan,

     

    I think @ragavanrajan's argument is plausible. Since the record should be available, the Notes table acts as an edit to the existing record. This is similar to a subgrid inside a basic form but different too because the record isn't created yet. I assume that the steps would be record creation first, then the Notes will trigger to serve as an edit or update to the created record. 

     

    I'm using the standard, not the enhanced. To successfully use Power Automate for forms with uploads, I used multi-step forms and an Attestation field at the final step to serve as the final Update action for the following record. 

     

    The issue can be solved by this simple solution, however, the issue is unexpected for the majority of people who assume when they attach files and then submit a record the first time, they expect a Create sdkMessage. 

     

    Thank you for your help!

  • Fubar Profile Picture
    7,955 Super User 2025 Season 1 on at
    Re: When a row is added, modified or deleted in Power Automate

    Is this when you have the Attachments checkbox on the Form ticked or are you only using metadata (I suspect it may be the Attachments checkbox)? also, are you using standard or enhanced PowerPages setup?

    It is possibly a bug, but I would turn on Auditing and then in a Model Driven app look at the Audit History to see what may be being updated? There could be another plugin or workflow that is running that may or may not be the portal code.

  • Verified answer
    ragavanrajan Profile Picture
    7,036 Most Valuable Professional on at
    Re: When a row is added, modified or deleted in Power Automate

    Hi @apangeles 

     

    The simple answer I can think of is

     

    When you submit a form without uploading an attachment through notes, the sdkMessage will be "Create". 

    Ans: You are creating a record. While creating record attaching "Notes" is not allowed.  

    2.  but if you upload an attachment through notes, the sdkMessage will be "Update".

    Ans: Because this is not "Insert" mode. You are in "Edit" mode.  The record should exist. Then you can update the notes. 

     

    Probably this is the reason, sdkMessage is showing "Create" and "Update". 

     

    Hope it helps.
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

  • Lucas001 Profile Picture
    2,174 Super User 2025 Season 1 on at
    Re: When a row is added, modified or deleted in Power Automate

    Hi @apangeles,

     

    sounds really strange to me. The only thing I can imagine is that the note is handled separately in the backend.

    Meaning that the note is always set as "null" or blank() and only when you upload something the value before is "updated".

     

    But this is only a guess and I cannot verify it in the end. Maybe @saudali_25  or @ragavanrajan have already come across that topic or have another opinion. 

  • apangeles Profile Picture
    234 on at
    Re: When a row is added, modified or deleted in Power Automate

    Hi @saudali_25 and @Lucas001 ,

     

    I just revisited and came about this issue again in my flows and pages. When you submit a form without uploading an attachment through notes, the sdkMessage will be "Create" but if you upload an attachment through notes, the sdkMessage will be "Update". Any clue as to why this is? I looked at the JSON of the trigger as well as the action Get a Row by ID and it doesn't seem to have any difference whether the sdkMessage is Create or Update.

     

    Thanks in advance. 

  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at
    Re: When a row is added, modified or deleted in Power Automate

    Hi @apangeles ,

     

    Have you tried to skip upload action in your flow to see if it works as required?

     

    Thanks,

    Saud

  • apangeles Profile Picture
    234 on at
    Re: When a row is added, modified or deleted in Power Automate

    I only used a basic form through a subgrid component. The use case is the Account table is related to another table associating additional/other addresses to the account such as subsidiaries, satellite offices, etc. 

     

    The subgrid is placed inside the account information for the user to add these additional addresses through a popup form. 

     

    Their inputs go to Dataverse then when an item is created in Dataverse, the information would then be transferred via Power Automate to SharePoint. 

    ______

     

    My Power Automate flows consist of 

     

    Trigger ->

    Getting Row by ID ->

    Parse JSON ->

    List Rows (Notes (annotations) in Dataverse) ->

    Parse JSON ->

    Initialize and Set Variables ->

    Create Item (SharePoint) ->

    Upload Attachment (SharePoint) ->

    Send Email

     

    ^ Perhaps, the file upload in Dataverse through Notes triggers the double action?

  • Lucas001 Profile Picture
    2,174 Super User 2025 Season 1 on at
    Re: When a row is added, modified or deleted in Power Automate

    Hi @apangeles,

     

    through what kind of form is the row added or updated?

    As you pointed out correctly, the normal behaviour would one of those action.

     

    When you create a new useraccount in PowerPages, is the account created and updated as well?

    Otherwise it seems to be an issue with the form you used or the flow you created.

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 >