Skip to content

fixing many to many relationships on data_record resource #323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

polatengin
Copy link
Contributor

@polatengin polatengin commented Jun 6, 2024

This pull request includes a change in the GetEntityRelationDefinitionInfo function in the internal/powerplatform/services/data_record/api_data_record.go file. The change involves adding an additional condition to the if statements that check the Entity1NavigationPropertyName and Entity2NavigationPropertyName values. The new condition checks if the Entity1LogicalName and Entity2LogicalName values are not equal to the entityLogicalName. This change ensures that the tableName is only set when the logical name of the entity does not match the entityLogicalName, providing a more precise selection of the table name.fixing determining wrong primary id field name for the referenced navigation property

fixing determining wrong primary id field name for the referenced navigation property

@mattdot mattdot enabled auto-merge (squash) June 6, 2024 22:59
@mattdot mattdot added the bug Something isn't working label Jun 6, 2024
@mattdot mattdot changed the title fixing data_record resource fixing many to many relationships on data_record resource Jun 6, 2024
@mattdot mattdot linked an issue Jun 6, 2024 that may be closed by this pull request
@mattdot mattdot merged commit 42fa774 into main Jun 6, 2024
@mattdot mattdot deleted the enpolat/data_record_fix branch June 6, 2024 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Many to many relationship failure
3 participants