extensionRuntimeCode object
Specifies the location of code for the runtime. Based on runtime.type
, add-ins can use either a JavaScript file or an HTML page with an embedded script
tag that specifies the URL of a JavaScript file. Both URLs are necessary in situations where the runtime.type
is uncertain.
Properties that reference this object type:
Properties that reference this object type:
Syntax
Properties
page
Specifies the URL of the web page that contains an embedded script
tag, which specifies the URL of a JavaScript file (to be loaded in a browser-based runtime).
Type
string
Required
✅
Constraints
Maximum string length: 2048.
Supported values
The string must start with https://
.
script
Specifies the URL of the JavaScript file to be loaded in JavaScript-only runtime.
Type
string
Required
—
Constraints
Maximum string length: 2048.
Supported values
The string must start with https://
.
Examples
{
"extensions": [
{
"runtimes": [
"code": {
"page": "https://contoso.com/events.html",
"script": "https://contoso.com/events.js"
}
]
}
]
}