generate_powerpages_webapi_call
Create PowerPages API calls and JavaScript examples for Dataverse operations including retrieve, create, update, and delete with authentication context and portal-specific patterns.
Instructions
Generate PowerPages-specific API calls, JavaScript examples, and React components for Dataverse operations through PowerPages portals. Includes authentication context and portal-specific patterns.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
baseUrl | No | PowerPages site base URL (e.g., 'https://yoursite.powerappsportals.com') | |
count | No | Include count of records | |
customHeaders | No | Custom headers to include in the request | |
data | No | Data to send in request body for create/update operations | |
entityId | No | Entity ID for single record operations (GUID) | |
expand | No | Related entities to expand | |
filter | No | OData filter expression | |
includeAuthContext | No | Include authentication context information | |
logicalEntityName | Yes | Logical entity name (e.g., 'cr7ae_creditcardse', 'contact') - will be automatically suffixed with 's' for PowerPages API URLs | |
operation | Yes | Type of operation to perform | |
orderby | No | OData orderby expression | |
requestVerificationToken | No | Include __RequestVerificationToken placeholder for POST operations | |
select | No | Fields to select (e.g., ['cr7ae_name', 'cr7ae_type']) | |
skip | No | Number of records to skip | |
top | No | Number of records to return |
Input Schema (JSON Schema)
{
"properties": {
"baseUrl": {
"description": "PowerPages site base URL (e.g., 'https://yoursite.powerappsportals.com')",
"type": "string"
},
"count": {
"description": "Include count of records",
"type": "boolean"
},
"customHeaders": {
"additionalProperties": {
"type": "string"
},
"description": "Custom headers to include in the request",
"type": "object"
},
"data": {
"additionalProperties": {},
"description": "Data to send in request body for create/update operations",
"type": "object"
},
"entityId": {
"description": "Entity ID for single record operations (GUID)",
"type": "string"
},
"expand": {
"description": "Related entities to expand",
"type": "string"
},
"filter": {
"description": "OData filter expression",
"type": "string"
},
"includeAuthContext": {
"default": false,
"description": "Include authentication context information",
"type": "boolean"
},
"logicalEntityName": {
"description": "Logical entity name (e.g., 'cr7ae_creditcardse', 'contact') - will be automatically suffixed with 's' for PowerPages API URLs",
"type": "string"
},
"operation": {
"description": "Type of operation to perform",
"enum": [
"retrieve",
"retrieveMultiple",
"create",
"update",
"delete"
],
"type": "string"
},
"orderby": {
"description": "OData orderby expression",
"type": "string"
},
"requestVerificationToken": {
"default": false,
"description": "Include __RequestVerificationToken placeholder for POST operations",
"type": "boolean"
},
"select": {
"description": "Fields to select (e.g., ['cr7ae_name', 'cr7ae_type'])",
"items": {
"type": "string"
},
"type": "array"
},
"skip": {
"description": "Number of records to skip",
"type": "number"
},
"top": {
"description": "Number of records to return",
"type": "number"
}
},
"required": [
"operation",
"logicalEntityName"
],
"type": "object"
}