From e6b825cfe9d54521e5c4b149ed2de18fb56cfe3e Mon Sep 17 00:00:00 2001 From: Glynn <24873199+Glynnryan@users.noreply.github.com> Date: Fri, 11 Oct 2024 09:19:56 +0200 Subject: [PATCH] Update files for PR Update sample files per PR instructions using pac --- .../{sourcecode => }/Body-Sample.json | 0 .../{sourcecode => }/Body.json | 0 .../README.md | 8 +- .../{sourcecode => }/Uri-Sample.html | 0 .../{sourcecode => }/Uri.html | 0 .../solution/UpdateCreatedBy_1_0_0_1.zip | Bin 4233 -> 0 bytes .../[Content_Types].xml | 1 - .../customizations.xml | 55 ------ .../sourcecode/UpdateCreatedBy.cdsproj | 54 ++++++ .../sourcecode/src/Other/Customizations.xml | 28 +++ .../src/Other/Solution.xml} | 175 +++++++++--------- ...-5704696E-AF75-EF11-A670-000D3A476E1E.json | 76 ++++---- ...-AF75-EF11-A670-000D3A476E1E.json.data.xml | 29 +++ 13 files changed, 240 insertions(+), 186 deletions(-) rename samples/sharepoint-list-update-created-by/{sourcecode => }/Body-Sample.json (100%) rename samples/sharepoint-list-update-created-by/{sourcecode => }/Body.json (100%) rename samples/sharepoint-list-update-created-by/{sourcecode => }/Uri-Sample.html (100%) rename samples/sharepoint-list-update-created-by/{sourcecode => }/Uri.html (100%) delete mode 100644 samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1.zip delete mode 100644 samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/[Content_Types].xml delete mode 100644 samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/customizations.xml create mode 100644 samples/sharepoint-list-update-created-by/sourcecode/UpdateCreatedBy.cdsproj create mode 100644 samples/sharepoint-list-update-created-by/sourcecode/src/Other/Customizations.xml rename samples/sharepoint-list-update-created-by/{solution/UpdateCreatedBy_1_0_0_1/solution.xml => sourcecode/src/Other/Solution.xml} (91%) rename samples/sharepoint-list-update-created-by/{solution/UpdateCreatedBy_1_0_0_1 => sourcecode/src}/Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json (85%) create mode 100644 samples/sharepoint-list-update-created-by/sourcecode/src/Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json.data.xml diff --git a/samples/sharepoint-list-update-created-by/sourcecode/Body-Sample.json b/samples/sharepoint-list-update-created-by/Body-Sample.json similarity index 100% rename from samples/sharepoint-list-update-created-by/sourcecode/Body-Sample.json rename to samples/sharepoint-list-update-created-by/Body-Sample.json diff --git a/samples/sharepoint-list-update-created-by/sourcecode/Body.json b/samples/sharepoint-list-update-created-by/Body.json similarity index 100% rename from samples/sharepoint-list-update-created-by/sourcecode/Body.json rename to samples/sharepoint-list-update-created-by/Body.json diff --git a/samples/sharepoint-list-update-created-by/README.md b/samples/sharepoint-list-update-created-by/README.md index 071280b6..81b41cae 100644 --- a/samples/sharepoint-list-update-created-by/README.md +++ b/samples/sharepoint-list-update-created-by/README.md @@ -90,8 +90,8 @@ _api/web/lists/getbytitle('List Name')/items('ID')/validateUpdateListItem ``` > [!NOTE] -> - If you've followed the exact sequence in step 5, you can use [Uri-Sample.html](sourcecode/Uri-Sample.html) without modification. -> - If you configured your own inputs in Step 5, adjust [Uri.html](sourcecode/Uri.html) as needed. +> - If you've followed the exact sequence in step 5, you can use [Uri-Sample.html](Uri-Sample.html) without modification. +> - If you configured your own inputs in Step 5, adjust [Uri.html](Uri.html) as needed. - **Body** @@ -107,8 +107,8 @@ _api/web/lists/getbytitle('List Name')/items('ID')/validateUpdateListItem ``` > [!NOTE] -> - If you've followed the exact sequence in step 5, you can use [Body-Sample.json](sourcecode/Body-Sample.json) without modification. -> - If you configured your own inputs in Step 5, adjust [Body.json](sourcecode/Body.json) as needed. +> - If you've followed the exact sequence in step 5, you can use [Body-Sample.json](Body-Sample.json) without modification. +> - If you configured your own inputs in Step 5, adjust [Body.json](Body.json) as needed. ![Step 7](assets/Step%207.jpg) diff --git a/samples/sharepoint-list-update-created-by/sourcecode/Uri-Sample.html b/samples/sharepoint-list-update-created-by/Uri-Sample.html similarity index 100% rename from samples/sharepoint-list-update-created-by/sourcecode/Uri-Sample.html rename to samples/sharepoint-list-update-created-by/Uri-Sample.html diff --git a/samples/sharepoint-list-update-created-by/sourcecode/Uri.html b/samples/sharepoint-list-update-created-by/Uri.html similarity index 100% rename from samples/sharepoint-list-update-created-by/sourcecode/Uri.html rename to samples/sharepoint-list-update-created-by/Uri.html diff --git a/samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1.zip b/samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1.zip deleted file mode 100644 index 44377777a1fd49d5e607af59562d981d6b14c4bd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4233 zcmb`KS2P@ax5ft($&B7djT)jG!U%%Fn23mp64AS8qmB|iIupGIDS8GO3DJq<)kUu{ zdhaFCgX29{U*7Yb^WB{Pf33aNzIgUp`{uWwNBaQ@kRCt`xB-x}hCX$_!CET<1ON`e z001q34Pb@w@N{vue{SJv?}GLa^>KFMdxI=$ zE^176;?4qpSTACd@Bf?|iNcvXJ6~{-S5G>7Pi_b{g8SYHP%0`A`o>wLD|zxObfGso z@=Q^;@97Ao{JvJ%GA9V}>Z`LmU;Q}tGBVvcC&s*~drmNe>v~aE^&P}qh2 z@?-m*W4$kV8Q*rZF`}mf_@Q`%Vdlf9gf%sq1)7(Bo9@&JuZkj>SDE^^g&_Um9br>B z#UrNvKVQ*oh}+X*iT(gx_{6;L(wuOc9~ERjHTo13^g}ouBu!#g*XOsvg~7_Tu%zP zBKbt14+N~x+ma+WFPiI6z!6z~;-y0$-3xjBdjs|H{^CjzA1+>r-F?n}m z7N&3H!J_%6W)g%!Mk&*Y4~nIv#R9vW(=I()Q%ki|H>=X+DeIgTU}?>F^jB@XxQ%9~nb#_?~4Wr_%Y`JdQKvZX|H5BKC28S#YL7{XWs~62#K4v;1(z-icT~!YXk`lt4 zdvMc22+2L>8b3aY)`~D|-Ewdpam1J>!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@?N$TQ=-LiIM?1VFRZW8W% zRCU5`+&YUzv5HC-=G4@3kjrco8khAIUcVTR_p!vWFdou(cN%-=oVTs%P(-!)48ZUs zPBeE|o~GK|r4rzF*z_O%rv5UY%*R2p7&MM5&P90gs@rz>lzJm1pnl$`xjm}uRu^in z^u?8c5((%hEd?mm1C}4~LieNLW7a;_M$$D|m#n#JgT{VW37*dCB(b2y?E0?ERv&9y z1k*Z{W1#i3wu@<0RabXR6o;dMZ-=+dPu)hc&FkZKME62}!_ZqR$PYRtUG|r6WWOQ# zHcb{jVPx^AGEC{C2~$>rEDIzzx~D&Krk*W8k1^-Cn)w;aMDf+f{iz8>-7TTdcOgf^ zxbC(?-FLP{womN0mpKmtu%UxLOdQ%2384Dbzj7+sovH|&ctg5oM@+?zL5|jJHOWfN zNZ`iK=Odvypy{V$#iQh$CqdEHg1ubVlzbLpOP<|iMOoGpq0dh&-Ds6Fox2HUr)hh{ zc9TuXYv+}Gg_UeuAN~Ayuwv(NfJV{iH+xG~v4yC7-b{J^+GWhe0j@Pj`vDQL2;hGU z(*F$0|1(zqQ~#$Q{#U*46}JD4JO1Z@Kkene4sg5%_`_`eQ~Bp@_*dmB2=M=LDYPG4 TBmH|U@ahX+`F(Y&zq|heHuiiu diff --git a/samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/[Content_Types].xml b/samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/[Content_Types].xml deleted file mode 100644 index 70428b99..00000000 --- a/samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/[Content_Types].xml +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/customizations.xml b/samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/customizations.xml deleted file mode 100644 index 0f2f378e..00000000 --- a/samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/customizations.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - /Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json - 1 - 0 - 5 - 0 - 4 - 0 - 0 - 0 - 0 - 0 - 1 - 2 - 1 - 1 - 1.0.0.0 - 1 - 0 - 1 - none - - - - - - - - - - - - - - - - - - - SharePoint UpdateCreatedBy-a701f - /providers/Microsoft.PowerApps/apis/shared_sharepointonline - 1 - 0 - 0 - 1 - - - - 1033 - - \ No newline at end of file diff --git a/samples/sharepoint-list-update-created-by/sourcecode/UpdateCreatedBy.cdsproj b/samples/sharepoint-list-update-created-by/sourcecode/UpdateCreatedBy.cdsproj new file mode 100644 index 00000000..024e1457 --- /dev/null +++ b/samples/sharepoint-list-update-created-by/sourcecode/UpdateCreatedBy.cdsproj @@ -0,0 +1,54 @@ + + + + $(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\PowerApps + + + + + + + 8f595c70-54fd-477e-bd05-7937e1d15be0 + v4.6.2 + + net462 + PackageReference + src + + + + + + + + + + + + + + + + + + + + + + + PreserveNewest + + + + + + + diff --git a/samples/sharepoint-list-update-created-by/sourcecode/src/Other/Customizations.xml b/samples/sharepoint-list-update-created-by/sourcecode/src/Other/Customizations.xml new file mode 100644 index 00000000..c56a8b50 --- /dev/null +++ b/samples/sharepoint-list-update-created-by/sourcecode/src/Other/Customizations.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + SharePoint + /providers/Microsoft.PowerApps/apis/shared_sharepointonline + Microsoft SharePoint + 1 + 0 + 0 + 1 + + + + 1033 + + \ No newline at end of file diff --git a/samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/solution.xml b/samples/sharepoint-list-update-created-by/sourcecode/src/Other/Solution.xml similarity index 91% rename from samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/solution.xml rename to samples/sharepoint-list-update-created-by/sourcecode/src/Other/Solution.xml index cd999e1d..87845dab 100644 --- a/samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/solution.xml +++ b/samples/sharepoint-list-update-created-by/sourcecode/src/Other/Solution.xml @@ -1,88 +1,89 @@ - - - UpdateCreatedBy - - - - - - - 1.0.0.1 - 0 - - GlynnPearson - - - - - - - - - glynn - 72132 - -
- 1 - 1 - - - - - - - - - - - - - - - - 1 - - - - - - - - -
-
- 2 - 1 - - - - - - - - - - - - - - - - 1 - - - - - - - - -
-
-
- - - - -
+ + + + UpdateCreatedBy + + + + + + + 1.0.0.2 + 2 + + GlynnPearson + + + + + + + + + glynn + 72132 + +
+ 1 + 1 + + + + + + + + + + + + + + + + 1 + + + + + + + + +
+
+ 2 + 1 + + + + + + + + + + + + + + + + 1 + + + + + + + + +
+
+
+ + + + +
\ No newline at end of file diff --git a/samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json b/samples/sharepoint-list-update-created-by/sourcecode/src/Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json similarity index 85% rename from samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json rename to samples/sharepoint-list-update-created-by/sourcecode/src/Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json index 36efb90d..9f45350a 100644 --- a/samples/sharepoint-list-update-created-by/solution/UpdateCreatedBy_1_0_0_1/Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json +++ b/samples/sharepoint-list-update-created-by/sourcecode/src/Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json @@ -1,34 +1,31 @@ { "properties": { "connectionReferences": { - "shared_sharepointonline": { - "runtimeSource": "embedded", - "connection": { - "connectionReferenceLogicalName": "glynn_sharedsharepointonline_a701f" - }, + "shared_sharepointonline-1": { "api": { "name": "shared_sharepointonline" - } + }, + "connection": { + "connectionReferenceLogicalName": "glynn_SharePoint" + }, + "runtimeSource": "invoker" } }, "definition": { "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", "contentVersion": "1.0.0.0", "parameters": { - "$connections": { - "defaultValue": {}, - "type": "Object" - }, "$authentication": { "defaultValue": {}, "type": "SecureObject" + }, + "$connections": { + "defaultValue": {}, + "type": "Object" } }, "triggers": { "manual": { - "metadata": { - "operationMetadataId": "470f91ea-51c2-49f7-aea7-eacb8719fced" - }, "type": "Request", "kind": "Button", "inputs": { @@ -71,50 +68,37 @@ "text_2" ] } + }, + "metadata": { + "operationMetadataId": "470f91ea-51c2-49f7-aea7-eacb8719fced" } } }, "actions": { "Send_an_HTTP_request_to_SharePoint": { - "runAfter": {}, - "metadata": { - "operationMetadataId": "f2ca745a-b93c-40f1-b189-55975d1ce485" - }, "type": "OpenApiConnection", "inputs": { - "host": { - "connectionName": "shared_sharepointonline", - "operationId": "HttpRequest", - "apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline" - }, "parameters": { "dataset": "@triggerBody()['text_2']", "parameters/method": "POST", "parameters/uri": "_api/web/lists/getbytitle('@{triggerBody()['text']}')/items('@{triggerBody()['number']}')/validateUpdateListItem", "parameters/body": "{\n\t\"formValues\":[\n\t\t{\n\t\t\t\"FieldName\": \"Author\",\n\t\t\t\"FieldValue\": \"[{'Key':'i:0#.f|membership|@{triggerBody()?['text_1']}'}]\"\n\t\t}\n\t]\n}" }, - "authentication": { - "type": "Raw", - "value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']" + "host": { + "apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline", + "operationId": "HttpRequest", + "connectionName": "shared_sharepointonline-1" } + }, + "runAfter": {}, + "metadata": { + "operationMetadataId": "f2ca745a-b93c-40f1-b189-55975d1ce485" } }, "Respond_to_a_Power_App_or_flow": { - "runAfter": { - "Send_an_HTTP_request_to_SharePoint": [ - "Succeeded" - ] - }, - "metadata": { - "operationMetadataId": "9a81b50e-41dd-4bc9-9ec0-77dc5d06453c" - }, "type": "Response", "kind": "PowerApp", "inputs": { - "statusCode": 200, - "body": { - "status": "Complete" - }, "schema": { "type": "object", "properties": { @@ -123,11 +107,25 @@ "x-ms-dynamically-added": true, "type": "string" } - } + }, + "additionalProperties": {} + }, + "statusCode": 200, + "body": { + "status": "Complete" } + }, + "runAfter": { + "Send_an_HTTP_request_to_SharePoint": [ + "Succeeded" + ] + }, + "metadata": { + "operationMetadataId": "9a81b50e-41dd-4bc9-9ec0-77dc5d06453c" } } - } + }, + "description": "This Power Automate flow updates the “Created By” field in Microsoft Lists, replacing the default account with a specified user based on their email address, using an HTTP request to SharePoint." }, "templateName": null }, diff --git a/samples/sharepoint-list-update-created-by/sourcecode/src/Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json.data.xml b/samples/sharepoint-list-update-created-by/sourcecode/src/Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json.data.xml new file mode 100644 index 00000000..86d9ea9c --- /dev/null +++ b/samples/sharepoint-list-update-created-by/sourcecode/src/Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json.data.xml @@ -0,0 +1,29 @@ + + + /Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json + 1 + 0 + 5 + 0 + 4 + 0 + 0 + 0 + 0 + 0 + 1 + 2 + 1 + 1 + 1.0.0.0 + 1 + 0 + 1 + none + + + + + + + \ No newline at end of file