Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

Embedded canvas app how to get the selected lookup field value guid?

Posted on by 702

The canvas app is embedded on a Case Entity form.

There is a 1:N lookup field called Port, the the parent entity of this relationship is Port.

With the preview version of embedded canvas app I can get the GUID of a the selected value of a 1:N lookup field I could use

First([@ModelDrivenFormIntegration].Data).tmit_portName

Since it has gone GA, it is said on the documentation that we should use the ModelDrivenFormIntegration.Item to access all data from the parent entity of the embedded canvas app.

So I use

[@ModelDrivenFormIntegration].Item.Port.Port

so Port is the unique identifier on the Port entity.

Sadly [@ModelDrivenFormIntegration].Item.Port.Port

or Text([@ModelDrivenFormIntegration].Item.Port.Port) always returns blank

Eventhough there is no error, and both Port appears in the powerapps intellisense

Any ideas?

Categories:
  • RE: Embedded canvas app how to get the selected lookup field value guid?

    Hi,

     

    You need to be specific about which value you want to retrieve if the lookup is polymorphic.

     

    Following link explain in detail about the same.

     

    https://pavankumargarlapati.wordpress.com/2019/08/06/embedded-canvas-app-how-to-get-the-selected-pol...

     

    Note: In case my answer helped you. Kindly mark it as verified.

    Warm Regards,

    Pavan Kumar Garlapati

    Follow my Blog: https://pavankumargarlapati.wordpress.com

  • LuHao Profile Picture
    LuHao 40,872 on at
    RE: Embedded canvas app how to get the selected lookup field value guid?

    Hi partner,

    Please refer to this post:

    [View:https://powerusers.microsoft.com/t5/Common-Data-Service-for-Apps/Embedded-canvas-app-ModelDrivenFormIntegration-Item-Lookupfield/m-p/333951:320:50]

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans