Currently, we have the following situation:
Account
entity contains online_status
field, which can have either offline
or online
value. And we have an entity view, which shows only online accounts.
case1:
- I open the view. It's empty for now;
- I open an account form in another window and manually change online status from
offline
toonline
; - After clicking
save
, grid in view auto updates and starts showing this account
case2:
I change online status using SDK:
using (var proxy = CreateCrmProxy(broker))
{
proxy.EnableProxyTypes();
var crmAccount = proxy.Retrieve(Account.EntityLogicalName, aggregateId, new ColumnSet()) as Account;
crmAccount.OnlineStatus = //new online status;
proxy.Update(crmAccount);
}
CreateCrmProxy
method creates an instance of OrganizationServiceProxy
class.
In this case, online_status
field updates successfully, but grid in view stays in an old state and I need to press "refresh" button in order to see valid information.
Is it possible to fire view auto update, using the technique from case2?
Thanks in advance!