Questions tagged [metadata.operations]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
1k views

How to delete Custom MetaData Records Via Apex?

I am using MetaDataService to create and update Custom Metadata. I want to also delete records created inside Custom Metadata Type. I know there is method available to delete metadata like I am ...
2
votes
0answers
52 views

Possible bug in Salesforce using Metadata.Operations.retrieve for packaged sObjects? [closed]

So, currently having an issue using Metadata.Operations.retrieve(Metadata.MetadataType.Layout, _layouts_); in a managed codebase. The object in question is managed and the layouts portion is trying ...
2
votes
1answer
545 views

Impossible to test Metadata.Operations.enqueueDeployment method

We are following Deploy Metadata example from the documentation // Setup custom metadata to be created in the subscriber org. Metadata.CustomMetadata customMetadata = new Metadata.CustomMetadata(); ...
2
votes
1answer
941 views

How to Make Metadata.Operation deploy work?

Did anyone tried to new Salesforce Summer 17 feature to deploy metadata records and layouts by Apex Code? I tried to use this feature to update custom metadata record and it fails for me. I just ...