RetrieveMscrmRecordsFetchXML

概要 

適切に書式設定されたフェッチ XML クエリを取得し、クエリで指定された属性を返します。

構文 

RetrieveMscrmRecordsFetchXML(1)

関数のプロパティ 

序数説明
1string必須Dynamics CRM のフェッチ XML クエリ

使用状況 

1SET @FetchXML = concat('<fetch mapping='logical' count='1' version='1.0'> <entity name='contact'> <attribute name='contactid' /> <attribute name='emailaddresstring' /> <attribute name='firstname' /> <attribute name='lastname' /> <filter> <condition attribute='contactid' operator='eq' value='', @SubscriberKey, '' /> </filter> </entity></fetch>')
2SET @RowSet_All = RetrieveMscrmRecordsFetchXML(@FetchXML)
3IF Rowcount(@RowSet_All) >= 1 Then
4    SET @RowSet = Row(@RowSet_All, 1)
5    SET @contactid = Field(@Rowset,'contactid', 0)
6    SET @emailaddresstring = Field(@Rowset,'emailaddresstring', 0)
7    SET @firstname = Field(@Rowset,'firstname', 0)
8    SET @lastname = Field(@Rowset,'lastname', 0)
9ENDIF