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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Activating or deactiva...
Power Apps
Answered

Activating or deactivating records in a many to many relationship

(0) ShareShare
ReportReport
Posted on by 4

I am trying to build a solution which has an Employee table and a Roles table. Each employee can have a number of roles and each role can have a number of employees related to it. I was planning to use the status code to determine if the role or employee is to be included in a forward forecast based on the status code. At the moment I can either deactivate the employee or the role but not the combination of position and role. I have tried to use views and forms with subgrids but cannot find a way to deactivate or reactivate the particular combination shown below. Any thoughts greatly appreciated.

 

Employee numberEmployee statusRole numberRole status
954999Active458999Inactive
954999Active675999Active
I have the same question (0)
  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @Finman999 ,

     

    I would setup a data model like the following to accomplish your needs which will be easier to manage and allow you to have metadata on the employee and role relationships...

     

    dpoggemann_0-1666782027077.png

     

    The Roles can then be activated / inactivated and the employees can be activated / inactivated independently and you can have the Employee Role table with the ability for the Employee to have multiple roles and a role with multiple employees assigned.  You will also be able to add fields on the Employee Role table around start date, end date, etc. if required.

  • Finman999 Profile Picture
    4 on at

    Many thanks - this worked a treat. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard