I am building a plugin that is supposed to create a specific type of activity based on some setup data stored in custom entities. The setup data tells me what type of activity to create using the attributetypecode option set values. Is there a way to query
the metadata in CRM to figure out what activity entity correlates with each activity type code? I know the build in activity types have pre-defined codes, but I dont want to hard code them into my plugin. I have scoured the database looking for a table or
something that stores that correlation to no avail. How does the system know what value to put in that column when I create them?