Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

Default Values using CDS and model driven apps

(0) ShareShare
ReportReport
Posted on by 467

I have been building canvas apps the past year and have become used to the flexibility of being able to set default values with a varieity of options provided.  Within a model driven app that uses the CDS it's not clear to me what all the methods are or best practice.

 

For example, I have a lookup field within the CDS entity to a Dynamics Talent entity named worker.  The lookup uses the employee's worker ID and I woudl like to set the default value to the currentl user running the form. 

This worker entity has a variety of additional columns to help drive defaults such as employee email.  Within a canvas app you could simply grab the current users email and match it with the employee email within the worker column to default the correct worker ID.

 

Within a model app I am using the Business rules to set the default value however these don't seem to use formulas or not able to select additional fields, seems to be more simplisitic.  

Is it not possible to walk to other fields within the entity like we can in Canvas apps?

LookUp(Workers, 'Primary Email Address' = 'Created By'.'Primary Email', 'Worker Number')

 

I can create calculated column (Text)  such as employee's email and populate using createdby.internalemailaddress however this does not seem possible on a lookup column.

 

So am I missing something here?  Is there a way to default a lookup column with a dynamic value?

 

 

Categories:
  • v-yutliu-msft Profile Picture
    on at
    Re: Default Values using CDS and model driven apps

    Hi @Dudditz ,

    Do you want to filter values of a lookup field?

    Firstly, canvas app and model-driven app has many differences.

    Canvas apps have more flexibility. While model-driven apps could deal with complex business logic.

    You could  filter values of a lookup field by turning on "Only show records where".

    When this is enabled, the records that display when users search for a record will have additional filtering applied. This helps provide more relevant searches when setting the value of the lookup.

    Here's a doc anout it in details for your reference:

    https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/special-field-properties-legacy

     

     

    Best regards,

  • Dudditz Profile Picture
    467 on at
    Re: Default Values using CDS and model driven apps

    I am beginning to think much of this flexibility we have in canvas apps simply does not exist in model however using embedded canvas apps could be a solution.

     

    After testing out the embedded apps it seems like these are designed more for displaying related data rather than capturing data upstream and interacting with on a new record.  Guess this is not an option for my scenario either.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 15 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics