web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

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
    RE: Show a system view in lookup field

    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
    on at
    RE: Show a system view in lookup field

    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
    RE: Show a system view in lookup field

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 125

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 110 Super User 2025 Season 2

#3
Erin Lubben Profile Picture

Erin Lubben 73

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans