Skip to content

Commit 389a47f

Browse files
committed
picklist attribute type fix
1 parent 2a01ed2 commit 389a47f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/PowerPlatform/Dataverse/data/_odata_base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,9 @@ def _enum_optionset_payload(
414414
per_lang[lang] = label_text
415415
options.append(
416416
{
417-
"@odata.type": f"{prefix}OptionMetadata",
417+
# OptionMetadata has no "Complex" variant in the EDM model -
418+
# only the outer PicklistAttributeMetadata/OptionSetMetadata do.
419+
"@odata.type": "Microsoft.Dynamics.CRM.OptionMetadata",
418420
"Value": m.value,
419421
"Label": self._build_localizedlabels_payload(per_lang),
420422
}

0 commit comments

Comments
 (0)