power-automatesharepoint-list

How do we resolve that a Power Automate Sharepoint "Create item" action has changes in the UI that aren't reflected in Code View?


Changes to target different columns in a Power Automate Sharepoint list "Create item" action aren't reflected in the Code View of the action.

Although undesirable in and of itself this can cause a related problem. When you put a flow in a solution then export/import the solution to a new environment (or do this via a Pipeline): the flow in the target environment doesn't get updated according to what you set in the flow in the source environment, through the UI.

Reproduce the UI update V Code View mismatach:

SharepointList

Flow UI changes to Create Item

      {
      "type": "OpenApiConnection",
      "inputs": {
        "parameters": {
          "dataset": "https://example.sharepoint.com/sites/MST_EXA_ExampleSite",
          "table": "some-guid",
          "item/CoolCountry": "MexicoDEV",
          "item/SubmissionDateTime": "@{utcNow()}"
        },
        "host": {
          "apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
          "connection": "shared_sharepointonline",
          "operationId": "PostItem"
        }
      },
      "runAfter": {}
      }

Code view


Solution

  • In a sharepoint list: