File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
internal/powerplatform/services/data_record Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -235,11 +235,11 @@ func (client *DataRecordClient) GetEntityRelationDefinitionInfo(ctx context.Cont
235
235
}
236
236
for _ , list := range manyToMany {
237
237
item := list .(map [string ]interface {})
238
- if item ["Entity1NavigationPropertyName" ] == relationLogicalName {
238
+ if item ["Entity1NavigationPropertyName" ] == relationLogicalName && item [ "Entity1LogicalName" ] != entityLogicalName {
239
239
tableName = item ["Entity1LogicalName" ].(string )
240
240
break
241
241
}
242
- if item ["Entity2NavigationPropertyName" ] == relationLogicalName {
242
+ if item ["Entity2NavigationPropertyName" ] == relationLogicalName && item [ "Entity2LogicalName" ] != entityLogicalName {
243
243
tableName = item ["Entity2LogicalName" ].(string )
244
244
break
245
245
}
You can’t perform that action at this time.
0 commit comments