Microsoft Graph团队删除rejectedSender调用返回错误

时间:2017-06-05 19:23:50

标签: microsoft-graph

我正在尝试使用this API从被拒绝的发件人列表中删除用户。根据本文档中的示例,我尝试将API称为DELETE https://graph.microsoft.com/beta/groups/GROUP_ID/rejectedSenders/$ref?$id="users/USER_ID",但我尝试过的以及它的所有变体都会返回以下内容:

{
  "error": {
    "code": "InternalServerError",
    "message": "This operation is not supported for a relative URI.",
    "innerError": {
    "request-id": "e90009a6-b6d0-405c-abe2-aef396ca43de",
    "date": "2017-06-05T19:14:16"
    }
  }
}

1 个答案:

答案 0 :(得分:0)

尝试没有双引号的完全限定路径。例如:

var myDataTable = new DataTable();

foreach (var index1 in sortedColumns)
{
    var columnName = myDataGrid.Columns[index1.Item2].ColumnName;
    myDataTable.Columns.Add(columnName, myDataGrid.Columns[index1.Item2].DataType);
}

foreach (DataRow dr in myDataGrid.Rows)
{
    var itemArray = new object[allCols];
    var indexer = 0;

    foreach (var index2 in sortedColumns)
    {
        itemArray[indexer] = dr[index2.Item2];
        indexer += 1;
    }

    myDataTable.Rows.Add(itemArray);
}