powerplatform-mcp 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -109,7 +109,16 @@ export class PowerPlatformService {
|
|
|
109
109
|
'ReferencedEntityNavigationPropertyName',
|
|
110
110
|
'ReferencingEntityNavigationPropertyName'
|
|
111
111
|
].join(',');
|
|
112
|
-
|
|
112
|
+
// Only filter by ReferencingAttribute in the OData query since startswith isn't supported
|
|
113
|
+
const response = await this.makeRequest(`api/data/v9.2/EntityDefinitions(LogicalName='${entityName}')/OneToManyRelationships?$select=${selectProperties}&$filter=ReferencingAttribute ne 'regardingobjectid'`);
|
|
114
|
+
// Filter the response to exclude relationships with ReferencingEntity starting with 'msdyn_' or 'adx_'
|
|
115
|
+
if (response && response.value) {
|
|
116
|
+
response.value = response.value.filter((relationship) => {
|
|
117
|
+
const referencingEntity = relationship.ReferencingEntity || '';
|
|
118
|
+
return !(referencingEntity.startsWith('msdyn_') || referencingEntity.startsWith('adx_'));
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
return response;
|
|
113
122
|
}
|
|
114
123
|
/**
|
|
115
124
|
* Get many-to-many relationships for an entity
|