如何在Dynamics CRM 4.0中传递Javascript中的空值?

如何在Dynamics CRM 4.0中传递Javascript中的空值?,javascript,crm,dynamics-crm-4,Javascript,Crm,Dynamics Crm 4,我需要使用Javascript获取父主题。我如何获得所有一级家长科目?逻辑应该类似于parentsubject为“null”时的逻辑。为此,我编写了以下查询 var message = [ "<?xml version='1.0' encoding='utf-8'?>", "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"

我需要使用Javascript获取父主题。我如何获得所有一级家长科目?逻辑应该类似于parentsubject为“null”时的逻辑。为此,我编写了以下查询

var message = [ "<?xml version='1.0' encoding='utf-8'?>", "<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema">", GenerateAuthenticationHeader(), "<soap:Body>", "<RetrieveMultiple xmlns=\"http://schemas.microsoft.com/crm/2007/WebServices\">", "<query xmlns:q1='http://schemas.microsoft.com/crm/2006/Query' >xsi:type='q1:QueryExpression' >", "<q1:EntityName>subject</q1:EntityName>", "<q1:ColumnSet xsi:type=\"q1:ColumnSet\" >", "<q1:Attributes>", "<q1:Attribute>subjectid</q1:Attribute>", "</q1:Attributes>", "</q1:ColumnSet>", "<q1:Criteria>", "<q1:FilterOperator >And</q1:FilterOperator>", "<q1:Conditions>", "<q1:Condition>", "<q1:AttributeName >parentsubject</q1:AttributeName>", "<q1:FilterOperator>Equal</q1:FilterOperator>", "<q1:Values>", "<q1:Value xsi:type='xsd:string'>" _____________ "</q1:Value>", "</q1:Values>", "</q1:Condition>", "</q1:Conditions>", "</q1:Criteria>", "</query>", "</RetrieveMultiple>", "</soap:Body>", "</soap:Envelope>" ].join(""); var消息= [ "", "", GenerateAuthenticationHeader(), "", "", “xsi:type='q1:QueryExpression'>”, “主题”, "", "", “主观性”, "", "", "", “和”, "", "", “家长主题”, “平等”, "", "" _____________ "", "", "", "", "", "", "", "", "" ].加入(“”); 请让我知道我应该通过什么

提前谢谢
JK

FilterOperator应为运算符,Equal应为Null,并删除节点中的值。因此:

"<q1:Condition>",
"<q1:AttributeName >parentsubject</q1:AttributeName>",
"<q1:FilterOperator>Equal</q1:FilterOperator>",
"<q1:Values>",
"<q1:Value xsi:type='xsd:string'>" _____________ "</q1:Value>",
"</q1:Values>",
"</q1:Condition>",
“”,
“家长主题”,
“平等”,
"",
"" _____________ "",
"",
"",
应该是

"<q1:Condition>",
"<q1:AttributeName >parentsubject</q1:AttributeName>",
"<q1:Operator>Null</q1:Operator>",
"</q1:Condition>",
“”,
“家长主题”,
“空”,
"",

您能告诉我检索所有记录后如何在javascript中创建for循环吗?