web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Infolog setPrefix is flattening messages instead of showing them in Message Details

(0) ShareShare
ReportReport
Posted on by 5

Hello - long time lurker, first time poster

I'm trying to show a message that has additional details if the user wants to click and view them. I've been able to do this before and have it work as expected (image 1), but for some reason when I push messages in this context (image 2), the prefix strings are all merged into a single line. Using chrome dev tools, I can see each chunk is a separate <span> element, so the system is recognizing that that it shouldn't just be a regular inline string, but I can't find any documentation that this is even a possibility, much less why it might choose this method over the first / expected one. I've tried this using both regular calls to setPrefix as well as tab-delimitating as shown here - both have the same (bad) result.

I've also looked into a using the Message() API a little, but it doesn't look like it has the same 'Message Details' options for just showing extra string content? If someone knows differently, though, I'd be more than happy to jump ship on setPrefix.

Appreciate any thoughts you all might have - thanks!


Message details working as expected:
0005.MicrosoftTeams_2D00_image.png

What I'm seeing on the 'problem' page:
3175.MicrosoftTeams_2D00_image-_2800_1_2900_.png

I have the same question (3)
  • Verified answer
    Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    I think that the difference is that in your latter case, you have just a single message. Will it change if you add one more message under the same prefix?

  • gedout Profile Picture
    5 on at

    Yep, that's it! That leaves me with a different problem, but at least I know the constraints now.

    Thanks Martin

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 663

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 439 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 337 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans