Wednesday, November 28, 2018

How to create Pages in AL Code Dynamics 365 Business Central from Visual Studio Code?

Dear Readers ,

There are 11 types of pages available in Dynamics 365 Business Central.


These pages we can create in Visual Studio Lets have a look in the screens. Use as much code snippets as you can.

1. Card Page





2. List Page





3. Card Part Page




4. List part Page


IMPORTANT:

To view your Page in search bar you must have to include property USAGECATEGORY.
For Reference you can check the screenshot.


SAMPLE CODE


pageextension 70000030 SocialMediaChannelPage extends "Customer Card"
{
layout
{
addlast(general)
{
field(Facebook;Facebook)
{
CaptionML=ENU='Facebook';
}
}
}

actions
{
addlast("&Customer")
{
action("Get Facebook posts")
{
RunObject=codeunit "Social Media Mgt.";
RunPageOnRec = True;
Image = CheckDuplicates;
PromotedCategory = Category8;
Promoted = true;
ApplicationArea = All;
}
}
}
}




No comments:

Post a Comment