Thanks for the fast reply, it helped in Visual Studio. However, in CRM it does not have any effect. Could it be because of the structure of the layout?
The one from above:
System.String layoutXml =
@"<grid name='resultset' object='3' jump='name' select='1'
preview='1' icon='1'>
<row name='result' id='opportunityid'>
<cell name='name' width='150' />
<cell name='customerid' width='150' />
<cell name='estimatedclosedate' width='150' />
<cell name='estimatedvalue' width='150' />
<cell name='closeprobability' width='150' />
<cell name='opportunityratingcode' width='150' />
<cell name='opportunitycustomeridcontactcontactid.emailaddress1'
width='150' disableSorting='1' />
</row>
</grid>";
The view I want to update looks like this:
(I changed the XML to the code below and removed some lines for the test)
System.String layoutXml =
@"<grid name='resultset' object='10003' jump='comf_name' select='1' icon='1' preview='1'>
<row name='result' id='comf_mainframeid'>
<cell name='name' width='300'/>
<cell name='primaryaccountid' width='100'/>
<cell name='parent_account' width='100'/>
<cell name='mainframetypeid' width='100'/>
<cell name='usage' width='125'/>
<cell name='systemnumber' width='100'/>
<cell name='node_name' width='100'/>
<cell name='cpus' width='100'/>
<cell name='cores_per_cpu' width='100'/>
<cell name='decommisiondate' width='100'/>
</row>
</grid>
Another mistake could be the registering ?
Message: RetrieveMultiple
primary Entity: account
Stage: Pre-Operation
Mode: Synchronous
Thanks in advance !