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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / When a row is added, m...
Power Pages
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 252

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:
I have the same question (0)
  • Lucas001 Profile Picture
    2,429 Super User 2025 Season 2 on at

    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.

  • apangeles Profile Picture
    252 on at

    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?

  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @apangeles ,

     

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

     

    Thanks,

    Saud

  • apangeles Profile Picture
    252 on at

    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. 

  • Lucas001 Profile Picture
    2,429 Super User 2025 Season 2 on at

    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. 

  • Verified answer
    ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    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.

     

  • Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at

    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.

  • apangeles Profile Picture
    252 on at

    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!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard