活动更新时不会向与会者发送电子邮件通知

时间:2019-08-07 20:26:11

标签: office365 exchange-server exchangewebservices impersonation

我正在使用EWS API在office365中创建和更新日历事件,并在模拟帐户下进行交换。我希望参加者能收到有关更新的电子邮件通知,但似乎仅在使用发起者帐户时发送通知。是否缺少我强制执行通知的xml标记?

我在不使用托管API的python中工作,使用soap XML来做到这一点。

2 个答案:

答案 0 :(得分:0)

CreateItems元素的SendMeetingInvitations属性将控制将发送的通知类型,例如

$query_phrase = "select 
     commerce_product_field_data.title as title,
     commerce_product_field_data.product_id as product_id,
     commerce_product__8fd244ef14.field_has_multiple_configuration_value as has_multiple_configuration,
     commerce_product__field_barcode.field_barcode_value as barcode,
     commerce_product__field_price.field_price_number as price,
     commerce_product__field_price.field_price_currency_code as currency_code,
     commerce_product__field_sku.field_sku_value as sku,
     node_field_data.title as material_name,
     file_managed.uri as uri,
     file_managed.filename as filename

     from {commerce_product_field_data}

     left join commerce_product__8fd244ef14 on product_id = commerce_product__8fd244ef14.entity_id
     left join commerce_product__field_barcode on product_id = commerce_product__field_barcode.entity_id
     left join commerce_product__field_price on product_id = commerce_product__field_price.entity_id
     left join commerce_product__field_sku on product_id = commerce_product__field_sku.entity_id
     left join commerce_product__field_materials  on product_id = commerce_product__field_materials.entity_id
     left join node_field_data on commerce_product__field_materials.field_materials_target_id = node_field_data.nid
     left join file_managed on product_id = file_managed.fid";

   $query_phrase .=  " where commerce_product__field_barcode.field_barcode_value = :barcode";

   $query_phrase .= " union ";

$query_phrase .= "select 
     commerce_product_field_data.title as title,
     commerce_product_field_data.product_id as product_id,
     commerce_product__8fd244ef14.field_has_multiple_configuration_value as has_multiple_configuration,
     commerce_product__field_barcode.field_barcode_value as barcode,
     commerce_product__field_price.field_price_number as price,
     commerce_product__field_price.field_price_currency_code as currency_code,
     commerce_product__field_sku.field_sku_value as sku,
     node_field_data.title as material_name,
     file_managed.uri as uri,
     file_managed.filename as filename

     from {commerce_product_field_data}

     right join commerce_product__8fd244ef14 on product_id = commerce_product__8fd244ef14.entity_id
     right join commerce_product__field_barcode on product_id = commerce_product__field_barcode.entity_id
     right join commerce_product__field_price on product_id = commerce_product__field_price.entity_id
     right join commerce_product__field_sku on product_id = commerce_product__field_sku.entity_id
     right join commerce_product__field_materials  on product_id = commerce_product__field_materials.entity_id
     right join node_field_data on commerce_product__field_materials.field_materials_target_id = node_field_data.nid
     right join file_managed on product_id = file_managed.fid";

   $query_phrase .=  " where commerce_product__field_barcode.field_barcode_value = :barcode";

答案 1 :(得分:0)