2026-03-27 11:34:09 +01:00
|
|
|
# GEMINI_API_KEY: Required for Gemini AI API calls.
|
|
|
|
|
# AI Studio automatically injects this at runtime from user secrets.
|
|
|
|
|
# Users configure this via the Secrets panel in the AI Studio UI.
|
|
|
|
|
GEMINI_API_KEY="MY_GEMINI_API_KEY"
|
|
|
|
|
|
2026-05-20 13:33:37 +02:00
|
|
|
# Business Central OAuth client credentials
|
|
|
|
|
BC_TENANT_ID="MY_BC_TENANT_ID"
|
|
|
|
|
BC_CLIENT_ID="MY_BC_CLIENT_ID"
|
|
|
|
|
BC_CLIENT_SECRET="MY_BC_CLIENT_SECRET"
|
|
|
|
|
BC_COMPANY_ID="MY_BC_COMPANY_ID"
|
|
|
|
|
BC_WRITE_METHOD="PATCH"
|
|
|
|
|
BC_WRITE_URL_TEMPLATE="{{itemsUrl}}('{{itemNo}}')"
|
|
|
|
|
BC_WRITE_BODY_TEMPLATE='{"cpnpNo":"{{cpnpNo}}"}'
|
|
|
|
|
BC_ITEMS_WRITE_METHOD="PATCH"
|
|
|
|
|
BC_ITEMS_WRITE_URL_TEMPLATE="{{itemsUrl}}('{{itemNo}}')"
|
|
|
|
|
BC_ITEMS_WRITE_BODY_TEMPLATE=''
|
|
|
|
|
BC_UOM_WRITE_METHOD="PATCH"
|
2026-05-26 10:25:37 +02:00
|
|
|
BC_UOM_CODE="OUTER"
|
|
|
|
|
BC_UOM_WRITE_URL_TEMPLATE="{{itemUnitsOfMeasureUrl}}(itemNo='{{itemNo}}',code='{{itemUnitsCode}}')"
|
2026-05-20 13:33:37 +02:00
|
|
|
BC_UOM_WRITE_BODY_TEMPLATE=''
|
|
|
|
|
|
2026-07-14 15:59:11 +02:00
|
|
|
# Optional: endpoint for creating missing CategorizationCode values before item PATCH.
|
|
|
|
|
# Business Central must expose the related Categorization table as an insertable API/OData entity.
|
|
|
|
|
BC_CATEGORIZATION_WRITE_METHOD="POST"
|
|
|
|
|
BC_CATEGORIZATION_WRITE_URL_TEMPLATE=""
|
|
|
|
|
BC_CATEGORIZATION_WRITE_BODY_TEMPLATE='{"code":"{{categorizationCode}}","description":"{{categorizationCode}}"}'
|
|
|
|
|
|
2026-03-27 11:34:09 +01:00
|
|
|
# APP_URL: The URL where this applet is hosted.
|
|
|
|
|
# AI Studio automatically injects this at runtime with the Cloud Run service URL.
|
|
|
|
|
# Used for self-referential links, OAuth callbacks, and API endpoints.
|
|
|
|
|
APP_URL="MY_APP_URL"
|