Embedded Canvas App Pt 2 – Create Gallery n Polymorphic Lookup

Gallery filtering

  1. How to refer to a particular field from the host entity?
    • [@ModelDrivenFormIntegration].Item.’Field Name”

Polymorphic Lookup

  1. What is Polymorphic Lookup
    • A lookup field that can refers to more than one entity.
    • Example:
      • Lookup:Owner – User/Teams entity
      • Lookup: Customer – Account/Contact
      • Lookup: Regarding – Account, contact, opportunity, case etc
  2. So…what is the problem with that?
    • When tell the app to perform a function (ie Filter) on a value in a polymorphic lookup, the app does not know which entity to refer to.
  3. Oh…How do I filter a list based on a Polymorphic lookup then?
    • Using Is Type…As Type function
    • Is Type – to tell the app studio to check if the record is referring to the specified entity
    • As Type – to tell the app studio which entity to refer to
    • Important – This does not support delegation
  4. Examplet1
References:
Embedded Canvas App Pt 1 – Introduction
https://eelane.com/2019/08/09/embedded-canvas-apps-pt-1-introduction/

Polymorphic Lookup
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-references

Natraj Blog:
https://dreamingincrm.com/

Published by Ee Lane (Laney)

I am a PowerApps girl :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: