[英]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.