Writing to XLSM excel files using Graph API

Ming 40 Reputation points
2023-06-12T07:44:36.4133333+00:00

Hi team,

I am writing to enquire about whether it is possible to write to an xlsm excel files using Graph API.

We currently have an integration with Microsoft Excel where we export some data to an excel file in one drive/SharePoint. Writing to normal xlsx files works, but when we try to retrieve a macro enabled excel file (xlsm), it is not detected.

Hence, I would really appreciate it if you could confirm if this is possible, and if possible also direct me to the resource on how this can be achieved.

Cheers

Microsoft 365 and Office Excel For business Windows
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. TH-4749-MSFT 3,315 Reputation points
    2023-06-14T16:21:48.79+00:00

    Hello Thanks for reaching out. What error are your getting when retrieving an XLSM file via Graph. What URI are your using to retrieve the file? In my testing I was able to get and write contents to an XSLM file stored in OneDrive.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. TH-4749-MSFT 3,315 Reputation points
    2023-06-15T14:45:11.38+00:00

    Hello Ming,

    Good Day. Hope all is well.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.