Hi all!
This may come off as a dumb question but I am wondering what would be the best entity to use to differentiate different projects for my company?
At any given time an Account with my company will have multiple projects ongoing. Each of those projects then has multiple tasks/actions that need to be performed in order to complete that project. Some of those tasks are related to standard entities like sending emails, while others actions are more specific to my company.
I have an idea of how to model this in CDS, but am unsure if my solution is the best solution.
From reading up on CDS I'm thinking that using the "Activities" entity would be the best fit for my problem. For every new project I would just create a new custom entity of type "Activity." I would then create other custom entities that would be similar to the Task standard entity, and would give them a child relationship to the custom activity entity I created to represent a new project.
But this still leaves me with a few questions.
If I were to use a custom entity of type activity, could I add a field that would allow this custom entity to have a parent or child entity of the type activity? Of the type standard? If I had custom entities that were created to represent specific tasks, could I relate those custom entities to multiple activities, basically having a many-to-many relationship between custom entities of type tasks and custom activity entities? For eg; I own a dog care company. Each client would be an account, and each time they visit me would be a new custom entity of type activity. The tasks performed could be different each visit (ie. giving the dog a bath, taking the dog on a walk, giving the dog a treat, etc.) but the tasks performed would come from a list of services that I provide. That way a different client (account) could visit me (new activity) and have the same task performed as a separate client at a separate visit.
How I'm trying to think of "Account" is like it is a file folder for everything in a given project, and then the different tasks related to that project would be like subfolders. At the same time though I want those tasks to be able to be in multiple folders, as some tasks are repeated across projects.
Thank you!