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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

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

(5) ShareShare
ReportReport
Posted on by 153
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)
  • Suggested answer
    Martin Dráb Profile Picture
    235,826 Most Valuable Professional on at
    Default caption and description not displaying for SysOperationService in D365 F&O
    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.
  • Suggested answer
    Rahul T Profile Picture
    29 on at
    Default caption and description not displaying for SysOperationService in D365 F&O
    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
     
  • Suggested answer
    Sagar121 Profile Picture
    283 on at
    Default caption and description not displaying for SysOperationService in D365 F&O
    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.
  • Sohaib Cheema Profile Picture
    47,655 User Group Leader on at
    Default caption and description not displaying for SysOperationService in D365 F&O
    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)
     
     
  • Martin Dráb Profile Picture
    235,826 Most Valuable Professional on at
    Default caption and description not displaying for SysOperationService in D365 F&O
    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. 

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 708 User Group Leader

#2
Martin Dráb Profile Picture

Martin Dráb 589 Most Valuable Professional

#3
Yng Lih Profile Picture

Yng Lih 553

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans