How to Create SharePoint Items with Power Automate Desktop

How do it create...

Overview

Power Automate Desktop is a great way to automate many of your daily task so you can focus on real work. A prime example of this is getting data from one place to another, especially when those data sources do not have an API such as a legacy desktop application or a file.

In this example I demonstrate several ways in which an Excel sheet containing fictitious customer data could be loaded into a SharePoint list. In order to do this I first generated some fake data for my customers using Mockaroo.

Excel Data

I then created a new SharePoint list and added some columns to match my spreadsheet.

New SharePoint List

Methods

My original plan was to just use the PAD recorder, which I did, but after creating that Flow I decided to find other possible ways to accomplish the task. The list below is not a complete list but should provide some ideas. The flexibility of PAD allows for an even wider range of possibilities for carrying out tasks such as these.

At the end of each section I have placed the source for each of these Flows. If you copy the code you can then right click on PAD designer action area and select paste. The code you copy will be automatically converted to actions. This is a great way to get started.

Screen Recording

The first way for creating a SharePoint item I will cover is using the screen recorder. The video below demonstrates how I used the PAD recorder to open the SharePoint site and create a new item. I was then able to utilize that record with my PAD designer and drag-and-drop the other activities needed for adding the Excel data in.

Record Creating SharePoint Item

One issue i did run into while building this automation was that after the first record creation the validation on the SharePoint create screen always said that my required field were not filled in even though they were. To work around this I added a Browser Reload Web Page action at the start of each loop to reload the SharePoint list url.

This is the final result for the recording method.
Final PAD Flow for Recording

If you copy the code below you can paste it into the Power Automate Desktop design surface to get started.

Excel.LaunchExcel.LaunchAndOpen Path: $'''C:\\Files\\Desktop\\MOCK_CLIENT_DATA.xlsx''' Visible: True ReadOnly: False LoadAddInsAndMacros: False Instance=> ExcelInstance
@@timestamp: '01/27/2022 02:14:39'
@@source: 'Recorder'
@@culture: 'en-US'
WebAutomation.LaunchEdge.LaunchEdge Url: 'https://yoursharepoint.sharepoint.com/sites/Clients/Lists/Client%20Contacts/AllItems.aspx' BrowserInstance=> Browser
Excel.GetFirstFreeColumnRow Instance: ExcelInstance FirstFreeColumn=> FirstFreeColumn FirstFreeRow=> FirstFreeRow
Excel.ReadFromExcel.ReadCells Instance: ExcelInstance StartColumn: 1 StartRow: 2 EndColumn: FirstFreeColumn - 1 EndRow: FirstFreeRow - 1 ReadAsText: False FirstLineIsHeader: False RangeValue=> ExcelData
LOOP FOREACH CurrentItem IN ExcelData
    WebAutomation.GoToWebPage.ReloadWebPage BrowserInstance: Browser
    @@timestamp: '01/27/2022 02:16:24'
    @@source: 'Recorder'
    @@culture: 'en-US'
    WebAutomation.Click.Click BrowserInstance: Browser Control: appmask['Recording']['span']
    WebAutomation.PopulateTextField.PopulateTextField BrowserInstance: Browser Control: appmask['Recording']['input'] Text: CurrentItem[1] EmulateTyping: True UnfocusAfterPopulate: False Mode: WebAutomation.PopulateTextMode.Replace
    WebAutomation.PopulateTextField.PopulateTextField BrowserInstance: Browser Control: appmask['Recording']['input 2'] Text: CurrentItem[2] EmulateTyping: True UnfocusAfterPopulate: False Mode: WebAutomation.PopulateTextMode.Replace
    WebAutomation.PopulateTextField.PopulateTextField BrowserInstance: Browser Control: appmask['Recording']['input 3'] Text: $'''WR - %CurrentItem[3]%''' EmulateTyping: True UnfocusAfterPopulate: False Mode: WebAutomation.PopulateTextMode.Replace
    WebAutomation.PopulateTextField.PopulateTextField BrowserInstance: Browser Control: appmask['Recording']['input 4'] Text: CurrentItem[4] EmulateTyping: True UnfocusAfterPopulate: False Mode: WebAutomation.PopulateTextMode.Replace
    WebAutomation.PopulateTextField.PopulateTextField BrowserInstance: Browser Control: appmask['Recording']['input 5'] Text: CurrentItem[5] EmulateTyping: True UnfocusAfterPopulate: False Mode: WebAutomation.PopulateTextMode.Replace
    @@timestamp: '01/27/2022 02:16:38'
    @@source: 'Recorder'
    @@culture: 'en-US'
    WebAutomation.Click.Click BrowserInstance: Browser Control: appmask['Recording']['span 2']
END
Excel.CloseExcel.Close Instance: ExcelInstance
WebAutomation.CloseWebBrowser BrowserInstance: Browser

# [ControlRepository][PowerAutomateDesktop]
{
  "ApplicationInfo": {
    "Name": "ClipboardControlRepository",
    "Version": "1.0"
  },
  "Screens": [
    {
      "Controls": [
        {
          "AutomationProtocol": null,
          "ScreenShot": "iVBORw0KGgoAA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Y0kv5XPQIlLwBrStYxzMu8clcSAnyPfF9LZ9nsUjcQITf+L2TmbJVXOiWNizP0WUJYuMTmVQkPMdSsYRNsQ91x23dq5An3a+T+k+REF2xN61suSrL7qRBFlPBUXJE3jWn0Tym47lkRk8qujnL4jqUZZ8XuSFygXd1Mjr91qXGxUCl8w7uZ7AJTcSuZhGdk1QCbKeCizZZ1RgyT6jAkv2GRVYss+owJJ9hH9weEGCqHeln846LS1x+1sxq6WAul4N1yM5nbYXLFsKqOvVcD2SWwyWTABLJoAlE8D/wE4Q3skEsGQCWDIBLJkAlkwASyaAJRPAkglgyQSwZAJYMgEsmQCWTABLJoAlNx3gL98grdEytSjrAAAAAElFTkSuQmCC",
          "ElementTypeName": "span",
          "InstanceId": "30e39dae-9a80-45f5-bc73-37ec46a06b6f",
          "Name": "span",
          "SelectorCount": 1,
          "Selectors": [
            {
              "CustomSelector": "html > body > div:eq(0) > div > div:eq(1) > div:eq(0) > div:eq(1) > div:eq(2) > div > div:eq(1) > div:eq(1) > div:eq(1) > div:eq(0) > div > div > div > div > div > div > div:eq(0) > div:eq(0) > button > span > span > span",
              "Elements": [],
              "Ignore": false,
              "IsCustom": true,
              "IsWindowsInstance": false,
              "Order": 0
            }
          ],
          "Tag": "span"
        },
        {
          "AutomationProtocol": null,
          "ScreenShot": "iVBORw0KGgoAAAANSUhEUgAAAyYAAABgCAYAAADo3mbeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAvESURBVHhe7d37k9X1fcdx/yR1WmNbazKTZCbqtKkx6DQRm6DB65CZkspF7ZhIWqZGbgFMq6wYcZhwkYuLkcVxCS4mIAXCRfAKAiqCiCG7yyW7vHveH/ash+0Cu3L5LvB4zDxn13O+5+xZ/OX78nuOXPH+++/Hu+++G2+99Va8+eabsXnz5tiwYUMAAABcKIYJAABQOcMEAAConGECAABUzjABAAAqZ5gAAACVM0wAAIDKXbFly+bYvOmPsXHD+vjfd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ZA2XTpk3l9sZhsm/fvhg/bmzv806ePCk6Ojp6X8+SJYvj7pEj45vf+Hq0tCyP5ubm+NpXr49v/+M/9D5f/hk909RUbs/mzHmu36tKAABwsRkywyRP9pfUTvBblr8cs5tmxfZt2+J3K1vLwJj3m7nx4tIlcaR2zGCvmNQHRZbDob9h8sMf/iD27v24PG7mjBnx2GM/O+mEfyBXTPL+zz77rLx1bNzYMWV0NA6T9vb28jO6u7tj544dcct3bq79Oa/vfT0zpk+PQ4cOlZ+fbwtbsGB++R3HjhnT+3pylOT9+X0+1113jojVq1eX5wcAgIvZkBkm+dmPpUsWR3dXV/z+9dXx0rLmeHLm9PjtS8ui7bVV5b68kpJv8xrMMGn8jEn+n7z6Gyb18ZBeeeWVuP7vr4upU6bUftbuOH78+ICHSR6Xryvf0rWipeWkYZKDav68eTFy5I/KVZH+hlLKrzla8vdM+dz5Gvd98kkZUI1DKzvVawIAgItHxP8B9F1+QH+oLEUAAAAASUVORK5CYII=",
          "ElementTypeName": "input",
          "InstanceId": "1ad356db-2912-4cdc-a538-f7fb3345bdd0",
          "Name": "input",
          "SelectorCount": 1,
          "Selectors": [
            {
              "CustomSelector": "html > body > div:eq(0) > div > div:eq(1) > div:eq(2) > div > div:eq(3) > div > div > div:eq(3) > div > div > div:eq(1) > div > div > div > div > div:eq(2) > div:eq(0) > span > div:eq(0) > div > div > input",
              "Elements": [],
              "Ignore": false,
              "IsCustom": true,
              "IsWindowsInstance": false,
              "Order": 0
            }
          ],
          "Tag": "input"
        },
        {
          "AutomationProtocol": null,
          "ScreenShot": "iVBORw0KGgoAAAANSUhEUgAAAyYAAABgCAYAAADo3mbeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAwzSURBVHhe7d39c1WFncdx/yR1WuvuWtuZtj+0nd2udbFTNa6C0lmr9gGrgtZtiwhbKhoKtC4QQaFMbacmJDwITmkRqFgWuhAEHATkSQqDUJaHwADfvd9DTry5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q1KnuowAAgKFgSA2TkydPRsvsmbF3797Y/f778ebKld1HfWSww+TgwYPR1HR3tLW1FiOltG/fvj4HDwAAUJ0hNUx21h5LR/vCWLHit8UwmffKyzF92tTYunVL7bFtjik/mRydtcc3mGGSo+buu+6Mw4cPd9/SW/68l1paipd35cu8vvfomNi/f39x39Tm5njsse/F/Pnz4uZP3RSPP/ZYvPvuu/GtRx4pjp3y3HPFVZds3Lix8cz48fH881OKY0eNHBm7du4sztPR0RG3/etX4sYbro87Royo/buuL27P8z86Zkw0v/BCr+/Jn3H7V2+LrVu2FMedOH48vvudb8fSpUuLrwEAYLgaMsMkn+S3tb4Wy15fGnNaZhdPzn//uxVx5MiRePWXC6J9YVt01Y4Z7BWT1tq5cjT09bKtfJlYvrzrgftHxd69e+LYsWPFsMixcOLEiWI45KDIx7B169bi82+MHl0cu2rVqvjC5z9X+3fa2DNM7mlqip21YZHnmTz5xz3nyePz47lz5+LFn/88nv7+U8XVmvL8OVQOHDgQDz/8UMyYPr04Nr/3F/PnF48zf8Z9991bXP0BAIDhbMgMk0OHDsXCttY4VxsNf1izOhYv6oifzZgWSxYvilVvrizuyysp+TKvwQyT5cuXF0/q+zoub8v78phSjpCv3TEi8t8jh0M5asrxMXvWrOK4HEo5RNatW/dX96W8Pe/P43LU/PAHPyiuluSVlvKc9edP+fX48T8q/tJYXh3JqyR5tSTPO2vWzF4vRQMAgOEn4v8B9CulrZ4rTyUAAAAASUVORK5CYII=",
          "ElementTypeName": "input",
          "InstanceId": "dae70276-c98f-4162-a2f1-0fb4fc78b848",
          "Name": "input 2",
          "SelectorCount": 1,
          "Selectors": [
            {
              "CustomSelector": "html > body > div:eq(0) > div > div:eq(1) > div:eq(2) > div > div:eq(3) > div > div > div:eq(3) > div > div > div:eq(1) > div > div > div > div > div:eq(2) > div:eq(1) > span > div:eq(0) > div > div > input",
              "Elements": [],
              "Ignore": false,
              "IsCustom": true,
              "IsWindowsInstance": false,
              "Order": 0
            }
          ],
          "Tag": "input"
        },
        {
          "AutomationProtocol": null,
          "ScreenShot": "iVBORw0KGgoAAAANSUhEUgAAAyYAAABgCAYAAADo3mbeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAArMSURBVHhe7d37c9X1ncdx/iR1ttbtbC9T7Q+97G5tx+7aGmerlc62xd3W1gt1q1tFaK0oFLWuwFqRMsVOIdyFGdMi4sRS6EBComMltogMjEBtEgJDePe8v+TEY3oIgRz4xPh4zDwnyTnfc0jCL+c13/OFGa+//nq89tpr8corr8TevXtjz549sWvXrgAAALhUDBMAAKA4wwQAACjOMAEAAIozTAAAgOIMEwAAoDjDBAAAKM4wAQAAijNMAACA4gwTAACgOMMEAAAorvgwOXnyZHR3d8WunTsnXB6fjwMAAKaH4sPkL8eOxaKFC+Llzs6mI2RseVwen487l9OnT0dXV1d84xv/GVd+6B/iEx//WKxYsSJOnTo1cgQAADAVTIlh8vOnlsbQ0NDILWfkeDhx4sTIV+/K4/L4cw2THCVr166Nj330n+L/nngi3nrrrdi+/cX40bx5cfz48ZGjAACAqWBKDZPBwcFYuuTJ2L9/f/zpjTfiha1bR45610SHyaFDh6Kt7YZob19djZS6N998s+ngAQAAyplSw2Rf7XtZt3ZNdHQ8Xw2TZ5Y9HY8uWhi9vT2176075v/kweiqfX8TGSY5am74ypfj7bffHrnlvfLP+/+lS6u3d+XbvL733dviwIED1X0LFyyI22//Xixf/kxc9eEr447bb49XX301/uvWW6tj5z/0UHXWJZs9+664/7774uGH51fH3nzTTdG3b1/1POvWrYtrP/+vccXll8WXrruu9nvdWd2ez//d226LBY888p7H5J/xxS9cG709PdVxA/398Z1v/3ds2rSp+hoAAKarKTNM8kV+++pVsfm5TfHU0iXVi/Pf/qYjjh49Git/uSLWrmmPodoxEz1jsrr2XDkamr1tK98mlm/vuuVrN8f+/X+Od955pxoWORYGBgaq4ZCDIr+H3t7e6vOvz5xZHbtt27b41DVX135Pu0eHyY1tbbGvNizyeR588M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LkBAOCDaEoMk58/tTSGhoZGbjnj1KlT1QAYK4/L4yc6TFasWFF9ng3094/cOzmHDx+Om2+6KTo6OgwTAABogSk1TAYHB2Ppkidj//798ac33ogXtm4dOepd5ztMVq9eNXLLxWGYAADA5E2pYbKv9r2sW7smOjqer4bJM8uejkcXLYze3p7a99Yd83/yYHTVvr/JDJP6kPjxj+bFokU/jY/841Ux/6GHoqurK77y5evjqg9fGb9Yvrw6Y3Po0KGYfded1W3Zww/Pj4GBgcjf2Wc/8+nYsWOHYQIAAC0wZYZJvsBvr42Izc9tiqeWLonenp747W86qoGx8pcrYu2a9hiqHXO+Z0warzFpHBK3fO3m6szM9u0vxjVXf7K6LR/zq189G1/8wrXVff39/XHw4FsxPDwcffv2Vbfv2rXTMAEAgBabMsMkr9tY0746hk+dipdqY2HD+nXx+GOLYuOG9bHtha3VfXkmJQfD+QyTxmtM8l/yGjsk6sdt2bKl+jp/H21tN1QfcwQ9u3JlzJx5S3zqmqtHx41hAgAArRTxN2nDgsWH9FtPAAAAAElFTkSuQmCC",
          "ElementTypeName": "input",
          "InstanceId": "ec86ac3c-a3cd-4454-b496-5b310b397a95",
          "Name": "input 3",
          "SelectorCount": 1,
          "Selectors": [
            {
              "CustomSelector": "html > body > div:eq(0) > div > div:eq(1) > div:eq(2) > div > div:eq(3) > div > div > div:eq(3) > div > div > div:eq(1) > div > div > div > div > div:eq(2) > div:eq(2) > span > div:eq(0) > div > div > input",
              "Elements": [],
              "Ignore": false,
              "IsCustom": true,
              "IsWindowsInstance": false,
              "Order": 0
            }
          ],
          "Tag": "input"
        },
        {
          "AutomationProtocol": null,
          "ScreenShot": "iVBORw0KGgoAAAANSUhEUgAAAyYAAABgCAYAAADo3mbeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAkdSURBVHhe7d37b9X1Hcdx/yQ1m7rNbMvURHQXdXEZKmbqZDPz18nlV6lUUbSs6g8KqwI2oq4Fyj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AgAqGCQAAkJ1hAgAAZGeYAAAA2RkmAABAdoYJAACQnWECAABkZ5gAAADZGSYAAEB2hgkAAJCdYQIAAGRnmAAAANkZJgAAQHbZh8nQ0FAcPtwdXQcOTLt0fHocAABwfcg+TM6fOxfNK5pi3969VUfIxNJx6fj0uKmcPXs2Hp03L26+6cai++/7XWzfvi1GR0cjveZ775kT+/fvHzsaAADIqS6GyVstq2JwcHDslsuGh4fj0qVLYz99Kx2Xjp/uMGltbS2+37FjRzFGDh48aJgAAECdqathMjAwEKtWvhGnTp2KL0+ejF07d44d9a2ZDpP29rbi5/S7Fy5YUPxsmAAAQH2pq2FyovRcOjZuiM7OD4thsmb12/Fq84ro6Tlaem6HY/mLy6K79PxqNUzeWbs2Hn5obtx26y2xZs3q4ixNkv4e/jJ/fvERsDl33x0bN24s7rt48WIsXrwoljz7bNEtP/5RPPPM3+PMmTPF486VntOyZS8Uvy89buvWrTEyMlLcBwAATK5uhkl607++NBq2b9saLatWRs/Ro/HxR53FwFj3bmts3LA+BkvHXM0ZkzQOdu/eXVxn8vnnn48PkzQizp8/H21tbcV9vb29ceLEiXjg/vvigw/eLz5K1tV1oPh5z54948Pkscf+FL2l444fPx5/ePDB6OjoKI59rmFJ8bvSn9fT0xNz5/6x+PMAAICp1c0wOX36dGxY3x4jw8Px6Sd7YvOmjnj9tebYsnlT7N61s7gvnUlJH/OayTApX/x+1513xLbS6Kl28Xv6OY2PQ4cOFiPjqaf+GhcuXCjuS2dKXni+MVY0NY0Pk/R9Uv555ZtvFqPmt7/59fifV87HxQAA4Eoi/g/lFMmApH+CVwAAAABJRU5ErkJggg==",
          "ElementTypeName": "input",
          "InstanceId": "520d3912-1a9a-40ee-91a9-c4dccff2537b",
          "Name": "input 4",
          "SelectorCount": 1,
          "Selectors": [
            {
              "CustomSelector": "html > body > div:eq(0) > div > div:eq(1) > div:eq(2) > div > div:eq(3) > div > div > div:eq(3) > div > div > div:eq(1) > div > div > div > div > div:eq(2) > div:eq(3) > span > div:eq(0) > div > div > input",
              "Elements": [],
              "Ignore": false,
              "IsCustom": true,
              "IsWindowsInstance": false,
              "Order": 0
            }
          ],
          "Tag": "input"
        },
        {
          "AutomationProtocol": null,
          "ScreenShot": "iVBORw0KGgoAAAANSUhEUgAAAyYAAABgCAYAAADo3mbeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAgLSURBVHhe7d3bj5R3Hcdx/qS20eq9moD10KposWDsTbWmFypt6cE7QLCYKgRq6gKpAhIPlGM5JqAUrBhgEyiwIIetISR1Q2Apy0l2f873B8/2cZmdZcnS3zB9vZJ3dg7P7Oz0aj55Zsqk06dPp5MnT6bjx4+no0ePpsOHD6fu7u4EAADwSTFMAACA4gwTAACgOMMEAAAozjABAACKM0wAAIDiDBMAAKA4wwQAACjOMAEAAIozTAAAgOIMEwAAoLjiw+TGjRvpyJH3U/fBg3ddHB+PAwAAOkPxYdJ/8WJavGhh+ue+fU1HyMjiuDg+HtfKhQsX0vdmzEiPPPxQ7onHv562b9+WhoaGUrzmx748Je3fv//20QAAQEltMUx+99bydO3atdu33HLz5s10/fr129c+FsfF8Xc7TFavXp0v79ixI4+RQ4cOGSYAANBm2mqYXLlyJS1f1pXOnj2b/v3BB+nd3btvH/Wx8Q6TdevW5uvxu1+aNStfN0wAAKC9tNUwOdP4WzZt3JB27dqZh8nKFb9PSxYvSj09xxp/25H0+i8XpPcbf99EDZM/rFqVnvrutPT5zz2aVq5ckc/ShPjv8INnnskfAZsyeXLauHFjvu/q1avplVdeTnNmz849+tnPpBdffCGdP38+P+5i429asOC1/PvicVu3bk2Dg4P5PgAAYHRtM0ziTf/6xmjYvm1remv5stRz7Fj621935YHxpz+uThs3rE/XGsfcyxmTGAd79uzJ3zM5ceLE8DCJEdHf35/Wrl2b7+vt7U1nzpxJ33ji8bRmzV/yR8m6uw/m63v37h0eJk8//f3U2zju1KlT6dtTp6ZNmzblY38+d07+XfF8PT09adq0J/PzA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F/o2TkcVXVc9VvkyRJkjohw6TFMKmf0ahuazZMqo9ptTquauQwqT6mVR8/o40aw0SSJEmdmmEyzjMmcdv06U81PWNSHyfNxkV1W32YxPU4YzJynNQHTP02w0SSJEmdmGHSYpjEUIjBUB8IMQyafcekuq8+TkZer86QjBwmcX/cVh8nI6/H8/mOiSRJkjo1w6TFMImqcRKDItraeEyz75jE5eqMSH24xH3VY+Ny1GyY1I+tzrLEcdVj47g4s1I9lyRJktRJGSZjDBNJkiRJ9z/DxDCRJEmSimeYGCaSJElS8QwTw0SSJEkqnmFimEiSJEnFM0wME0mSJKl4holhIkmSJBXPMDFMJEmSpOIZJoaJJEmSVDzDxDCRJEmSimeYGCaSJElS8T7lw2RLHiaSJEmSypYHye336CVM/DDp7b01PFo1f35+0WnevPzC4z+CJEmSpHINzZ07/B696Xv4evGef4JN/DCJPzRekCRJkqTOLN7zT7CyZ0ziZ7P7JUmSJH2yjec9+gNxxuRuxIu5T0sLAAC4B4XfoxsmAACAYQIAALQBwwQAACjOMAEAAIozTAAAgOIMEwAAoDjDBAAAKO5TOUyqf4TxPvzDLAAAwD0o/B69zDABAACoMUwAAIDiDBMAAKA4wwQAACjOMAEAAIozTAAAgOIMEwAAoDjDBAAAKK7YMDnf96EkSZKkB6T7zRkTAACgOMMEAAAozjABAACKM0wAAIDiDBMAAKA4wwQAACjOMAEAAIozTAAAgOIMEwAAoDjDBAAAKM4wAQAACkvpf2pMXZDitRP0AAAAAElFTkSuQmCC",
          "ElementTypeName": "input",
          "InstanceId": "298ba462-b2a0-415e-905e-8f620bf377d0",
          "Name": "input 5",
          "SelectorCount": 1,
          "Selectors": [
            {
              "CustomSelector": "html > body > div:eq(0) > div > div:eq(1) > div:eq(2) > div > div:eq(3) > div > div > div:eq(3) > div > div > div:eq(1) > div > div > div > div > div:eq(2) > div:eq(4) > span > div:eq(0) > div > div > input",
              "Elements": [],
              "Ignore": false,
              "IsCustom": true,
              "IsWindowsInstance": false,
              "Order": 0
            }
          ],
          "Tag": "input"
        },
        {
          "AutomationProtocol": null,
          "ScreenShot": "iVBORw0KGgoAAAANSUhEUgAAAGIAAABKCAYAAABAWoFVAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAOZSURBVHhe7Zpdb9owFIb71/srtmmatN3uar3uf6ggmKQhIYQlQAOUllab1GrSu+N88DWP0C7IZ/S80qs0OY5j+/GxQ5UziFhIQDCRgGAiAcFEAoKJBAQTCQgmEhBMJCCYSEAwkYBgIgHBRAKCiQQEEwkIJhIQTCQgmEhAMJGAYCIBwUQHg3h+fsLjw7IR/+wqPF1c5EdT3IaP2SY9dnU6GISu8GHnAa+17jDOzvKjKW7Dx2pTNWZ1ehGIpvyWQFSuk4AoLSAMcRsWEIa4DQsIQ9yGBYQhbsMCwhC34ZMDUf0w2udf5+d5p/XRFLfhl7TpNT/66tQ4CN1Q3aFTtu6jqe/7XCeq+TCZKjf5nzPi21c8fP6I2Yd3mL4v/ekLfuyWa9gnlxGHWHfGPLPukHgtOK0rKK+HOOoj7l/Dc31Mtso177+3qRnXiRmIEcLOFZxuiMXW9eNbQGzFbhApAtFyEKa3OzHtGdJAodvWZQp3rweYU2waOHTegj9cl6+uBak+z5D2FFR1r6MQje5WZQXETmw56sEtB6ujXMSTTSCUMS4NYDLGNEsQdYtlzB/QgM778PQ9XlyWLaEqHxkteZNeAcXrJ5iOYwQ689oukvuibgFhiD8uRhj61extwQ0SLE3lxtdQNPiqN6LzGeKuHlwPqY5lBJRi3XBCsQh+DmmwrmfooqMhxsW5gDDEVyYgxax3EGX62i0mkQdPtdBpF9mgXYCgbMoHl5aipFqWFOI53VcCq8pv2h8UzxIQhviml5EqBoxm7iL/mzIkHCLLbjBPNzOCyt8P4FMWKT/Kl6V1BlQZEdGSdrPl+aJ4joDYitGAdRSCgF5b81dXr9gv2gpDmtlZufm6oV7nh6s9YgWCnPp0rdMiQHrjrjbjGYb5azFd6xcQsySET6/I1WuxgNiKfUeYLzvrpUPlG3Y5oDOa8XqT1bG2g4BAbWWEdlpccxwPo1W95PsxYs9Z101Lm+vHq9dkAWGI2/DJgZB/+pldp8ZB6IbqDp2ydR9Nfd/nOlHNh8lUucmSEWbXqXEQh1h35rUz61g+dpvqJCBKCwhD3IYFhCFuwwLCELfh/wqEfIT8cjf+EXKTn+W/JRDajX6W36guL/NO50custwmOyDiuOiwPnKR5TbZASH6QwKCiQQEEwkIJhIQTCQgmEhAMJGAYCIBwUQCgokEBBMJCCYSEEwkIJhIQDCRgGAiAcFEAoKJBAQTCQgWAn4D/HRMHi6snHMAAAAASUVORK5CYII=",
          "ElementTypeName": "span",
          "InstanceId": "b54b28d7-719b-4e77-a97c-d97627ea5a6d",
          "Name": "span 2",
          "SelectorCount": 1,
          "Selectors": [
            {
              "CustomSelector": "html > body > div:eq(0) > div > div:eq(1) > div:eq(2) > div > div:eq(3) > div > div > div:eq(3) > div > div > div:eq(1) > div > div > div > div > div:eq(4) > div > button > span > span > span",
              "Elements": [],
              "Ignore": false,
              "IsCustom": true,
              "IsWindowsInstance": false,
              "Order": 0
            }
          ],
          "Tag": "span"
        }
      ],
      "ScreenShot": null,
      "ElementTypeName": "Web Page",
      "InstanceId": "87159776-0a1f-47cb-99f6-2a3a0826ae81",
      "Name": "Recording",
      "SelectorCount": 1,
      "Selectors": [
        {
          "CustomSelector": null,
          "Elements": [
            {
              "Attributes": [],
              "CustomValue": null,
              "Ignore": false,
              "Name": "Web Page",
              "Tag": "domcontainer"
            }
          ],
          "Ignore": false,
          "IsCustom": false,
          "IsWindowsInstance": false,
          "Order": 0
        }
      ],
      "Tag": "domcontainer"
    }
  ],
  "Version": 1
}

SharePoint REST API

The SharePoint REST API offers a huge amount of capabilities for carrying out actions within SharePoint. In order to utilize them within Power Automate Desktop we can use the Invoke web service action. In order to utilize the web service it must have the proper authentication information sent along with it. The authentication mechanism will consist of a service principal, within SharePoint there are two options for doing this. The first is App-only authentication which can be configured through the use of SharePoint pages and is detailed here. Additionally, you can utilize AD-only authentication which is newer and preferred for SharePoint Only but does not work in SharePoint On-Premise. For the scenario I choose to utilize the App-Only method due to the greater simplicity in setting it up and the ability for it to function Online and On-Premise.

Create a Service Principal

Creating the service principal and configuring it’s permissions are well documented at Setting up an app-only principal with tenant permissions

After you have created the service principal you may also need to ensure that app-only authentication is not disabled. The is detailed in the next section.

Enable Tenant for App-Only Access

Newer tenants may App-only access disabled. In order to enable you will need to update the setting for the SharePoint tenant. This can be done though the use of the SharePoint PnP PowerShell Cmdlets.

In order to install PnP and authorize it run the following commands.

Install-Module -Name Microsoft.Online.SharePoint.PowerShell
Install-Module -Name PnP.PowerShell
Register-PnPManagementShellAccess

The Register-PnPManagementShellAccess will open a web browser where you will need to authorize the managment shell app. When this screen appears click the Accept button. You can also choose if you have the proper rights to authorize this connection for your entire organization.

Authorize Management Shell

Now you are ready to update the property which will allow for App-Only authentication. After you run these commands it can take some time for it to propagate, so go grab some coffee or drink of your choice.

Connect-PnPOnline -Url https://yoursharepoint.sharepoint.com
Set-PnPTenant -DisableCustomAppAuthentication $false

Now that our authentication mechanism is all ready we will add in the first Invoke web service call which will return the bearer token we need for subsequent calls. To generate the data needed for the URL and the Request Body of the message I have created a PowerShell script which will generate these values for you by just putting in the SharePoint site url.

PowerShell to generate URL and Request Body for SharePoint authentication

Inovke web service for authentication

Next parse the JSON returned from the authentication call so that we can easily retrieve the bearer token.

Parse Authentication Response

Now we can use the Invoke web service to call a post method that will create our new item. You can see in the custom headers section where we utilized the output of the authentication call to pass our bearer token. Additional information on how to generate the Request body when working with the SharePoint REST API can be found here: Working with lists and list items with REST

Also, you will need the content type for the SharePoint list item. There are several ways to do this but the easiest I find it using a browser windows that is already authenticated to the SharePoint site and entering the following url to call the web API. Make sure you update the url to match your specific SharePoint site location and List name.

https://yoursharepoint.sharepoint.com/sites/Clients/_api/web/lists/GetByTitle('Client Contacts')/items?$select=ContentType/Name

After the data is returned just search for “SP.Data” and you will be able to see the content type(s) for the list.

Find Content Types

Here is Invoke web service action I used to generate list items.

Call SharePoint to Create Item

This is the final result for the web service call method.

Final PAD Flow for Web Service Calls

If you copy the code below you can paste it into the Power Automate Desktop design surface to get started.

Excel.LaunchExcel.LaunchAndOpen Path: $'''C:\\Files\\Desktop\\MOCK_CLIENT_DATA.xlsx''' Visible: True ReadOnly: False LoadAddInsAndMacros: False Instance=> ExcelInstance
Excel.GetFirstFreeColumnRow Instance: ExcelInstance FirstFreeColumn=> FirstFreeColumn FirstFreeRow=> FirstFreeRow
Excel.ReadFromExcel.ReadCells Instance: ExcelInstance StartColumn: 1 StartRow: 2 EndColumn: FirstFreeColumn - 1 EndRow: FirstFreeRow - 1 ReadAsText: False FirstLineIsHeader: False RangeValue=> ExcelData
Web.InvokeWebService.InvokeWebService Url: $'''https://accounts.accesscontrol.windows.net/ef0ff4be-5248-4843-9746-4bd7b801fc2b/tokens/OAuth/2''' Method: Web.Method.Post Accept: $'''application/json''' ContentType: $'''application/x-www-form-urlencoded''' RequestBody: $'''
client_id=2c2aa580-ef50-46ba-aeeb-289e03584fc3@ef0ff4be-5248-4843-9746-4bd7b801fc2b
&grant_type=client_credentials
&resource=00000004-0000-0aa2-cc00-000000000000/yoursharepoint.sharepoint.com@ef0ff4be-5248-4843-9746-4bd7b801fc2b
&client_secret=H1pp6FxAK3jeJu/Tjtugb5sUc7ab+5O14mDmvvTR83i=
''' ConnectionTimeout: 30 FollowRedirection: False ClearCookies: False FailOnErrorStatus: False EncodeRequestBody: False UserAgent: $'''Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20100312 Firefox/3.6''' Encoding: Web.Encoding.AutoDetect AcceptUntrustedCertificates: False ResponseHeaders=> WebServiceResponseHeaders2 Response=> WebServiceResponse2 StatusCode=> StatusCode2
Variables.ConvertJsonToCustomObject Json: WebServiceResponse2 CustomObject=> JsonAsCustomObject
LOOP FOREACH CurrentItem IN ExcelData
    Web.InvokeWebService.InvokeWebService Url: $'''https://yoursharepoint.sharepoint.com/sites/Clients/_api/web/lists/GetByTitle(\'Client Contacts\')/items''' Method: Web.Method.Post Accept: $'''application/json;odata=verbose''' ContentType: $'''application/json;odata=verbose''' CustomHeaders: $'''Authorization: %JsonAsCustomObject.token_type% %JsonAsCustomObject.access_token%''' RequestBody: $'''{
  \"__metadata\": {
    \"type\": \"SP.Data.Client_x0020_ContactsListItem\"
  },
  \"FirstName\": \"%CurrentItem[1]%\",
\"Title\" : \"%CurrentItem[2]%\",
\"Company\" : \"WS - %CurrentItem[3]%\",
\"Email\" : \"%CurrentItem[4]%\",
\"Phone\": \"%CurrentItem[5]%\"
}''' ConnectionTimeout: 30 FollowRedirection: True ClearCookies: False FailOnErrorStatus: False EncodeRequestBody: False UserAgent: $'''Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20100312 Firefox/3.6''' Encoding: Web.Encoding.AutoDetect AcceptUntrustedCertificates: False ResponseHeaders=> WebServiceResponseHeaders Response=> WebServiceResponse StatusCode=> StatusCode
END
Excel.CloseExcel.Close Instance: ExcelInstance
SET NumberOfClients TO ExcelData.RowsCount

Powershell PnP

Install SharePoint PnP

Open PowerShell and run the following commands.

Install-Module -Name PnP.PowerShell
Register-PnPManagementShellAccess

The Register-PnPManagementShellAccess will open a web browser where you will need to authorize the managment shell app. When this screen appears click the Accept button. You can also choose if you have the proper rights to authorize this connection for your entire organization.
Authorize Management Shell

In order for the PowerShell script to authenticate to SharePoint we can utilize the PnP module to save the credential to the machine within the Windows Credential Manager. For more information on this go here: How to use the Windows Credential Manager to ease authentication with PnP PowerShell

This command will store the credential for the SharePoint site so that the PowerShell script can access them.

Add-PnPStoredCredential -Name https://yoursharepoint.sharepoint.com -Username youraccount@yourtenant.onmicrosoft.com -Password (ConvertTo-SecureString -String "YourPassword" -AsPlainText -Force)

This is the final result for the PowerShell method.

Final PAD Flow for PowerShell

If you copy the code below you can paste it into the Power Automate Desktop design surface to get started.

Excel.LaunchExcel.LaunchAndOpen Path: $'''C:\\files\\Desktop\\MOCK_CLIENT_DATA.xlsx''' Visible: True ReadOnly: False LoadAddInsAndMacros: False Instance=> ExcelInstance
Excel.GetFirstFreeColumnRow Instance: ExcelInstance FirstFreeColumn=> FirstFreeColumn FirstFreeRow=> FirstFreeRow
Excel.ReadFromExcel.ReadCells Instance: ExcelInstance StartColumn: 1 StartRow: 2 EndColumn: FirstFreeColumn - 1 EndRow: FirstFreeRow - 1 ReadAsText: False FirstLineIsHeader: False RangeValue=> ExcelData
SET PowerShellScript TO $'''Connect-PnPOnline -Url https://yoursharepoint.sharepoint.com/sites/Clients'''
LOOP FOREACH CurrentItem IN ExcelData
    Text.AppendLine Text: PowerShellScript LineToAppend: $'''Add-PnPListItem -List \"Client Contacts\" -ContentType \"SP.Data.Client_x0020_ContactsListItem\" -Values @{\"Title\" = \"%CurrentItem[2]%\"; \"FirstName\" =\"%CurrentItem[1]%\"; \"Company\" = \"PS - %CurrentItem[3]%\"; \"Email\" = \"%CurrentItem[4]%\"; \"Phone\" = \"%CurrentItem[5]%\"}''' Result=> Result
    SET PowerShellScript TO Result
END
Scripting.RunPowershellScript Script: PowerShellScript ScriptOutput=> PowershellOutput ScriptError=> ScriptError
Excel.CloseExcel.Close Instance: ExcelInstance
SET NumberOfClients TO ExcelData.RowsCount

SharePoint Connector for PAD

The FY22 Realese Wave 1 plans show plans for a dedicated SharePoint connector within Power Automate Desktop. Once this is released there will be even another way to connect!

SharePoint connector in Power Automate for desktop

image

Comments

  1. If you need a way to quickly move large amounts of data in batches from a site to a SharePoint list, check out this template: https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Automate-Reports-From-External-Datasources/td-p/1486023

    It doesn’t require any loops to load the data & accomplishes everything in a dozen or so actions, so it is much more efficient.

    ReplyDelete

Post a Comment

Popular posts from this blog

Add User As Local Administrator On Domain Controller

Calling Dataverse Web API in PowerShell using Client Credentials

Windows Server 2008R2 VMs Shut Down After 1 to 2 Hours