Hi,
Was working on Filtering Add Exiting Lookup and got the below error.
Here we need to make sure that we are referencing correct columns in the fetchxml and layoutxml while creating the view using JavaScript.
fetchXml: “<fetch
version=‘1.0‘
output-format=‘xml-platform‘
mapping=‘logical‘
distinct=‘false‘>” +
“<entity name=‘new_mycustomentity‘>” +
“<attribute name=‘new_customentityid‘ />” +
“<attribute name=‘new_name‘/>” +
“<order attribute=‘new_name‘ descending=‘false‘ />” +
“<filter type=‘and‘>” +
“<condition attribute=‘new_name‘ operator=‘like‘ value=‘%1%‘ />” +
“</filter>” +
“</entity>” +
“</fetch>“,
layoutXml: “<grid name=‘resultset‘ object=‘10001‘ jump=‘new_name‘
select=‘1‘ icon=‘1‘ preview=‘1‘>” +
“<row name=‘result‘ id=‘new_customentityid’>” + “<cell name=‘new_name‘ width=‘300‘ />” +
“</row>” +
“</grid>“,
Hope it helps.