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 :
Customer experience | Sales, Customer Insights,...
Answered

Show a system view in lookup field

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All, 

I have a business logic to set a system view on lookup field based on option set field value selection. 

In Details, there is an option set field called region, and other lookup field called OSPTE (looked up to user entity). Now that, based on the value selection in option set field, I need to set a matching system view on this lookup. 

Example: If the region is APAC, then OSPTE APAC system view has to be set in the lookup. 

Could anyone please help technical approach. 

Thank you,

Leo

I have the same question (0)
  • Verified answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi Leo D365.

    The line formContext.getControl(arg).setDefaultView(viewId) is going to help you. For more details about the line: setDefaultView (Client API reference) in model-driven apps - Power Apps | Microsoft Learn

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

  • Suggested answer
    Leo D365 Profile Picture
    Microsoft Employee on at

    Hi Abdul,

    Thanks a lot for helping me out! This worked for me.

    Regards,

    Leo

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi Leo D365,

    You are welcome.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform & Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 142 Super User 2026 Season 1

#2
Nagaraju_Matta Profile Picture

Nagaraju_Matta 128

#3
11manish Profile Picture

11manish 121

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans