CustomMetadataSaver icon indicating copy to clipboard operation
CustomMetadataSaver copied to clipboard

Error deploying updates to existing metadata records via Flow

Open luke-thorson opened this issue 3 years ago • 1 comments

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.Secondary_9211. Error message: Unsupported type 'Id' for field name 'value'

image

luke-thorson avatar Sep 17 '21 13:09 luke-thorson

@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!

jongpie avatar Sep 28 '21 23:09 jongpie