Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Missing key field in adaptive card

Posted on by 82

Hi,

We have created a custom table in Business Central, similar to Jobs where the key field is "No." and other important fields are "Customer No.", "Customer Name" and Description. I created a simple automatic flow in Power Apps to send an adaptive card to a channel when a new record is created. 

The fields in the adaptive card are "Customer No.", Description and "Customer Name" (in that order), there is no reference to the key field "No.". Neither in the custom table's keys and field groups nor in the card page used for the adaptive card is there a combination of the table fields in that order. The key field is also on the card page. Still the adaptive card is produced per default without the key field and with that weird field order.

How does power apps know which fields to include and in what order? Any answer is much appreciated.

Thanks.

  • Pimp Your BC Profile Picture
    Pimp Your BC 82 on at
    RE: Missing key field in adaptive card

    Hi Yun Zhu,

    Thanks for the reply, and for the link!

    As you can see from the fieldgroup Brick, it does contain the "No." and even has a different order than the one in the adaptive card. So it seems to be something else that is determining the fields to include and in what order they are shown.

       fieldgroups

       {

           fieldgroup(Brick; Description, "No.", "Customer No.", "Customer Name")

           {

           }

       }

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,333 Super User 2024 Season 2 on at
    RE: Missing key field in adaptive card

    Hi, It may be related to the Brick field group, hoping to give you some hints.

    Developing for Microsoft Teams Using Metadata - Business Central | Microsoft Learn

    Thanks.

    ZHU

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans