How to configure Power Automate to retrieve IoT Central telemetry data?

Tobias Persson 21 Reputation points
2020-12-17T13:35:48.617+00:00

I am trying to build a heart-beat functionality to detect whether or not IoT Central has received any messages the last x minutes.

I am trying to design a Power Automate scheduled flow that retrieves a datareceived telemetry field and does some comparison on it in the flow.

I however struggle to understand the parameters involved in the Power Automate call and find the documentation to be be sparse at best.

How would I configure the flow (see attached screendumps) to get this working?

49186-screen-shot-2020-12-17-at-142548.png
49100-screen-shot-2020-12-17-at-142639.png

Community Center | Not monitored
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2020-12-17T13:44:15.95+00:00

    Power automate is not currently supported here on QnA. The product group actively monitors questions in dedicated forums here.
    https://powerusers.microsoft.com/t5/Microsoft-Power-Automate/ct-p/MPACommunity

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. Sander van de Velde | MVP 36,951 Reputation points MVP Volunteer Moderator
    2020-12-17T18:05:07.773+00:00

    49301-iot-central-api-rest-call.txtHello @Tobias Persson

    First, I would like to invite you to follow the specific MS Learn module https://learn.microsoft.com/en-us/learn/modules/manage-iot-central-apps-with-rest-api/

    There you learn to actually make calls and it even provides a working example (using a sandboxes environment).

    The examples are making use of powershell/CLI commands.

    The same can be done using regular (C#) code [see attachment49272-iot-central-api-rest-call.txt
    This code results in:

    49239-image.png

    So this proofs the call is actually working. It includes a datetime value which is exactly what you need.

    Regarding your issue, it seems the URL is not well constructed. It should end with an actual value like 'Flow' or 'Temperature'.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.