Skip to content

pac code add-data-source does not generate correct yes/no fields #205

@rfarris2000

Description

@rfarris2000

Describe the bug

Updating a yes/no value with 0/1 as defined by the imported type fails with an error. It appears the pac cli code generation is incorrect or needs to be adjusted.

Steps to Reproduce

  1. Try to update a field that is a yes/no value
  2. You can only set this to 0 or 1.
  3. Error will come back with: Cannot convert the literal '0' to the expected type 'Edm.Boolean'

Expected behavior

Yes/No values should be treated like an not option set. It should be treated as true/false.

Actual behavior

Imported type is treated as an option set.

Screenshots or Error Messages

Environment information

Dataverse connector

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions