Amazing the RX World!
I'm working in a Intranet WebSite which is connected to Dynamics CRM to retrieve some info about the company. At the same time I'm using RX to make reactive some parts of the website.
So the question is: Is possible to Subscribe to Dynamics Entities in order to change the website UI when a field is updated outside the website (Dynamics CRM Online, Outlook add-on for Dynamics...)?
Thanks for your help!!
Not tried that yet...
It might possible to push notifications but you might have to consider this, though:
- Notifications must come from the CRM Server side, obviously :) So it leads to plugins or workflows
Dynamics CRM online only support plugins to run in sandbox mode.
When registering an assembly that contains custom workflow activities with Microsoft Dynamics CRM Online, you must register the assembly in the sandbox (partial trust). Support for sandbox execution of custom workflow activities was added in the Microsoft Dynamics CRM 2011 Update Rollup 12 and Microsoft Dynamics CRM December 2012 Service Update releases.
It will all be executed in sandbox mode
Do also consider some network connectivity limitations in online, because of it:
Maybe some async PostOpUpdate stage plugin/worflow would do the job, sending to azure service bus tenant in between.
My 2 cents
Some more thoughts:
There is this basic question of maybe needing an Observable to persist, and can it happen, when it is instantiated inside some CRM plugin.
Also, being able to wrap RX communications between your server and the intranet (through webclient calls, for instance) is a question
Thanks danisis for your help. I really appreciate it. I'm introducing in Dynamics and in RX at the same time, so probably I've got myself in a mess.
What about using SqlDependency?
I could wait for events, make them Observable and Subscribe as suggested here:
Well... Probably the question now should be asked in Dynamics Forum.
you mean, we are in a mess of a currently shaky integration world, even if we keep being enthusiastic about "new" capabilities, like RX :)
Not a hazard Rx is there, but it might be there and accessible with Dynamics CRM 2018 or disappear and being replaced by sthg else, adapted to our integration scenarios AND supported/Spec detailed by experts, inside an SDK.
I don't have any answer about sqldependency too, but personally, I'd look into Azure Service Bus endpoints and bus messaging still.
It can be crazy good as well. Look at the excellent SQL Service Broker bus system, for instance...
SqlDependency core stuff may be based on it, actually :)