@ ʚïɞAyaAlaamʚïɞ Для этого создайте отношение 1: N или атрибут Lookup.

жно ли сделать поле приведения из идентификатора в строку в fetchxml? У меня есть этот запрос:

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

и этот рядt1.stringId=CAST( t2.id as varchar(40)) не могу сделать в fetchxml, в то время как поле "stringId" является строкой, но его значением является GUID, и я хочу иметь это равенство.

В 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>

Ответы на вопрос(2)

Ваш ответ на вопрос