Skip to content

Commit 2f3d42f

Browse files
committed
Unzipped solution within solution directory
1 parent ecce3d7 commit 2f3d42f

File tree

4 files changed

+279
-0
lines changed

4 files changed

+279
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
{
2+
"properties": {
3+
"connectionReferences": {
4+
"shared_sharepointonline": {
5+
"runtimeSource": "embedded",
6+
"connection": {
7+
"connectionReferenceLogicalName": "glynn_sharedsharepointonline_a701f"
8+
},
9+
"api": {
10+
"name": "shared_sharepointonline"
11+
}
12+
}
13+
},
14+
"definition": {
15+
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
16+
"contentVersion": "1.0.0.0",
17+
"parameters": {
18+
"$connections": {
19+
"defaultValue": {},
20+
"type": "Object"
21+
},
22+
"$authentication": {
23+
"defaultValue": {},
24+
"type": "SecureObject"
25+
}
26+
},
27+
"triggers": {
28+
"manual": {
29+
"metadata": {
30+
"operationMetadataId": "470f91ea-51c2-49f7-aea7-eacb8719fced"
31+
},
32+
"type": "Request",
33+
"kind": "Button",
34+
"inputs": {
35+
"schema": {
36+
"type": "object",
37+
"properties": {
38+
"text": {
39+
"title": "List Name",
40+
"type": "string",
41+
"x-ms-dynamically-added": true,
42+
"description": "Name of the list to update",
43+
"x-ms-content-hint": "TEXT"
44+
},
45+
"number": {
46+
"title": "List ID",
47+
"type": "number",
48+
"x-ms-dynamically-added": true,
49+
"description": "List item ID to update",
50+
"x-ms-content-hint": "NUMBER"
51+
},
52+
"text_1": {
53+
"title": "Created By Email",
54+
"type": "string",
55+
"x-ms-dynamically-added": true,
56+
"description": "Email address of the person to set as Author",
57+
"x-ms-content-hint": "TEXT"
58+
},
59+
"text_2": {
60+
"title": "Site Address",
61+
"type": "string",
62+
"x-ms-dynamically-added": true,
63+
"description": "Site address of the list",
64+
"x-ms-content-hint": "TEXT"
65+
}
66+
},
67+
"required": [
68+
"text",
69+
"number",
70+
"text_1",
71+
"text_2"
72+
]
73+
}
74+
}
75+
}
76+
},
77+
"actions": {
78+
"Send_an_HTTP_request_to_SharePoint": {
79+
"runAfter": {},
80+
"metadata": {
81+
"operationMetadataId": "f2ca745a-b93c-40f1-b189-55975d1ce485"
82+
},
83+
"type": "OpenApiConnection",
84+
"inputs": {
85+
"host": {
86+
"connectionName": "shared_sharepointonline",
87+
"operationId": "HttpRequest",
88+
"apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline"
89+
},
90+
"parameters": {
91+
"dataset": "@triggerBody()['text_2']",
92+
"parameters/method": "POST",
93+
"parameters/uri": "_api/web/lists/getbytitle('@{triggerBody()['text']}')/items('@{triggerBody()['number']}')/validateUpdateListItem",
94+
"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}"
95+
},
96+
"authentication": {
97+
"type": "Raw",
98+
"value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
99+
}
100+
}
101+
},
102+
"Respond_to_a_Power_App_or_flow": {
103+
"runAfter": {
104+
"Send_an_HTTP_request_to_SharePoint": [
105+
"Succeeded"
106+
]
107+
},
108+
"metadata": {
109+
"operationMetadataId": "9a81b50e-41dd-4bc9-9ec0-77dc5d06453c"
110+
},
111+
"type": "Response",
112+
"kind": "PowerApp",
113+
"inputs": {
114+
"statusCode": 200,
115+
"body": {
116+
"status": "Complete"
117+
},
118+
"schema": {
119+
"type": "object",
120+
"properties": {
121+
"status": {
122+
"title": "Status",
123+
"x-ms-dynamically-added": true,
124+
"type": "string"
125+
}
126+
}
127+
}
128+
}
129+
}
130+
}
131+
},
132+
"templateName": null
133+
},
134+
"schemaVersion": "1.0.0.0"
135+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="utf-8"?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="xml" ContentType="application/octet-stream" /><Default Extension="json" ContentType="application/octet-stream" /></Types>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<ImportExportXml xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" OrganizationVersion="9.2.24083.198" OrganizationSchemaType="Standard" OrganizationType="Developer" TenantId="d01de95c-6409-40c0-94c1-300cd0a13c87" CRMServerServiceabilityVersion="9.2.24083.00198">
2+
<Entities></Entities>
3+
<Roles></Roles>
4+
<Workflows>
5+
<Workflow WorkflowId="{5704696e-af75-ef11-a670-000d3a476e1e}" Name="Update Created By" 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.">
6+
<JsonFileName>/Workflows/UpdateCreatedBy-5704696E-AF75-EF11-A670-000D3A476E1E.json</JsonFileName>
7+
<Type>1</Type>
8+
<Subprocess>0</Subprocess>
9+
<Category>5</Category>
10+
<Mode>0</Mode>
11+
<Scope>4</Scope>
12+
<OnDemand>0</OnDemand>
13+
<TriggerOnCreate>0</TriggerOnCreate>
14+
<TriggerOnDelete>0</TriggerOnDelete>
15+
<AsyncAutodelete>0</AsyncAutodelete>
16+
<SyncWorkflowLogOnFailure>0</SyncWorkflowLogOnFailure>
17+
<StateCode>1</StateCode>
18+
<StatusCode>2</StatusCode>
19+
<RunAs>1</RunAs>
20+
<IsTransacted>1</IsTransacted>
21+
<IntroducedVersion>1.0.0.0</IntroducedVersion>
22+
<IsCustomizable>1</IsCustomizable>
23+
<BusinessProcessType>0</BusinessProcessType>
24+
<IsCustomProcessingStepAllowedForOtherPublishers>1</IsCustomProcessingStepAllowedForOtherPublishers>
25+
<PrimaryEntity>none</PrimaryEntity>
26+
<LocalizedNames>
27+
<LocalizedName languagecode="1033" description="Update Created By" />
28+
</LocalizedNames>
29+
<Descriptions>
30+
<Description languagecode="1033" 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." />
31+
</Descriptions>
32+
</Workflow>
33+
</Workflows>
34+
<FieldSecurityProfiles></FieldSecurityProfiles>
35+
<Templates />
36+
<EntityMaps />
37+
<EntityRelationships />
38+
<OrganizationSettings />
39+
<optionsets />
40+
<CustomControls />
41+
<EntityDataProviders />
42+
<connectionreferences>
43+
<connectionreference connectionreferencelogicalname="glynn_sharedsharepointonline_a701f">
44+
<connectionreferencedisplayname>SharePoint UpdateCreatedBy-a701f</connectionreferencedisplayname>
45+
<connectorid>/providers/Microsoft.PowerApps/apis/shared_sharepointonline</connectorid>
46+
<iscustomizable>1</iscustomizable>
47+
<promptingbehavior>0</promptingbehavior>
48+
<statecode>0</statecode>
49+
<statuscode>1</statuscode>
50+
</connectionreference>
51+
</connectionreferences>
52+
<Languages>
53+
<Language>1033</Language>
54+
</Languages>
55+
</ImportExportXml>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<ImportExportXml version="9.2.24083.198" SolutionPackageVersion="9.2" languagecode="1033" generatedBy="CrmLive" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" OrganizationVersion="9.2.24083.198" OrganizationSchemaType="Standard" OrganizationType="Developer" TenantId="d01de95c-6409-40c0-94c1-300cd0a13c87" CRMServerServiceabilityVersion="9.2.24083.00198">
2+
<SolutionManifest>
3+
<UniqueName>UpdateCreatedBy</UniqueName>
4+
<LocalizedNames>
5+
<LocalizedName description="Sharepoint - List - Update Created By" languagecode="1033" />
6+
</LocalizedNames>
7+
<Descriptions>
8+
<Description description="This Power Automate flow updates the “Created By” field of a Microsoft List item, replacing the account with a specified user based on their email address, using an HTTP request to SharePoint." languagecode="1033" />
9+
</Descriptions>
10+
<Version>1.0.0.1</Version>
11+
<Managed>0</Managed>
12+
<Publisher>
13+
<UniqueName>GlynnPearson</UniqueName>
14+
<LocalizedNames>
15+
<LocalizedName description="Glynn Pearson" languagecode="1033" />
16+
</LocalizedNames>
17+
<Descriptions>
18+
<Description description="System 5 Head of Development" languagecode="1033" />
19+
</Descriptions>
20+
<EMailAddress xsi:nil="true"></EMailAddress>
21+
<SupportingWebsiteUrl xsi:nil="true"></SupportingWebsiteUrl>
22+
<CustomizationPrefix>glynn</CustomizationPrefix>
23+
<CustomizationOptionValuePrefix>72132</CustomizationOptionValuePrefix>
24+
<Addresses>
25+
<Address>
26+
<AddressNumber>1</AddressNumber>
27+
<AddressTypeCode>1</AddressTypeCode>
28+
<City xsi:nil="true"></City>
29+
<County xsi:nil="true"></County>
30+
<Country xsi:nil="true"></Country>
31+
<Fax xsi:nil="true"></Fax>
32+
<FreightTermsCode xsi:nil="true"></FreightTermsCode>
33+
<ImportSequenceNumber xsi:nil="true"></ImportSequenceNumber>
34+
<Latitude xsi:nil="true"></Latitude>
35+
<Line1 xsi:nil="true"></Line1>
36+
<Line2 xsi:nil="true"></Line2>
37+
<Line3 xsi:nil="true"></Line3>
38+
<Longitude xsi:nil="true"></Longitude>
39+
<Name xsi:nil="true"></Name>
40+
<PostalCode xsi:nil="true"></PostalCode>
41+
<PostOfficeBox xsi:nil="true"></PostOfficeBox>
42+
<PrimaryContactName xsi:nil="true"></PrimaryContactName>
43+
<ShippingMethodCode>1</ShippingMethodCode>
44+
<StateOrProvince xsi:nil="true"></StateOrProvince>
45+
<Telephone1 xsi:nil="true"></Telephone1>
46+
<Telephone2 xsi:nil="true"></Telephone2>
47+
<Telephone3 xsi:nil="true"></Telephone3>
48+
<TimeZoneRuleVersionNumber xsi:nil="true"></TimeZoneRuleVersionNumber>
49+
<UPSZone xsi:nil="true"></UPSZone>
50+
<UTCOffset xsi:nil="true"></UTCOffset>
51+
<UTCConversionTimeZoneCode xsi:nil="true"></UTCConversionTimeZoneCode>
52+
</Address>
53+
<Address>
54+
<AddressNumber>2</AddressNumber>
55+
<AddressTypeCode>1</AddressTypeCode>
56+
<City xsi:nil="true"></City>
57+
<County xsi:nil="true"></County>
58+
<Country xsi:nil="true"></Country>
59+
<Fax xsi:nil="true"></Fax>
60+
<FreightTermsCode xsi:nil="true"></FreightTermsCode>
61+
<ImportSequenceNumber xsi:nil="true"></ImportSequenceNumber>
62+
<Latitude xsi:nil="true"></Latitude>
63+
<Line1 xsi:nil="true"></Line1>
64+
<Line2 xsi:nil="true"></Line2>
65+
<Line3 xsi:nil="true"></Line3>
66+
<Longitude xsi:nil="true"></Longitude>
67+
<Name xsi:nil="true"></Name>
68+
<PostalCode xsi:nil="true"></PostalCode>
69+
<PostOfficeBox xsi:nil="true"></PostOfficeBox>
70+
<PrimaryContactName xsi:nil="true"></PrimaryContactName>
71+
<ShippingMethodCode>1</ShippingMethodCode>
72+
<StateOrProvince xsi:nil="true"></StateOrProvince>
73+
<Telephone1 xsi:nil="true"></Telephone1>
74+
<Telephone2 xsi:nil="true"></Telephone2>
75+
<Telephone3 xsi:nil="true"></Telephone3>
76+
<TimeZoneRuleVersionNumber xsi:nil="true"></TimeZoneRuleVersionNumber>
77+
<UPSZone xsi:nil="true"></UPSZone>
78+
<UTCOffset xsi:nil="true"></UTCOffset>
79+
<UTCConversionTimeZoneCode xsi:nil="true"></UTCConversionTimeZoneCode>
80+
</Address>
81+
</Addresses>
82+
</Publisher>
83+
<RootComponents>
84+
<RootComponent type="29" id="{5704696e-af75-ef11-a670-000d3a476e1e}" behavior="0" />
85+
</RootComponents>
86+
<MissingDependencies />
87+
</SolutionManifest>
88+
</ImportExportXml>

0 commit comments

Comments
 (0)