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

Notifications

Announcements

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 36
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
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,482 Super User 2025 Season 2 on at
    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?
  • André Arnaud de Calavon Profile Picture
    301,482 Super User 2025 Season 2 on at
    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".

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

News and Announcements

Season of Giving Solutions is Here!

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 > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans