Last active
July 31, 2020 16:26
-
-
Save venkyvb/8167b5aff96f9e6a0624bc143f5c46ca to your computer and use it in GitHub Desktop.
Revisions
-
venkyvb revised this gist
Jul 31, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ https://graph.microsoft.com/v1.0/me/drive/items/{itemId}/workbook/createSession "workbook-session-id": "<non-persistent-session-id>" ``` 3. Send Input values - note in this case we are just updated a single input cell, this can be a range e.g. C3:C7 well, in which case the values would be `[["valC3", "valC4", "valC5", "valC6", "valC7"]]`. Also number format can be specified using the attribute e.g. `"numberFormat"` for each cell. ``` PATCH -
venkyvb revised this gist
Jul 31, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ https://graph.microsoft.com/v1.0/me/drive/items/{itemId}/workbook/createSession "workbook-session-id": "<non-persistent-session-id>" ``` 3. Send Input values - note in this case we are just updated a single input cell, this can be a range e.g. C3:C7 well, in which case the values would be `[["valC3", "valC4", "valC5", "valC6", "valC7"]]`. Also number format can be specified using the attribute e.g. `"numberFormat" : [[null,null], ["m-ddd", null]]` ``` PATCH -
venkyvb revised this gist
Jul 31, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ https://graph.microsoft.com/v1.0/me/drive/items/{itemId}/workbook/createSession "workbook-session-id": "<non-persistent-session-id>" ``` 3. Send Input values - note in this case we are just updated a single input cell, this can be a range e.g. C3:C7 well, in which case the values would be `[["valC3", "valC4", "valC5", "valC6", "valC7"]]` ``` PATCH -
venkyvb created this gist
Jul 31, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,37 @@ Steps done using Graph Explorer - https://developer.microsoft.com/en-us/graph/graph-explorer 1. Create a new **non-persistent session** for the workbook ``` POST https://graph.microsoft.com/v1.0/me/drive/items/{itemId}/workbook/createSession { "persistChanges": false } ``` 2. Use the session as HTTP header (in all the subsequent calls) ``` "workbook-session-id": "<non-persistent-session-id>" ``` 3. Send Input values ``` PATCH https://graph.microsoft.com/v1.0/me/drive/items/{itemId}/workbook/worksheets('InputOutput')/range(address='C3') { "values" : [["230"]] } ``` 4. Read the output values ``` GET https://graph.microsoft.com/v1.0/me/drive/items/{itemId}/workbook/worksheets('InputOutput')/range(address='C9:C11') ```