As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [metadata.operations]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
3 answers
457 views

Error updating metadata via Apex

I have an issue, I created a CMT to store a token for a integration with thirdparty system, with the SA user works fine, but it doesn't work for other users, when I check the debug logs I saw this ...
Angello Camacho's user avatar
0 votes
0 answers
35 views

Metadata Service API not able to update picklist depedency

We have 3 picklist dependent upon each other: Category (Mandatory) Type (Mandatory) Subtype (Not mandatory) For each picklist, we have lot of picklist values which consumes lot of time mapping via ...
user59812's user avatar
0 votes
0 answers
25 views

LimitInfoHeader not coming for Metadata SOAP API calls

I have a requirement for my project where I need to know about the API usage inside the SOAP calls via API response. According to Salesforce Documentation, API usage monitor for SOAP APIs can be ...
Satyam Kumar's user avatar
0 votes
1 answer
644 views

Update Custom Metadata Type Record

I have a controller that updates/creates metadata type records. It works fine for the creation of new records, but when I try to update existing records, I get this error duplicate value found: ...
Serhii's user avatar
  • 1
1 vote
1 answer
186 views

What are the options of using apex to delete protected custom metadata record from subscriber org?

I know that I can use Metadata API and can use Apex to run Metadata API to delete metadata, like Custom Metadata records. I know that I can leverage Metadata.Operations class to create or update ...
Patlatus's user avatar
  • 15k
1 vote
3 answers
11k 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 ...
Nachiket Deshpande's user avatar
1 vote
0 answers
85 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 ...
Brendan's user avatar
  • 11
4 votes
1 answer
3k 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(); ...
Patlatus's user avatar
  • 15k
3 votes
1 answer
3k 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 ...
Patlatus's user avatar
  • 15k