Is that possible to make cast field from identifier to string in fetchxml? I have this query:
select *
from table1 t1 left outer join table2 t2
on t1.stringId=CAST( t2.id as varchar(40))
where t2.id is null and t1.childid is not null
and this row t1.stringId=CAST( t2.id as varchar(40))
can't make in fetchxml while field "stringId" is string but it's value is GUID
and I want to have that equality.
In fetchxml:
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" >
<entity name="table1 " >
<attribute name="stringid" />
<attribute name="te_name" />
<link-entity name="table1" from="id" to="stringid" link-type="outer" alias="s" />
<filter type="and" >
<condition entityname="s" attribute="stringid" operator="null" />
</filter>
</entity>
</fetch>