Topics

Platform setup · Guide

Connect the platform to Power Automate

With the Power Local connector your team builds flows with reports in Power Automate: a ticket, a Planner task or an email as soon as a report arrives, or a status that another system reports back. You import the connector from an address and enter an API key.

Last reviewed:

On this page

Goal

In Power Automate, «Power Local» is available with one trigger and three actions, connected to your platform.

Before you start

  • You are signed in to the platform as an administrator, and the «API access» card appears in «System Settings».
  • You may create custom connectors in Power Automate.

Steps

  1. Create a key with the right permissions

    Under «API access», in the «Create» tab, create a key as the guide «Give another system access to reports (API)» describes. Under «May», tick what your flows need: «Register its own webhooks» for the trigger, «also change status and comment» or «also create internal reports» for the actions. Copy the secret key.

    Create tab with a chosen account and the list of rights: one fixed, three optional.Open image
    Example view with test data: «API-Zugriff» (API access), tab «Erstellen» (Create). An account is chosen under «Handelt als» (acts as); the list «Darf» (may) shows «Meldungen lesen» (read reports) ticked and greyed (always included) and three unticked rights, including «Webhooks selbst anlegen» (create webhooks themselves).
  2. Import the connector

    In Power Automate, open the custom connectors and choose to import an OpenAPI description from an address. These are Microsoft's steps, and their wording differs by version and language. Enter «Power Local» as the name and, as the address, your platform's address with the path /api/v1/openapi.php, for example https://meldungen.gemeinde.ch/api/v1/openapi.php. Create the connector.

  3. Create the connection

    Create a connection for the connector. Power Automate asks for the API key: paste the copied key, which starts with pl_api_.

  4. Build a flow

    As the trigger choose «Wenn sich eine Meldung ändert» (when a report changes) and the events, for example «report.created» for new reports. Any steps may follow, such as a Planner task or an email. With «Status ändern oder kommentieren» (change status or comment) a flow reports a status or a comment back to the report. «Meldungen abrufen» (get reports) reads reports, «Interne Meldung anlegen» (create an internal report) adds one. The connector's trigger and action names are in German.

  5. Test

    Save the flow and change a report in the platform that the key's account may see. The flow starts within seconds.

Check the result

Power Automate knows «Power Local», your flow starts on the chosen changes and can read, create and change reports within the key's permissions.

If something goes wrong

The import says the address cannot be reached.
Check the address ends with /api/v1/openapi.php. If it does not answer in a browser, API access is not switched on for your platform; ask Power Local for it.
The trigger cannot be saved.
The key lacks the permission «Register its own webhooks», or it already has the most webhooks it can have. Create a key with the permission or delete an old one under «Webhooks».
An action says a permission is missing.
The key may not do that, or the chosen account may not do it in the platform. Create a key with the matching permission.
The flow no longer starts.
The key is paused, expired or revoked. Resume or extend it; a revoked key needs a new key and a new connection.

Common questions

Does this work in Power Apps or Logic Apps too?

Yes. A custom connector created in Power Automate is also available in Power Apps, and Logic Apps imports the same address.

What does Power Automate see of a report?

With the trigger: the code, the status, the urgency, the category and the link. With «Meldungen abrufen» also text and place, but only for reports the key's account may see.

Is Power Local in the public connector catalogue?

Not yet; until then you import it from your platform's address.

Help

Help and contact

Close

Live chat coming soon

Popular guides

Write to us info@uxact.ly