Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Services and service g...
Finance forum
Unanswered

Services and service group

(1) ShareShare
ReportReport
Posted on by
Hi,

If we have a service group called: CustomerServiceGroup or CustomerServices (i can see that some name it as group and some name it as plural)

what is better?

1. To have 1 service called customerService, that has 1 class with 3 methods createCustomer, readCustomer, updateCustomer
OR
2. To have 3 services, one called CeateCustomerService, the other is ReadCustomerService and last one is UpdateCustomerService
where the first service class has 1 method called createCustomer, the 2nd service class has 1 method called readCustomer and the last service class has a method called updateCustomer
  • André Arnaud de Calavon Profile Picture
    294,165 Super User 2025 Season 1 on at
    Services and service group
    Hi,
     
    I think it will be more of a kind of preference. I do agree with you that in case you need some additional private methods, it will be better for readability to have a class per service.
    On the flip side, have a look at the TSTimesheetService. This is one service with a lot of methods as a lot is related. So, a personal preference and use case will influence what will be "better".
  • André Arnaud de Calavon Profile Picture
    294,165 Super User 2025 Season 1 on at
    Services and service group
    Hi,
     
    For Dynamics 365, it doesn't matter. Next to the class, you would need to create 3 services or 1. If you have 3 distinct services, you can create a service group.  
    Is there any preference from the other application that would need to use these services?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,165 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans