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

Notifications

Announcements

No record found.

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
    237,965 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 434 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans