0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

XrmServiceToolkit.Soap.Fetch

Last updated at Posted at 2022-11-11
// 関連付けエンティティデータ存在チェック
var emailFlg = false;
var getInfo =
    "<fetch>" +
    "<entity name='new_entity1'>" +
    "<filter>" +
    "<condition attribute='new_field1' operator='eq' value='" + offer.new_hospitalname.Id + "' />" +
    "<condition attribute='new_field2' operator='eq' value='1' />" +
    "<condition attribute='new_field3' operator='eq' value='1' />" +
    "<condition attribute='statecode' operator='eq' value='0' />" +
    "<condition attribute='new_entity2●' operator='not-null' />" +   //lookup
    "<condition attribute='new_field5' operator='not-null' />" +
    "</filter>" +
    "<link-entity name='new_entity2' from='new_entity2id' to='new_entity2●'>" +
    "<attribute name='new_field11' />" +
    "<filter>" +
    "<condition attribute='new_field22' operator='eq' value='0' />" +
    "<condition attribute='statecode' operator='eq' value='0' />" +
    "<condition attribute='new_field33id' operator='not-null' />" +
    "</filter>" +
    "</link-entity>" +
    "</entity>" +
    "</fetch>";

var resultList = XrmServiceToolkit.Soap.Fetch(getInfo);
if (resultList.length > 0) {
    // メール送信ダイアログの表示
    if (window.confirm("宛先に送信しますか?")) emailFlg = true;
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?