Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions src/common/intellisense/ServerApiCompletionProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,20 +175,22 @@ export class ServerApiDefinitions {
parameters: [
{ name: "entitySetName", type: "string", description: "The entity set name" },
{ name: "id", type: "string", description: "The ID of the record to retrieve" },
{ name: "options", type: "string", description: "Query options (e.g., $select, $expand)" }
{ name: "options", type: "string", description: "Query options (e.g., $select, $expand)", optional: true },
{ name: "skipCache", type: "bool", description: "Whether to skip the cache and fetch fresh data", optional: true }
],
returnType: "DataverseRecord",
example: "Server.Connector.Dataverse.RetrieveRecord('contacts', contactId, '$select=firstname,lastname');"
example: "Server.Connector.Dataverse.RetrieveRecord('contacts', contactId, '$select=firstname,lastname', false);"
},
{
name: "RetrieveMultipleRecords",
description: "Retrieves multiple records from Dataverse",
parameters: [
{ name: "entitySetName", type: "string", description: "The entity set name" },
{ name: "options", type: "string", description: "Query options (e.g., $filter, $select, $orderby)" }
{ name: "options", type: "string", description: "Query options (e.g., $filter, $select, $orderby)", optional: true },
{ name: "skipCache", type: "bool", description: "Whether to skip the cache and fetch fresh data", optional: true }
],
returnType: "DataverseRecord[]",
example: "Server.Connector.Dataverse.RetrieveMultipleRecords('contacts', '$filter=lastname eq Smith');"
example: "Server.Connector.Dataverse.RetrieveMultipleRecords('contacts', '$filter=lastname eq Smith', false);"
},
{
name: "UpdateRecord",
Expand Down Expand Up @@ -434,6 +436,22 @@ export class ServerApiDefinitions {
{ name: "Id", description: "ID (GUID) of the referenced record", returnType: "string" },
{ name: "Name", description: "Name of the referenced record", returnType: "string" }
]
},
// New: Server.EnvironmentVariable with get(name)
{
name: "EnvironmentVariable",
description: "Provides access to environment variables",
methods: [
{
name: "get",
description: "Gets an environment variable value by schema name",
parameters: [
{ name: "schemaName", type: "string", description: "The environment variable schema name" }
],
returnType: "string",
example: "Server.EnvironmentVariable.get('new_MyEnvironmentVariable');"
}
]
}
];

Expand Down