Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MS Graph Update/Set Excel value in a cell

I haven't found any example to update/insert a value in one cell of an specific worksheet with Microsoft Graph API.

Is this in general possible?

Kind regards, Martin

like image 321
MS4Stack Avatar asked Oct 16 '25 12:10

MS4Stack


1 Answers

It is possible, using single cell reference. Send PATCH request to (for example) one drive workbook:

 https://graph.microsoft.com/v1.0/me/drive/items/{id}/workbook/worksheets('one_of_your_worksheet_name')/cell(row=0,column=0)

Request body example:

{
 "values": [ ["I am cell A:1"] ],
 "valueTypes": [ ["String"]]
}
like image 134
Steve Avatar answered Oct 18 '25 08:10

Steve



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!