We all know that crm has such a useful feature as filtered views. They are good doubtlessly, but their main drawback that they do not provide definitions for StateCode, StatusCode, etc. for OptionSets as they provide e.g. for LookUp fields.
I want to use a filtered view to share data with side app.
What is the best way to map StatusCode value with its text definition, which is saved in StringMap table?
Can I edit system view (for e.g. Account entity) to write additional JOIN statement to StringMap table, or maybe sql server provides something kind of encapsulating views, so I can create my own view that will use system filtered view for account and also will use my custom JOINs?
UPDATE: I found the problem. I did SELECT
from Opportunity
view, when actually I needed FilteredOpportunity
.
But still interesting, can I modify system views in CRM DB? Or can I encapsulate them (e.g. use them in another view)?