Skip to content

Instantly share code, notes, and snippets.

@expiscornovus
Created November 19, 2021 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save expiscornovus/8a610372c50fae83f342b38fa4b7ef1e to your computer and use it in GitHub Desktop.
Save expiscornovus/8a610372c50fae83f342b38fa4b7ef1e to your computer and use it in GitHub Desktop.
Create Item - geo json
{
"inputs": {
"host": {
"connectionName": "shared_sharepointonline",
"operationId": "PostItem",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline"
},
"parameters": {
"dataset": "https://contoso.sharepoint.com/sites/PowerAutomate",
"table": "4f7d3aeb-908f-4d97-8722-9011878a706b",
"view": "3f21a8a7-c734-4e1a-b82e-38466faf7de9",
"item/Title": "@items('Apply_to_each')?['properties']?['ADMIN']",
"item/GeoJSON": "@item()",
"item/RGBColour": "@concat('RGBA(', rand(1, 255), ',', rand(1, 255), ',', rand(1, 255),',', 1, ')')"
},
"authentication": {
"type": "Raw",
"value": "@json(decodeBase64(triggerOutputs().headers['X-MS-APIM-Tokens']))['$ConnectionKey']"
}
},
"runtimeConfiguration": {
"staticResult": {
"staticResultOptions": "Disabled",
"name": "Create_item0"
}
},
"metadata": {
"operationMetadataId": "14e2b083-849e-4e93-b563-4f9554866341"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment