web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Use PostFollow action ...
Power Apps
Unanswered

Use PostFollow action to Follow/Unfollow record in Canvas App

(1) ShareShare
ReportReport
Posted on by 597

Hi,

Is there any way to use the postfollow API in a PowerApps Canvas App? I would like to add the ability for a user to follow/unfollow a record using the "postfollow" table ... I know I could write a custom plugin or power automate, but I wonder if there is no OOB option. Using Patch on the "Follows" table, gives an error "the data source supplied to the function is invalid"...

see this post for more information: {Dynamics 365 Web API} Follow and Unfollow CRM Core records – xrm CRM Dynamics (wordpress.com)

Categories:
I have the same question (0)
  • Sunil Pashikanti Profile Picture
    736 Moderator on at

    Hi @KoenJanssensPD 

     

    Understanding PostFollow and Follows:
    The “postfollow” table (also known as the Follow entity) in Dynamics 365 allows users to follow records. It’s used for tracking user interests in specific records.
    The “Follows” table is where the actual follow/unfollow data is stored.


    Challenges with Patch on Follows Table:
    You mentioned using Patch on the “Follows” table, but it resulted in an error. This is because the “Follows” table is not directly accessible as a data source in PowerApps.
    The “Follows” table is part of the Dynamics 365 Web API, which isn’t natively supported in PowerApps.


    Workaround Using Custom Connector and Flow:
    While there’s no direct out-of-the-box (OOB) solution, you can create a workaround:
    Custom Connector:
    Build a custom connector in PowerApps that connects to the Dynamics 365 Web API.
    Define actions for following and unfollowing records.
    Power Automate (Flow):
    Create a flow triggered by your custom connector.
    In the flow, use the “Follow” and “Unfollow” actions from the Dynamics 365 connector to interact with the “postfollow” table.
    Return the result to PowerApps via the custom connector.


    Steps Summary:
    User clicks a button in your PowerApp to follow/unfollow a record.
    PowerApps calls the custom connector.
    The custom connector triggers the Power Automate flow.
    The flow interacts with the Dynamics 365 Web API to follow/unfollow the record.
    The flow returns the result to PowerApps.


    Remember, this approach involves creating a custom connector and setting up a flow, but it provides a way to achieve the desired functionality.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Sunil Pashikanti - Tech Blog: PowerApps

  • KoJaPD Profile Picture
    597 on at

    Hi @SunilPashikanti ,

    I have already been able to create two Power Auomate Flows, "follow" and "unfollow", without the need for an additional custom connector. I have just used the Dataverse "Add a new row" (or "delete a row" for unfollowing) actions on the "postfollows" table, and it is working fine. 

    This is however a second-best method, since it creates an additional dependency on the flows for the powerapp...

  • westerdaled Profile Picture
    636 on at
    I am able to test this out using  Postman and this endpoint
    https://orgXXXXXX.api.crm11.dynamics.com/api/data/v9.2/postfollows
     
    I have posted a "follow" to an account record.  Howevever  I am not seeing this appear anywhere in the UI of my model-driven app.  Do i need to enable something in the Dataverse settings so that my my followed account record  appears somewhere?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard