Hi All,
I am trying to run a simple query with the api, but it seems to only work on default fields, which is...
api/data/v9.0/CUSTOMTABLE1/?$apply=groupby((RELATIONFIELDTOTABLE2/FIELD_FROM_TABLE2),aggregate(FIELD_FROM_TABLE_1 with sum as total))
based on this:
opportunities?$apply=groupby((parentaccountid/name),aggregate(estimatedvalue with sum as total))
from here: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/query-data-web-api
The thing is, it only works with original tables. With custom tables it says :
"code": "0x80041103",
"message": "'CUSTOMTABLE1' entity doesn't contain attribute with Name = 'RELATIONFIELDTOTABLE2' and NameMapping = 'Platform'. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False, Timestamp=53221094, MinActiveRowVersion=53221094, MetadataInstanceId=44365775, LastUpdated=2021-04-18 08:52:58.400"
Any work around? Or raison why we are not allowed to use this on custom tables?
Regards