簡體   English   中英

消息:移動缺少 DestinationId 參數

[英]message: move The DestinationId parameter is missing

我想移動郵件(復制或移動),我使用 Microsoft\Graph\Graph、guzzlehttp/guzzle 和 php

我缺少DestinationId參數

這是我正在使用的查詢

$graph->createCollectionRequest("POST","/users/xxx@xxxx.com/mailFolders/$inbox_id/childFolders/$folder_id/messages/$message_id/move/")->execute();

而且我不知道將DestinationId放在哪里。

這是我得到的錯誤代碼

{
  "code":"ErrorInvalidParameter",
  "message":"The value of the parameter 'DestinationId' is empty."
}

我發現 $mailBody = array( "DestinationId" => "$message_id");

$graph->createCollectionRequest("POST","/users/xxx@xxxx.com/mailFolders/$inbox_id/childFolders/$folder_id/messages/$message_id/move/")->execute() ->attachBody($mailBody ) ->執行();

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM