Skip to content

Commit e04fb20

Browse files
authored
Add note about local file compatibility (#615)
1 parent b1abaef commit e04fb20

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docs/develop/external-calls.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: External API call support in Office Scripts
33
description: Support and guidance for making external API calls in an Office Script.
4-
ms.date: 04/20/2023
4+
ms.date: 04/27/2023
55
ms.localizationpriority: medium
66
---
77

@@ -71,7 +71,9 @@ interface JSONData {
7171
### Other `fetch` samples
7272

7373
* The [Use external fetch calls in Office Scripts](../resources/samples/external-fetch-calls.md) sample shows how to get basic information about a user's GitHub repositories.
74-
* The [Office Scripts sample scenario: Graph water-level data from NOAA](../resources/scenarios/noaa-data-fetch.md) demonstrates the fetch command being used to retrieve records from the National Oceanic and Atmospheric Administration's Tides and Currents database.
74+
* Samples in the [Use JSON to pass data to and from Office Scripts](use-json.md) article show how to pass data to and from `fetch` commands as JSON.
75+
* The [Office Scripts sample scenario: Graph water-level data from NOAA](../resources/scenarios/noaa-data-fetch.md) demonstrates the `fetch` command being used to retrieve records from the National Oceanic and Atmospheric Administration's Tides and Currents database.
76+
* The second sample in [Add images to a workbook](../resources/samples/add-image-to-workbook.md) contains a `fetch` call to get an image from a website.
7577

7678
## Restrict external calls with Information Rights Management (IRM)
7779

docs/resources/samples/add-image-to-workbook.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Add images to a workbook
33
description: Learn how to use Office Scripts to add an image to a workbook and copy it across sheets.
4-
ms.date: 04/20/2023
4+
ms.date: 04/27/2023
55
ms.localizationpriority: medium
66
---
77

@@ -15,7 +15,7 @@ Images help with branding, visual identity, and templates. They help make a work
1515

1616
The first sample copies an image from one worksheet to another. This could be used to put your company's logo in the same position on every sheet.
1717

18-
The second sample copies an image from a URL. This could be used to copy photos that a colleague stored in a shared folder to a related workbook.
18+
The second sample copies an image from a URL. This could be used to copy photos that a colleague stored in a shared folder to a related workbook. Please note that this sample can't be adapted to work with a local image file, as that isn't supported by Office Scripts.
1919

2020
## Sample Excel file
2121

@@ -49,7 +49,7 @@ function main(workbook: ExcelScript.Workbook)
4949

5050
## Sample code: Add an image from a URL to a workbook
5151

52-
> [IMPORTANT]
52+
> [!IMPORTANT]
5353
> This sample won't work in Power Automate because of the [`fetch` call](../../develop/external-calls.md#external-calls-from-power-automate).
5454
5555
```TypeScript

0 commit comments

Comments
 (0)