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, ...
Unanswered

How to remove SetPrefix message?

(1) ShareShare
ReportReport
Posted on by 6,480
Hello,
is it possible to remove / clear the prefix message?
I couldn't find anything, but it would be strange if there is no way to clear the message from "setPrefix()".
I tried infoLine.clear, but it just clears the info/warning/error message, not the prefix.
Any suggestions?
Thanks
Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    303,730 Super User 2026 Season 1 on at
    Hi Johnny,

    Is your question related to a prefix from a standard feature or something within a customization? You can't change the behavior of pre-fixing in standard coding.
  • Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at
    Do you mean that you're adding a message (e.g. by calling info()) at a place where a prefix is set (by setPrefix() in some preceding code) and you want to add the message without this prefix?
     
    If it's just about this particular message, you can use infolog.add() directly and set the buildprefix parameter to false.
     
    If you want to completely remove the prefix context, I'm not sure how to do it. Have you tried passing an empty string to setPrefix()? It might have no effect, but it also might do what you want. Give it a try.

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