I am making a major change to some integration code which sits outside of crm and inserts data into a custom entity.
A new custom entity will be created and the data will go into that instead.
I have a large number of CRM instances which are fed by this code so I want a simple test to see if the new entity exists within the target CRM so that I can run both architectures until the new solution is fully rolled out.
I wondered is there was an elegant way to connect to CRM and ask it if it contains the new entity rather than simply try the add the record and when it fails, fall back to the old code?
For clarity all CRMs start on solution version 1.0 and will be upgraded to solution version 2.0 over time. I want my external service to service both so it seems that the easy thing to do is detect the presence of the new entity and branch accordingly.