Skip to content
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

Remove internal properties from Xrm.WebApi request payloads #182

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

JanLosenicky
Copy link

@JanLosenicky JanLosenicky commented Jul 9, 2024

Purpose

Xrm.WebApi started to throw exception while sending internal properties like '@logicalName' in create/update requests payload.

Error Message: InnerException : System.ArgumentException: 'logicalName' is an invalid instance annotation name. An instance annotation name must contain a period that is not at the start or end of the name.

image

Approach

Removing internal properties specified in 'recordInternalProperties ' from record object sent to webapi by introducing and using function exludeInternalPropertiesFromPayload(record: Record).

  • Updating related test.

TODOs

  • Automated test coverage for new code
  • Documentation updated (if required)
  • Build and tests successful

@ewingjm
Copy link
Member

ewingjm commented Jul 15, 2024

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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