Skip to content

Commit 975c265

Browse files
amitjoshi438Amit Joshi
andauthored
Add InvokeCustomApi method to Server API definitions (#1270)
Co-authored-by: Amit Joshi <amitjoshi@microsoft.com>
1 parent f092633 commit 975c265

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/common/intellisense/ServerApiCompletionProvider.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,17 @@ export class ServerApiDefinitions {
191191
],
192192
returnType: "void",
193193
example: "Server.Connector.Dataverse.DeleteRecord('contacts', contactId);"
194+
},
195+
{
196+
name: "InvokeCustomApi",
197+
description: "Invokes a custom API endpoint",
198+
parameters: [
199+
{ name: "httpMethod", type: "string", description: "The HTTP method to use (e.g., GET, POST)" },
200+
{ name: "url", type: "string", description: "The API endpoint URL" },
201+
{ name: "payload", type: "string", description: "The JSON payload to send with the request" }
202+
],
203+
returnType: "void",
204+
example: "Server.Connector.Dataverse.InvokeCustomApi('POST', '/api/data/v9.0/contacts', payload);"
194205
}
195206
]
196207
},

0 commit comments

Comments
 (0)