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 / Set Primary Field valu...
Power Apps
Unanswered

Set Primary Field value to another field without Flow?

(0) ShareShare
ReportReport
Posted on by 782

I'm building a model-driven app.

I'm wanting to set the Primary Field of some records to equal the text label of a selected lookup value. Since we can't make the Primary Field be a calculated value, I thought a business rule might do it but I'm confused how to update the value of one field with the value of another. 

I'd prefer not to have to do this in Power Automate if possible.

I have the same question (0)
  • Joel CustomerEffective Profile Picture
    3,224 on at

    You may be able to use business rule to do this, but I’m a fan of real time workflow for this kind of thing. Hold on and I will post a video showing how

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @notj ,

    Do you want to update a field with value of another field in same record?

     

    Regarding the needs that you mentioned, I think the Business Rule could achieve your needs. On your side, you could consider create a Business Rule for CDS Entity which is related to your Model-Driven app as below:

    2.JPG

     

    More details about creating Business Rule for Enty forms, please check the following article:

    https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/create-business-rules-recommendations-apply-logic-form

     

    In addition, I also think the Workflow could also achieve your needs. More details about creating a workflow for a CDS Entity, please check the following article:

    https://docs.microsoft.com/en-us/power-automate/workflow-processes

     

    Regards,

  • David Jennaway Profile Picture
    716 on at

    As per the previous posts, you could either use a Business Rule, or a real-time workflow (which doesn't use Power Automate). There's not a lot to chose between either approach, but there are a few differences:

    • With business rules, you can choose the scope; i.e. whether it only runs on certain forms, or entity-level scope. If you want this to run for all scenarios (including records created or modified outside of a form), then you'll need entity-level scope
    • With real-time workflows you have different control on when it triggers - e.g. on Create, on Update of fields (in this case, the lookup field). You can also set it to run on-demand, which may be useful to run for existing records

    Overall, I'd go for a real-time workflow, partly out of habit, but also so I can run it on-demand, but I expect either option would work for your scenario

  • notj Profile Picture
    782 on at

    @v-xida-msft   That worked. I was trying that before but I didn't realize my Primary text field would only take other text fields. 

     

  • notj Profile Picture
    782 on at

    @DavidJennaway thanks, I didn't see that scope option up there. That definitely makes it more useful. 

  • RB-22072210-0 Profile Picture
    Microsoft Employee on at

    Hi @notj - how did you end up solving the issue of setting the Primary text value to a non-text (lookup) field value? I'm having the exact same issue

  • notj Profile Picture
    782 on at

    I can't remember what app this was for, so I'm having trouble finding it. I think I used a few fields to contain all the data in the lookup field in separate fields, then I used a business rule to update the Primary text afterwards to one of these separated fields. 

    So basically, a lookup field. Then a couple fields that have calculation business rules to be equal to lookupfield.name, lookupfield.phone, etc.

    Then a rule that fires on creation to update the primary text with whichever one of those I needed. Hopefully that makes sense.

     

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard