Skip to content

Commit 9f5d2c9

Browse files
committed
Adding more details on id generation
1 parent 849cdc7 commit 9f5d2c9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

articles/azure-functions/migrate-cosmos-db-version-3-version-4.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: This article shows you how to upgrade your existing function apps u
44
ms.service: azure-functions
55
ms.custom: devx-track-extended-java, devx-track-js, devx-track-python
66
ms.topic: how-to
7-
ms.date: 03/04/2024
7+
ms.date: 05/07/2024
88
zone_pivot_groups: programming-languages-set-functions-lang-workers
99
---
1010

@@ -19,7 +19,7 @@ This article walks you through the process of migrating your function app to run
1919

2020
## Changes to item ID generation
2121

22-
Item ID is no longer auto populated in the Extension. Therefore, the Item ID must specifically include a generated ID for cases where you were using the Output Binding to create items.
22+
Item ID is no longer auto populated in the Extension. Therefore, the Item ID must specifically include a generated ID for cases where you were using the Output Binding to create items. To maintain the same behavior as the previous version, you can assign a random GUID as ID property.
2323

2424
::: zone pivot="programming-language-csharp"
2525

@@ -212,12 +212,14 @@ namespace CosmosDBSamples
212212
> [!NOTE]
213213
> If your scenario relied on the dynamic nature of the `Document` type to identify different schemas and types of events, you can use a base abstract type with the common properties across your types or dynamic types like `JObject` that allow to access properties like `Document` did.
214214
215+
Additionally, if you are using the Output Binding, please review the [change in item ID generation](#changes-to-item-id-generation) to verify if you need additional code changes.
216+
215217
::: zone-end
216218
::: zone pivot="programming-language-javascript,programming-language-python,programming-language-java,programming-language-powershell"
217219

218220
## Modify your function code
219221

220-
After you update your `host.json` to use the correct extension bundle version and modify your `function.json` to use the correct attribute names, there are no further code changes required.
222+
After you update your `host.json` to use the correct extension bundle version and modify your `function.json` to use the correct attribute names, there are no further code changes required for cases where you are using Input Bindings or Trigger. If you are using the Output Binding, please review the [change in item ID generation](#changes-to-item-id-generation) to verify if you need additional code changes.
221223

222224
::: zone-end
223225

0 commit comments

Comments
 (0)