What are Headlines in Dynamics 365 Business Central and how to extend them

Compliment from Microsoft 

Headlines are the new part of Role Center. They show the most interesting data insights for a particular role, a user. This is, as you want, Hot news for MSDyn365BC user!

For example, when Sales Manager logins to Business Central in the morning he sees greeting and fresh news

  • Best-selling item
  • Yesterday’s revenue
  • Top customer
  • etc.

But after lunchtime, headlines will show new information – all insights about current day. 

Frankly speaking, now (at prerelease) user see only greeting and link to Business Central documentation. But that’s enough to understand what headlines are and how to extend them.

image

Below is what I found myself, and this is not official Microsoft documentation.

Headlines, the basics 

Technically headlines are

  • pages with new type HeadlinePart
  • are shown on the top of Role Center
  • contain one or more text fields to cycle through

From a user point of view, they are beautiful top news about their business.

I found next headline pages in D365BC

image

So, 9 role centres now have headlines.

Let’s look at Business Manager Role Center (page 9022). First part is headline part. Nothing special, just new part page Headline RC Business Manager (page 1440).

image

If we look at it, we will not see something special 

image

except PageType = HeadlinePart

image

This type makes next magic to the page

  • all fields will be placed in a cycle
  • only one field is shown on the page at one moment of time
  • a field value is shown per 8 sec, then it becomes invisible and next field is shown per next 8 sec, and next, and next J
  • to show specific field user can click on the beautiful dot 

You can group fields to control the visibility of them.

For example, a standard group for Greeting text will be visible only for the first 10 minutes after user logins. After that – it disappears.

Here, how it works:

image

OnAfterGetRecord it checks visibility.

image
image
image

How to hide standard headlines

Note, that here we have

[IntegrationEvent] OnIsAnyExtensionHeadlineVisible(VAR ExtensionHeadlinesVisible : Boolean).

Why is it there?

It allows to disable standard headlines and shows only custom headlines.

If you want to do so, simply subscribe to it and set ExtensionHeadlinesVisible = true.

image

How to add a new headline

Some notes about designing headlines

  • Consider user role and interests
  • Make them a bit of ‘wow’
  • Max 75 chars, per 1 headline
  • Add maximum 3-7 insights
  • Great for describing trend, aggregation, correlation
  • Add drill down and text emphasis
  • Separate the content from the main message

To add a new headline, we should add a new text field to Headline page.

image

As a result, we will see next headline

image

Good, but we can do more.

How to change the name of headline

Do you see that every headline has its own name? By default it is HEADLINE

It could be also be changed with GetHeadlineText function in Headline Management codeunit.

So, the first argument is the name of the headline, second is the text of headline.

If we will change our code to the next one

image

The result will be

image

How to emphasize part of the headline

If we want to highlight part of headline we should use Emphasize function in Headline Management codeunit. 

For example, next code

image

will generate next headline

image

As we’ve added a hyperlink on drill down we can click on a headline, and new page will open.

image

I did not found a solution how to add 2 or more different drilldowns for one headline if we want to emphasize 2 or more insights.

May be this is not possible, cos one headline should be about one clickable insight.  

Greetings

There is one standard headline, I want to describe more detailed. This is greetings headline. 

It greets user, differently depending of time, and disappears after 10 minutes from logging.

Good morning! – between 00:00 and 10:59

Hi! – between 11:00 and 13:59

Good afternoon! – between 14:00 and 18:59

Good evening! – between 19:00 and 23:59

All this is calculated in GetUserGreetingText function in Headline Management codeunit.

Unfortunately, we cannot call it from extensions development, cos it is not external.

Conclusion

Headlines are very cool.

But, please think, when you add them. Think about the user, about his job, about what he cares.

Headlines can increase user productivity at times.

They can become the main business news feed for the user, and the reason why he will choose Dynamics 365 Business Central.

Share Post:

Leave a Reply

About Me

DMITRY KATSON

A Microsoft MVP, Business Central architect and a project manager, blogger and a speaker, husband and a twice a father. With more than 15 years in business, I went from developer to company owner. Having a great team, still love to put my hands on code and create AI powered Business Central Apps that just works.

Follow Me

Recent Posts

Tags