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

Default caption and description not displaying for SysOperationService in D365 F&O

(5) ShareShare
ReportReport
Posted on by 198
I have created a SysOperationService class in D365 F&O.
Inside the service class, I have added both defaultCaption() and description() methods like this:

public ClassDescription defaultCaption()
{
return "@THO:THOINboundLoadCleanUpServiceCaption";
}

public static ClassDescription description()
{
return "@THO:THOINboundLoadCleanUpServiceDescription";
}


But when I check in the menu item or in batch job dialog, the caption and description are not displayed.
Why is this happening? Can a service class support both methods, or do I need to set it somewhere else (like in the menu item or operation framework attributes)?
but i want the batch like this 
i am not getting this descpition part This service will delete the ASN/Packing structure for the specified module, for which the related load was received (for purchase) or shipped (for sales) before the specified number of days.Not getting this Part
 
i am getting like this
 
Categories:
I have the same question (0)
  • Martin Dráb Profile Picture
    239,632 Most Valuable Professional on at
    I'm not aware of any support in SysOperation framework for an additional description. I can't check the code at the moment, but as far as I know, description() is just one of things that are used to determine the job name, the dialog caption etc. If you see such a description if a standard batch job, I guess it's added in a UI builder class. If you share details, we can check that together.
     
    If the caption isn't what you want, you can use the debugger to check where it comes from. For example, it may take the label of the menu item, ignoring your methods.
     
    Note that it's defined by the controller class, not the service class. 
  • Sohaib Cheema Profile Picture
    49,664 Super User 2026 Season 1 on at
    caption method comes from SysOperationController nand you can see the method parmDialogCaption() the logic how it tries to get it from menu item, if you do not set the variable 
     
    Inside Dynamics if you see the references for class SysOperationServiceController you can see manyclasses that are implementing it and many of those implement caption as following (in the Controller class)
     
     
  • Suggested answer
    Sagar121 Profile Picture
    1,185 Super User 2026 Season 1 on at
    You should add these methods in controller class. Typically you extend main class(entry point) with SysOperationServiceController. Then you can override these methods then you caption should appear.
  • Suggested answer
    Rahul T Profile Picture
    29 on at
    Hi Aditya,
     
    Kindly ensure that your code is incorporated into a controller class that inherits from the  SysOperationController class. For reference, please review the provided class and accompanying snapshot:
     
    Class name: BankAccountTransClearedDateUpgrade
     
  • Verified answer
    Martin Dráb Profile Picture
    239,632 Most Valuable Professional on at
    Okay, now let's return to the actual topic of this thread.
     
    Aditya Pal, as I mentioned, the description you see below Clean up ASN/Packing structure isn't managed by the SysOperation framework. It's a text added in code to this particular dialog form. You'll find the implementation in WHSASNPackingStructureCleanUpUIBuilder class. If you want something similar in your own dialog, you'll need a similar implementation.

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 April 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 804

#2
André Arnaud de Calavon Profile Picture

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

#3
Subra Profile Picture

Subra 528

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans