Skip to content

fix: use correct header 'MSCRM.SolutionUniqueName' when adding entity to solution in DataverseClient.create_entity()#33

Merged
MarcusRisanger merged 1 commit intoMarcusRisanger:mainfrom
tri-hommer:fix/solution-unique-name
Jun 27, 2025
Merged

fix: use correct header 'MSCRM.SolutionUniqueName' when adding entity to solution in DataverseClient.create_entity()#33
MarcusRisanger merged 1 commit intoMarcusRisanger:mainfrom
tri-hommer:fix/solution-unique-name

Conversation

@tri-hommer
Copy link
Contributor

The current implementation uses MSCRM.SolutionName, which does not work when creating entities within a solution context.
According to https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/web-api-metadata-operations-sample Section 1 in the Note Box, the correct header key is MSCRM.SolutionUniqueName.

This PR replaces the incorrect header to ensure entities are correctly added to the target solution.

@MarcusRisanger
Copy link
Owner

Hi @tri-hommer and thanks for the PR!

I will merge later today and release a new version!

@MarcusRisanger MarcusRisanger merged commit 9aa39b2 into MarcusRisanger:main Jun 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants