I am using the free version of MS CRM partner portal. I am trying to populate a form using CrmEntityFormView , but cannot. Here is the code:
<crm:CrmDataSource ID="crmDSEntitiesView" runat="server" >
<FetchXml>
<fetch>
<entity new_id="2" />
</fetch>
</FetchXml>
</crm:CrmDataSource>
<crm:CrmEntityFormView ID="cefv1" DataSourceID="crmDSEntitiesView" Mode="Edit" EntityName="new_entity"
runat="server" SavedQueryName="testView" FormName="Web Form" >
</crm:CrmEntityFormView>
I also tried setting fetchxml on the server side:
crmDSEntitiesView.FetchXml = string.Format("<fetch mapping='logical'><entity name='{0}'><all-attributes />" +
"<filter type='and'><condition attribute = '{1}'
operator='eq' value='{{{2}}}'/></filter></entity>" +
"</fetch>", "new_entity", "new_id",
strId);
But the form is not getting populated. What am I missing?