Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Answered

Show a system view in lookup field

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

Categories:
  • Suggested answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 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/.../

  • Suggested answer
    Leo D365 Profile Picture
    Leo D365 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

  • Verified answer
    Abdul Wahab Profile Picture
    Abdul Wahab 12,070 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/.../

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,570 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,683 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans