How to update value of second component automatically

Ajinkya 0 Reputation points
2023-12-06T09:30:29.07+00:00

I have a relationship between two components, and both share the same property, 'acCurrent.' If I change the value of one component, I want the value of the second component to automatically change to the same value as the first component. How is this possible?

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
224 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 31,211 Reputation points MVP
    2023-12-06T16:33:35.6366667+00:00

    Hello @Ajinkya,

    welcome to this moderated Azure community forum.

    When an Azure Digital Twin twin property is changed, the Azure Digital Twins runtime can emit a change event.

    Some custom logic like another Azure Function can listen to the property changes and act on them using the routing:

    User's image

    An example is seen in this blog post.

    There, a code sample is described, found in the GitHub repo.

    Try it out yourself, finding eg. the parent by doing graph traversal.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    1 person found this answer helpful.
    0 comments No comments