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 / Using Dataverse Activi...
Power Apps
Answered

Using Dataverse Activity Table, how do you select the Owner when doing NewForm?

(0) ShareShare
ReportReport
Posted on by 4

In my Canvas App I want to add a new record to a Dataverse Activity Table. I want to be able to choose the owner of the record in this NewForm component. When I add the "Owner" field to the form it requires you to add an item from the insert pane. I was able to get a dropdown connected to my Office365 users that lists the correct employees. However when I go to submit the form it will not save. When I did a troubleshoot on the different fields, that is the only field that prevented me from saving the form. Without the field it assigns the record to me. I've also tried the Owning User Field but that too did not work. I've done some digging but I can only find references to the Owner field when you are showing the Owner of an existing record but not creating a new record.

Categories:
  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @fidsolutions - the Office365 table returns completely different schema to the one that the Owner datatype expects.

     

    The Owner data type is a special type of LookUp column (a polymorphic lookup). You can read more about this type of column here:

     

    https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-references#update-the-owner-by-using-patch 

     

    The instructions below assume you're populating the Item property of your EditForm control with a Gallery selection:

     

    1. Insert the DataCard for the Owner field into your EditForm control

    2. Insert a ComboBox control inside the DataCard

    3. Add the Users table as Data Sources into your App (you can also alternatively add Teams).

    4. In the Items property of your ComboBox control, enter:

     

    Users

     

    5. In the DefaultSelectedItems property, enter:

     

    If(
     IsType(
     Gallery1.Selected.Owner,
     Users
     ),
     AsType(
     Gallery1.Selected.Owner,
     Users
     ),
     Blank()
    )

     

    6. On the Update property, enter:

     

    ComboBox1.Selected

     

    7. If you want to display the Owner onto a Label control in your Gallery, use:

     

    If(
     IsType(
     ThisItem.Owner,
     Users
     ),
     AsType(
     ThisItem.Owner,
     Users
     ).'Full Name'
    )

     

    8. If you are also leveraging the Teams table, use:

     

    If(
     IsType(
     ThisItem.Owner,
     Teams
     ),
     AsType(
     ThisItem.Owner,
     Teams
     ).'Team Name',
     AsType(
     ThisItem.Owner,
     Users
     ).'Full Name'
    )

     

  • fidsolutions Profile Picture
    4 on at

    Thank you so much! It worked perfectly. I had seen that link before, but it didn't make sense to me to translate it the way that I needed. I appreciate your help, thank you again!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard