Create and Retrieve Power Automate Flows - WITH CODE!!! :-)

Published Aug 04 2021 11:26 AM 2,161 Views
New Contributor

As you are probably aware, Microsoft is looking to eliminate SharePoint 2010 and 2013 workflows. In fact, 2010 workflows have already been retired, while 2013's retirement date(s) are still looming. 

 

Microsoft has advised users to manually rebuild their necessary SharePoint workflows (SPWF’s) as comparable M365 Power Automate flows. To that end, Microsoft has provided some basic guidance, including a tool to sniff out SPWF’s within your cloud environment. 

When it comes to planning the migration of your SPWF’s to Power Automate flows, it helps to think of them as two completely different platforms. Despite that fact that it’s all just ‘Microsoft’ under the covers, Power Automate is a substantially more robust, complex, and powerful application than SharePoint Designer. It is simply not ‘apples to apples’, which is why you won’t find a convenient ‘CONVERT’ button. 

 

That said, there are opportunities for automating the creation of Power Automate flows. This will potentially go a long way towards helping organizations who have invested heavily in SPWF’s and now have a mountain of work ahead of them to convert. In this post, I will walk through the details of programmatically creating Power Automate flows with links to a sample C# console app

 

Part 1 — Interacting with ‘Solution’ Flows

Because flows under the ‘My Flows’ tab are not currently supported by Power Automate web API’s, you will need to interact with all programmatic flows via the ‘Solutions’ tab. 

Tracy_1-1627940128961.png

 

**Note: I have only been able to programmatically create/access flows within the Default Solution for a relevant Dataverse environment. Microsoft does not mention this limitation in their web API documentation and I am uncertain of the scalability/performance implications.

 

To manually create a new Solutions flow, navigate to the Solutions tab and select Default Solution > New > Cloud flow  Tracy_2-1627940129014.png
To view existing Solutions flows, navigate to the Solutions tab and select Default Solution, then filter ‘Cloud flow’.

To obtain the ID for a specific Solutions flow, select it and copy the GUID value (/flows/[GUID]/) from the browser URL.

Tracy_3-1627940128946.png

 

Part 2 — Get ClientData Content for New Flows

In order to create flows programatically, we will use the Power Automate Management Web API. The meat and potatoes of the flow payload is contained in the clientdata property. To help determine appropriate content for populating this section, I recommend manually creating a ‘base’ Power Automate flow using the UI. Then, you can leverage the API to get the clientdata content from that manual flow and copy/paste it into the payload for new flow(s).

  1. Follow the instructions for creating a new Solutions flow as shown above in Part 1. 
  2. Navigate to your tenant Power Platform admin center to obtain the environment URL. Update the variable at line #17 with the relevant URL. 
  3. Uncomment the RetrieveFlowmethod call at line #40 and confirm theCreateFlow method at line #41 is commented out.
  4. See Part 1 above to obtain a Flow ID (GUID) for the flow you just created. Update the variable at line #113 with the flow GUID value. 
  5. Insert a breakpoint at line #122
  6. Run the project, providing credentials for a user who has access to the Dataverse Web API. (I have only tested with a global admin account.)
  7. Copy the string value within the clientdata .

Part 3 — Programmatically Create a New Flow

  1. Paste the clientdata content from above into the variable located on line #61.
  2. Comment out the RetrieveFlowmethod call at line #40 and confirm theCreateFlow method at line #41 is not commented out.
  3. Run the project!

If everything works as expected, you should be able to locate your new flow by following the instructions in Part 1 to view Solutions flows. Test your new flow to confirm everything works as expected. 

 

Part 4 — ‘Tweak’ the ClientData Content

Below is a de-serialized example of the content within the clientdataproperty of a Power Automate flow. This particular flow is triggered when a new item is created within a SharePoint list. The indicated tableproperty at line #52 holds the value for the GUID of the relevant SharePoint list.

 

To create a new Power Automate flow which targets a different SharePoint list (within the same Site), simply update that GUID value in the clientdata . While I have only tested this specific scenario, the potential applications for ‘tweaking’ values to facilitate bulk flow creation are endless. 

 

 

{{
  "properties": {
    "connectionReferences": {
      "shared_sharepointonline": {
        "runtimeSource": "embedded",
        "connection": {
          "name": "shared-sharepointonl-ceefa1df-44c6-4e6f-800b-b350-ca17dbda"
        },
        "api": {
          "name": "shared_sharepointonline"
        }
      },
      "shared_office365": {
        "runtimeSource": "embedded",
        "connection": {
          "name": "shared-office365-3bf72576-f215-4852-95ad-69cf-db33f170"
        },
        "api": {
          "name": "shared_office365"
        }
      }
    },
    "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"
        }
      },
      "triggers": {
        "When_an_item_is_created": {
          "recurrence": {
            "frequency": "Minute",
            "interval": 3
          },
          "splitOn": "@triggerOutputs()?['body/value']",
          "type": "OpenApiConnection",
          "inputs": {
            "host": {
              "apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
              "connectionName": "shared_sharepointonline",
              "operationId": "GetOnNewItems"
            },
            "parameters": {
              "dataset": "https://[M365Domain].sharepoint.com/",
              "table": "e134069a-5a16-4602-bdd5-7f1fec27d45a"
            },
            "authentication": "@parameters('$authentication')"
          }
        }
      },
      "actions": {
        "Send_an_email_(V2)": {
          "runAfter": {},
          "type": "OpenApiConnection",
          "inputs": {
            "host": {
              "apiId": "/providers/Microsoft.PowerApps/apis/shared_office365",
              "connectionName": "shared_office365",
              "operationId": "SendEmailV2"
            },
            "parameters": {
              "emailMessage/To": "@triggerOutputs()?['body/Author/Email']",
              "emailMessage/Subject": "New Item Created!",
              "emailMessage/Body": "<p>New Item Created!<br>\n@{triggerOutputs()?['body/{Link}']}</p>"
            },
            "authentication": "@parameters('$authentication')"
          }
        }
      },
      "outputs": {}
    }
  },
  "schemaVersion": "1.0.0.0"
}}

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2600551%22%20slang%3D%22en-US%22%3ECreate%20and%20Retrieve%20Power%20Automate%20Flows%20-%20WITH%20CODE!!!%20%3A)%3C%2Fimg%3E%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2600551%22%20slang%3D%22en-US%22%3E%3CP%3EAs%20you%20are%20probably%20aware%2C%20Microsoft%20is%20looking%20to%20%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Foffice%2Fsharepoint-2010-workflow-retirement-1ca3fff8-9985-410a-85aa-8120f626965f%3Fui%3Den-US%26amp%3Brs%3Den-US%26amp%3Bad%3DUS%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Eeliminate%20SharePoint%202010%20and%202013%20workflows%3C%2FA%3E.%20In%20fact%2C%202010%20workflows%20have%20already%20been%20retired%2C%20while%202013's%20retirement%20date(s)%20are%20still%20looming.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3EMicrosoft%20has%20advised%20users%20to%20manually%20rebuild%20their%20necessary%20SharePoint%20workflows%20(SPWF%E2%80%99s)%20as%20comparable%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-automate%2Fgetting-started%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3EM365%20Power%20Automate%3C%2FA%3E%20flows.%20To%20that%20end%2C%20Microsoft%20has%20provided%20some%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fbusiness-apps%2Fpower-automate%2Fguidance%2Fmigrate-from-classic-workflows-to-power-automate-flows%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Ebasic%20guidance%3C%2FA%3E%2C%20including%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Ftransform%2Fmodernize-scanner%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Ea%20tool%3C%2FA%3E%20to%20sniff%20out%20SPWF%E2%80%99s%20within%20your%20cloud%20environment.%26nbsp%3B%3CP%3EWhen%20it%20comes%20to%20planning%20the%20migration%20of%20your%20SPWF%E2%80%99s%20to%20Power%20Automate%20flows%2C%20it%20helps%20to%20think%20of%20them%20as%20two%20completely%20different%20platforms.%20Despite%20that%20fact%20that%20it%E2%80%99s%20all%20just%20%E2%80%98Microsoft%E2%80%99%20under%20the%20covers%2C%20Power%20Automate%20is%20a%20substantially%20more%20robust%2C%20complex%2C%20and%20powerful%20application%20than%20SharePoint%20Designer.%20It%20is%20simply%20not%20%E2%80%98apples%20to%20apples%E2%80%99%2C%20which%20is%20why%20you%20won%E2%80%99t%20find%20a%20convenient%20%E2%80%98CONVERT%E2%80%99%20button.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat%20said%2C%20there%20are%20opportunities%20for%20automating%20the%20creation%20of%20Power%20Automate%20flows.%20This%20will%20potentially%20go%20a%20long%20way%20towards%20helping%20organizations%20who%20have%20invested%20heavily%20in%20SPWF%E2%80%99s%20and%20now%20have%20a%20mountain%20of%20work%20ahead%20of%20them%20to%20convert.%20In%20this%20post%2C%20I%20will%20walk%20through%20the%20details%20of%20programmatically%20creating%20Power%20Automate%20flows%20with%20links%20to%20a%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FTracyGH%2FCreatePowerAutomateFlow%2Ftree%2Fmaster%2FCreateFlows%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Esample%20C%23%20console%20app%3C%2FA%3E.%26nbsp%3B%3C%2FP%3E%20%26nbsp%3B%20Part%201%E2%80%8A%E2%80%94%E2%80%8AInteracting%20with%20%E2%80%98Solution%E2%80%99%20Flows%3CP%3EBecause%20flows%20under%20the%20%E2%80%98My%20Flows%E2%80%99%20tab%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-automate%2Fweb-api%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Eare%20not%20currently%20supported%3C%2FA%3E%20by%20Power%20Automate%20web%20API%E2%80%99s%2C%20you%20will%20need%20to%20interact%20with%20all%20programmatic%20flows%20via%20the%20%E2%80%98Solutions%E2%80%99%20tab.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E**Note%3A%20I%20have%20only%20been%20able%20to%20programmatically%20create%2Faccess%20flows%20within%20the%20Default%20Solution%20for%20a%20relevant%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Flearn%2Fmodules%2Fcreate-manage-environments%2F%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3EDataverse%20environment%3C%2FA%3E.%20Microsoft%20does%20not%20mention%20this%20limitation%20in%20their%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-automate%2Fweb-api%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Eweb%20API%20documentation%3C%2FA%3E%20and%20I%20am%20uncertain%20of%20the%20scalability%2Fperformance%20implications.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3ETo%20manually%20create%20a%20new%20Solutions%20flow%2C%20navigate%20to%20the%20Solutions%20tab%20and%20select%20Default%20Solution%20%26gt%3B%20New%20%26gt%3B%20Cloud%20flow%26nbsp%3B%20To%20view%20existing%20Solutions%20flows%2C%20navigate%20to%20the%20Solutions%20tab%20and%20select%20Default%20Solution%2C%20then%20filter%20%E2%80%98Cloud%20flow%E2%80%99.%3CP%3ETo%20obtain%20the%20ID%20for%20a%20specific%20Solutions%20flow%2C%20select%20it%20and%20copy%20the%20GUID%20value%20(%2Fflows%2F%5BGUID%5D%2F)%20from%20the%20browser%20URL.%3C%2FP%3E%20%20%26nbsp%3B%20Part%202%E2%80%8A%E2%80%94%E2%80%8AGet%20ClientData%20Content%20for%20New%26nbsp%3BFlows%3CP%3EIn%20order%20to%20create%20flows%20programatically%2C%20we%20will%20use%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-automate%2Fweb-api%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3EPower%20Automate%20Management%20Web%20API%3C%2FA%3E.%20The%20meat%20and%20potatoes%20of%20the%20flow%20payload%20is%20contained%20in%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-automate%2Fweb-api%23create-a-cloud-flow%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Eclientdata%3C%2FA%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-automate%2Fweb-api%23create-a-cloud-flow%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3E%20property%3C%2FA%3E.%20To%20help%20determine%20appropriate%20content%20for%20populating%20this%20section%2C%20I%20recommend%20manually%20creating%20a%20%E2%80%98base%E2%80%99%20Power%20Automate%20flow%20using%20the%20UI.%20Then%2C%20you%20can%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-automate%2Fweb-api%23list-flows%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Eleverage%20the%20API%3C%2FA%3E%20to%20get%20the%20clientdata%20content%20from%20that%20manual%20flow%20and%20copy%2Fpaste%20it%20into%20the%20payload%20for%20new%20flow(s).%3C%2FP%3EFollow%20the%20instructions%20for%20creating%20a%20new%20Solutions%20flow%20as%20shown%20above%20in%20Part%201.%26nbsp%3B%20Navigate%20to%20your%20tenant%20%3CA%20href%3D%22https%3A%2F%2Fadmin.powerplatform.microsoft.com%2Fenvironments%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3EPower%20Platform%20admin%20center%3C%2FA%3E%20to%20obtain%20the%20environment%20URL.%20Update%20the%20variable%20at%20line%20%2317%20with%20the%20relevant%20URL.%26nbsp%3B%20Uncomment%20the%20RetrieveFlowmethod%20call%20at%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FTracyGH%2FCreatePowerAutomateFlow%2Fblob%2Fmaster%2FCreateFlows%2FSampleProgram.cs%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Eline%20%2340%3C%2FA%3E%20and%20confirm%20theCreateFlow%20method%20at%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FTracyGH%2FCreatePowerAutomateFlow%2Fblob%2Fmaster%2FCreateFlows%2FSampleProgram.cs%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Eline%20%2341%3C%2FA%3E%20is%20commented%20out.%20See%20Part%201%20above%20to%20obtain%20a%20Flow%20ID%20(GUID)%20for%20the%20flow%20you%20just%20created.%20Update%20the%20variable%20at%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FTracyGH%2FCreatePowerAutomateFlow%2Fblob%2Fmaster%2FCreateFlows%2FSampleProgram.cs%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Eline%20%23113%3C%2FA%3E%20with%20the%20flow%20GUID%20value.%26nbsp%3B%20Insert%20a%20breakpoint%20at%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FTracyGH%2FCreatePowerAutomateFlow%2Fblob%2Fmaster%2FCreateFlows%2FSampleProgram.cs%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Eline%20%23122%3C%2FA%3E%20Run%20the%20project%2C%20providing%20credentials%20for%20a%20user%20who%20has%20access%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowerapps%2Fdeveloper%2Fdata-platform%2Fauthenticate-oauth%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3EDataverse%20Web%20API%3C%2FA%3E.%20(I%20have%20only%20tested%20with%20a%20global%20admin%20account.)%20Copy%20the%20string%20value%20within%20the%20clientdata%26nbsp%3B.%20Part%203%E2%80%8A%E2%80%94%E2%80%8AProgrammatically%20Create%20a%20New%26nbsp%3BFlow%20Paste%20the%20clientdata%20content%20from%20above%20into%20the%20variable%20located%20on%20line%20%2361.%20Comment%20out%20the%20RetrieveFlowmethod%20call%20at%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FTracyGH%2FCreatePowerAutomateFlow%2Fblob%2Fmaster%2FCreateFlows%2FSampleProgram.cs%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Eline%20%2340%3C%2FA%3E%20and%20confirm%20theCreateFlow%20method%20at%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FTracyGH%2FCreatePowerAutomateFlow%2Fblob%2Fmaster%2FCreateFlows%2FSampleProgram.cs%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Eline%20%2341%3C%2FA%3E%20is%20not%20commented%20out.%20Run%20the%20project!%3CP%3EIf%20everything%20works%20as%20expected%2C%20you%20should%20be%20able%20to%20locate%20your%20new%20flow%20by%20following%20the%20instructions%20in%20Part%201%20to%20view%20Solutions%20flows.%26nbsp%3BTest%20your%20new%20flow%20to%20confirm%20everything%20works%20as%20expected.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3EPart%204%E2%80%8A%E2%80%94%E2%80%8A%E2%80%98Tweak%E2%80%99%20the%20ClientData%20Content%3CP%3EBelow%20is%20a%20de-serialized%20example%20of%20the%20content%20within%20the%20clientdataproperty%20of%20a%20Power%20Automate%20flow.%20This%20particular%20flow%20is%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fbusiness-apps%2Fpower-automate%2Fsharepoint-connector-actions-triggers%23when-an-item-is-created%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3Etriggered%20when%20a%20new%20item%3C%2FA%3E%20is%20created%20within%20a%20SharePoint%20list.%20The%20indicated%20tableproperty%20at%20line%20%2352%20holds%20the%20value%20for%20the%20GUID%20of%20the%20relevant%20SharePoint%20list.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20create%20a%20new%20Power%20Automate%20flow%20which%20targets%20a%20different%20SharePoint%20list%20(within%20the%20same%20Site)%2C%20simply%20update%20that%20GUID%20value%20in%20the%20clientdata%26nbsp%3B.%20While%20I%20have%20only%20tested%20this%20specific%20scenario%2C%20the%20potential%20applications%20for%20%E2%80%98tweaking%E2%80%99%20values%20to%20facilitate%20bulk%20flow%20creation%20are%20endless.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%7B%7B%20%22properties%22%3A%20%7B%20%22connectionReferences%22%3A%20%7B%20%22shared_sharepointonline%22%3A%20%7B%20%22runtimeSource%22%3A%20%22embedded%22%2C%20%22connection%22%3A%20%7B%20%22name%22%3A%20%22shared-sharepointonl-ceefa1df-44c6-4e6f-800b-b350-ca17dbda%22%20%7D%2C%20%22api%22%3A%20%7B%20%22name%22%3A%20%22shared_sharepointonline%22%20%7D%20%7D%2C%20%22shared_office365%22%3A%20%7B%20%22runtimeSource%22%3A%20%22embedded%22%2C%20%22connection%22%3A%20%7B%20%22name%22%3A%20%22shared-office365-3bf72576-f215-4852-95ad-69cf-db33f170%22%20%7D%2C%20%22api%22%3A%20%7B%20%22name%22%3A%20%22shared_office365%22%20%7D%20%7D%20%7D%2C%20%22definition%22%3A%20%7B%20%22%24schema%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fschema.management.azure.com%2Fproviders%2FMicrosoft.Logic%2Fschemas%2F2016-06-01%2Fworkflowdefinition.json%23%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fschema.management.azure.com%2Fproviders%2FMicrosoft.Logic%2Fschemas%2F2016-06-01%2Fworkflowdefinition.json%23%3C%2FA%3E%22%2C%20%22contentVersion%22%3A%20%221.0.0.0%22%2C%20%22parameters%22%3A%20%7B%20%22%24connections%22%3A%20%7B%20%22defaultValue%22%3A%20%7B%7D%2C%20%22type%22%3A%20%22Object%22%20%7D%2C%20%22%24authentication%22%3A%20%7B%20%22defaultValue%22%3A%20%7B%7D%2C%20%22type%22%3A%20%22SecureObject%22%20%7D%20%7D%2C%20%22triggers%22%3A%20%7B%20%22When_an_item_is_created%22%3A%20%7B%20%22recurrence%22%3A%20%7B%20%22frequency%22%3A%20%22Minute%22%2C%20%22interval%22%3A%203%20%7D%2C%20%22splitOn%22%3A%20%22%40triggerOutputs()%3F%5B'body%2Fvalue'%5D%22%2C%20%22type%22%3A%20%22OpenApiConnection%22%2C%20%22inputs%22%3A%20%7B%20%22host%22%3A%20%7B%20%22apiId%22%3A%20%22%2Fproviders%2FMicrosoft.PowerApps%2Fapis%2Fshared_sharepointonline%22%2C%20%22connectionName%22%3A%20%22shared_sharepointonline%22%2C%20%22operationId%22%3A%20%22GetOnNewItems%22%20%7D%2C%20%22parameters%22%3A%20%7B%20%22dataset%22%3A%20%22https%3A%2F%2F%5BM365Domain%5D.sharepoint.com%2F%22%2C%20%22table%22%3A%20%22e134069a-5a16-4602-bdd5-7f1fec27d45a%22%20%7D%2C%20%22authentication%22%3A%20%22%40parameters('%24authentication')%22%20%7D%20%7D%20%7D%2C%20%22actions%22%3A%20%7B%20%22Send_an_email_(V2)%22%3A%20%7B%20%22runAfter%22%3A%20%7B%7D%2C%20%22type%22%3A%20%22OpenApiConnection%22%2C%20%22inputs%22%3A%20%7B%20%22host%22%3A%20%7B%20%22apiId%22%3A%20%22%2Fproviders%2FMicrosoft.PowerApps%2Fapis%2Fshared_office365%22%2C%20%22connectionName%22%3A%20%22shared_office365%22%2C%20%22operationId%22%3A%20%22SendEmailV2%22%20%7D%2C%20%22parameters%22%3A%20%7B%20%22emailMessage%2FTo%22%3A%20%22%40triggerOutputs()%3F%5B'body%2FAuthor%2FEmail'%5D%22%2C%20%22emailMessage%2FSubject%22%3A%20%22New%20Item%20Created!%22%2C%20%22emailMessage%2FBody%22%3A%20%22%3CP%3ENew%20Item%20Created!%3CBR%20%2F%3E%5Cn%40%7BtriggerOutputs()%3F%5B'body%2F%7BLink%7D'%5D%7D%3C%2FP%3E%22%20%7D%2C%20%22authentication%22%3A%20%22%40parameters('%24authentication')%22%20%7D%20%7D%20%7D%2C%20%22outputs%22%3A%20%7B%7D%20%7D%20%7D%2C%20%22schemaVersion%22%3A%20%221.0.0.0%22%20%7D%7D%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2600551%22%20slang%3D%22en-US%22%3E%3CP%3EAn%20article%20detailing%20the%20process%20of%20programmatically%20creating%20and%20retrieving%20Power%20Automate%20flows%20using%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpower-automate%2Fweb-api%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3EPower%20Automate%20Management%20Web%20API%3C%2FA%3E%2C%20including%20a%20demo%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FTracyGH%2FCreatePowerAutomateFlow%2Ftree%2Fmaster%2FCreateFlows%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3EC%23%20console%20application.%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Aug 04 2021 11:59 AM
Updated by: