Microsoft Graph Excel API - request not working with multiple ranges -


can access specific cell values multiple ranges using single microsoft graph request?

for example: https://graph.microsoft.com/v1.0/me/drive/items/{file-id}/workbook/worksheets('{id}')/range(address='e10:e11,c58:c59')

if request 1 range getting expected result. if use query above 2 specific ranges not working:

"error": {      "code": "invalidargument",      "message": "the argument invalid or missing or has incorrect format.",      "innererror": {           "request-id": "1d3d0a3c-cf6f-4f0c-8e84-c65ff80cd020",            "date": "2017-07-25t14:13:11"       }  } 

i suspect you're attempting use graph in same way vba can used refer multiple ranges (i.e. worksheets("sheet1").range("c5:d9,g9:h16,b14:d18")). isn't model isn't supported graph.

instead you'll need pull each range using separate get request:

get workbook/worksheets/sheet1/range(address='e10:e11') workbook/worksheets/sheet1/range(address='c58:c59') 

Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -