jongpie / CustomMetadataSaver

Allows saving changes to custom metadata records via Apex and Flow
MIT License
39 stars 5 forks source link

Error deploying updates to existing metadata records via Flow #16

Open luke-thorson opened 3 years ago

luke-thorson commented 3 years ago

I'm attempting to deploy changes to an existing collection of metadata records in Flow using the invokable action. The update is to a single field that is a Custom Metadata Relationship type. I've tested passing the Id, DeveloperName, QualifiedAPIName, and MasterLabel of the record into the relationship field. All produce the same error.

_Error element Update_Records (FlowActionCall). An Apex error occurred: System.TypeException: Error deploying metadata of type CustomMetadata and fullName NAICS_Secondary_Code.Secondary9211. Error message: Unsupported type 'Id' for field name 'value'

image

jongpie commented 3 years ago

@luke-thorson sorry for the late reply, and thanks for reporting this! It looks like I never implemented support for metadata relationship fields, so I'll have to make a few changes to support that field type (and any other field types I might have overlooked).

I unfortunately won't have a chance to work on this for at least a few weeks, but I'll get this addressed ASAP. Let me know if you encounter any other issues!