// Import the following namespace
using PowerPortalsPro.Web.Common.Services;

[Inject]
private IPowerPortalsProService _powerPortalsProService { get; set; } = null!;

protected override async Task OnInitializedAsync()
{
    var accountRecord = await _powerPortalsProService.RetrieveRecordAsync("account", new Guid("C1B164A8-7A8C-4F7E-9209-2CEE71E58A99"));

    // Do stuff with the account record

}

IPowerPortalsProService Class

Methods

Name
Parameters
Type
Description
AssociateAsyncTableRecordReference record
string relationshipName
IEnumerable<TableRecordReference> relatedRecords
Task<AssociateResponse>
Associate one record with one or more other records.
CreateRecordAsyncTableRecord record
Task<CreateResponse>
Create a record in Dataverse.
DeleteRecordAsyncstring tableLogicalName
Guid id
Task<DeleteResponse>
Delete a record from Dataverse.
DisassociateAsyncTableRecordReference record
string relationshipName
IEnumerable<TableRecordReference> relatedRecords
Task<DisassociateResponse>
Remove an association from one record with one or more other records.
ExecuteAsyncRequestBase request
Task<ResponseBase>
Execute a request.
ExecuteMultipleAsyncIEnumerable<RequestBase> requests
bool returnResponses
Task<List<ResponseBase>>
Execute multiple requests in a single database transaction.
GetFileInfoAsyncstring tableName
Guid recordId
string columnName
bool includeData
Task<FileInfo>
Retrieve a file and optionally its data from Dataverse.
RetrieveRecordAsyncstring tableLogicalName
Guid id
Task<TableRecord>
Retrieve a record from Dataverse.
RetrieveRecordsAsyncstring fetchXml
Task<RetrieveRecordsResponse>
Retrieve multiple records from Dataverse by specifying the FetchXml query.
RetrieveTableMetadataAsyncstring tableLogicalName
Task<TableMetadata>
Retrieve table metadata from Dataverse.
RetrieveViewMetadataAsyncGuid viewId
Task<ViewMetadata>
Retrieve view metadata from Dataverse.
UpdateRecordAsyncTableRecord record
Task<UpdateResponse>
Update a record in Dataverse.