Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions about the Metadata API provided by salesforce. The API that can be used to retrieve, deploy, create, update or delete customization information, such as custom object definitions and page layouts, for your organization. This API is intended for managing customizations and for building ...

0
votes
1answer
22 views

Salesforce to Salesforce Connection

Is there a way , we can fetch all the metadata from one org to another (just the Api name) , so that we can use it to display on the field. **** Edit **** So in our agile process , we will include ...
0
votes
2answers
24 views

Retrieve Page Layout using Metadata.Operations.retrieve

I have seen the answer to this post: Retrieving Packaged Page Layout in Apex I am using the same code with my values substituted: List<String> componentNameList = new List<String>{'...
0
votes
1answer
14 views

How to overcome Salesforce System Error when deploying from Apex Code more than 1488 Metadata Records?

Conversion process of custom object records into Custom Metadata records using Metadata.Operations class enqueueDeployment method fails if deployment container contains more than 1488 records. ...
2
votes
1answer
18 views

Create private List View using Metadata API

Is it possible to create private list view (equivalent to list view with "Only I can see this list view" option selected when creating via UI) using Metadata API? If I create such list view using the ...
1
vote
1answer
18 views

Scratch Org Capabilities with regard to EmailServiceFunction

When I create an EmailServiceFunction in the scratch org and pull down to my local project I don't see the EmailServiceFunction I created reflected anywhere in the meta-data. Is this a change that can ...
0
votes
1answer
7 views

How to authenticate with Salesforce from Metadata API by using a .NET application

I need to create an custom object using Salesforce Metadata API. For that I just created a .NET application by using Metadata wsdl. I can't find a login method in the Metadata API in order to get ...
0
votes
0answers
20 views

I have created a custom field with the metadata API and when I try to programmatically write to it I receive an error

Wrather, I create the field in the UI or with the metadata api I get the same result on this one field. Error, batchInfo: Error: InvalidBatch : Field name not found : prefix__ID__c All my fields ...
0
votes
1answer
21 views

I want to use JSForce to create a custom field on the Contact Object using the metadata API

I am trying to use code like this to create custom fields on the Contact Object in salesforce using JSForce. This does not work of course and the documentation does not show how to do this with ...
0
votes
0answers
17 views

Cannot push new flow version or update current version

I am using egit with eclipse, using metadata api I refreshed the flow folder in force.com ide where I was able to see new version of flow that was created. In the this environment, where I edited ...
0
votes
0answers
26 views

How to get the particular pagelayout details through Salesforce API - Java

I'm trying to get the particular page layout details using the below code. But unable to fetch the details DescribeLayoutResult = connection.describeLayout(string sObjectType, string layoutName, ID ...
2
votes
0answers
21 views

Cannot provide null for an SObjectField custom metadata record field via Metadata API

We're trying to update Custom Metadata records using the Custom Metadata API from Apex. The record has a field of type SObjectField. When we create we can omit this field and the result on the ...
1
vote
0answers
24 views

How to retrieve global value set values assigned to Task recordtype through metadata API

How do I, through the metadata, retrieve the picklistvalues assigned to a task recordtype, when the picklist is a global value set? I've tried with the following package.xml, however neither the ...
0
votes
1answer
28 views

Why am I Seeing Summer 2016 API errors with the Summer 18 version of the Salesforce Migration Tool?

I am trying to download the latest version of the force.com migration tool (sometimes called the ANT migration tool.) The download page seems to link to the Summer 2016 version of the tool (see ...
0
votes
1answer
17 views

how to to call salesforce metadata API to get info about particular object of salesfocce in Java [closed]

how to call salesforce Apex class from Java code. I am trying to call salesforce metadata API to get info about particular object of salesfocce in Java.
1
vote
0answers
48 views

Set Category Group Visibility Settings for Role using Apex

The question is can I set Category Group Visibility Settings for Role using Apex code somehow? My logic creates Data Categories (I'm using Metadata Api for it) and User Roles (I'm using UserRole ...
0
votes
1answer
68 views

Deployment error for isCaseSensitiveDeterministicEncryptionEnabled (or isCaseInsensitiveDeterministicEncryptionEnabled) element in metadata

When I am trying to deploy the custom metadata for my Activity object (content of Activity.object) I am getting this error message: 1. objects/Activity.object -- Error: Error parsing file: Element {...
0
votes
1answer
29 views

Update Roll up summary filter from Apex?

I have a roll up summary field on one of my objects. Because roll up summary fields do not support smart dates or formulas, I am forced to manually input a specific date range that I want to summarize ...
3
votes
1answer
115 views

Delete picklist inactive values using ANT

We need to delete inactive values from some of our picklist using ant and we are not able to do it. We have tried with this 'destructivePackage.xml': <?xml version="1.0" encoding="UTF-8"?> <...
1
vote
1answer
33 views

Query Salesforce fields with their unique IDs

I would like to query all picklist fields on a specific object, along with their associated unique Salesforce IDs (I'll be loading these as custom metadata types). I don't need the picklist values, ...
0
votes
1answer
12 views

Can we update transactionSecurity Policy using rest api or meta data api?

Can we update transactionSecurity Policy using rest api or meta data api ?i tried with rest api,its not supporting updation and in meta data its throwing unknwn type.
1
vote
1answer
36 views

'text' is not a valid value for the enum 'FieldType'

Error Web service callout failed: WebService returned a SOAP Fault: 'text' is not a valid value for the enum 'FieldType' faultcode=soapenv:Client Code List<MetadataService.Metadata> ...
0
votes
1answer
90 views

Is metadata deployment of dashboards possible?

I am trying to deploy a dashboard through METADATA API and I am getting this error: dashboards/Sales_Pipeline/lDikNwTblUhdgUlSupWtYQXXkpDFSa217.dashboard -- Error: Either org permission or org ...
1
vote
2answers
143 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 ...
0
votes
0answers
20 views

Not able to connect Salesforce using Soap API/ WSC connector

I am trying to connect salesforce using WSC connector. I have created the metadata.jar file, enterprise.jar file etc. I am getting the connection error. It is working in an open network, but now ...
0
votes
0answers
14 views

Data Loader - Upsert Error [duplicate]

Why Im getting this error Attempting to update (as part of an upsert) parent field Account__c with new value XXXXXXXX, current value is XXXXXXX
0
votes
1answer
66 views

FIELD_INTEGRITY_EXCEPTION when trying to update/create metadata records in managed package

We are using mdapi to create/update metadata records in a managed package. Everything works fine in the packaging as well as any other developer orgs. However, when we install the beta package in a ...
0
votes
0answers
23 views

Fetching external references through symbol table

Can anyone suggest a way to obtain the external references, with the help of symbol table results obtained. Am able to fetch dependencies, but when it comes to external references, am getting it as ...
0
votes
0answers
28 views

Glitches on after some code is uploaded

I use WebStrom + Illuminated Cloud 2 to upload code to my sandboxes. Sometimes I'm uploading some component and apex classes, and in my log view confirms that my code was completely uploaded. example ...
1
vote
1answer
51 views

how to clone a Profile programmatically?

How can I clone a salesforce Profile? I'd prefer to use Apex or DX/CLI. Our normal process for setting up an Org is to clone standard profiles, and then customize those clones. This probably ...
1
vote
1answer
22 views

How do I deploy salesforce Apex code programmatically using metadataAPI?

I am developing an application that is supposed to connect with clients' salesforce accounts and deploy some apex code to them. I am doing this in Groovy - but Java works same. After looking at the ...
0
votes
0answers
15 views

how we can upsert metadata in salesforce using REST api?

how we can upsert metadata in salesforce using REST api? i am able to retrieve but not upsert so any body help me?
0
votes
1answer
39 views

How to Retrieve Knowledge Validation Status Picklist custom values?

Validation Status is a standard picklist available in Lightning Knowledge (Knowledge_kav), however the field metadata is not available in Knowledge Settings or Knowledge Object. I even tried Standard ...
0
votes
1answer
39 views

How to get LastModifiedDate of Custom Field or Custom Label by Metadata API in Java?

How to get LastModifiedDate of Custom Field or Custom Label by Metadata API in Java? Edit: I found a link: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/customfield.htm?...
3
votes
1answer
41 views

Which metadata stores custom CSS for a community?

When creating a community, you can override the CSS of a template. Use custom CSS to override the default template and Branding panel styles. We recommend that you use custom CSS sparingly, because ...
4
votes
3answers
163 views

metadata API: howto deploy only what specified in package.xml

I'm using mdapi:deploy. How do I tell it to deploy ONLY the metadata is defined in my package.xml instead of all the metadata files on my local filesystem? Ex package.xml: <?xml version="1.0" ...
0
votes
0answers
17 views

Fetch Metadata from Salesforce using Tooling API objects [duplicate]

I am building a tool in Java to fetch all the metadata from Salesforce using the Tooling API. For Ex: I want to fetch all the profiles details including object-permission, field-premission, ...
3
votes
1answer
46 views

Custom Button not Showing in Page-Level Action Menu in Lightning

I have an app that creates and builds a custom button, using the metadata api (using the Apex Wrapper for the Salesforce Metadata API: https://github.com/financialforcedev/apex-mdapi). The button is ...
1
vote
0answers
28 views

Custom Object Tab is not visible in “Show All Tab” when created via Apex

We have a VF page which creates Object, fields, RecordType and assigns them to Profiles and also creates Tab for the object and assigns them to the profiles using the MetadataAPI wrapper. Below is ...
0
votes
1answer
32 views

How to Create Workflow through apex class?

Is there any workaround to create Workflow through apex? I'm trying to use the MetadataService.cls but I am not able to achieve that. Any help will really helpful for me.
0
votes
0answers
38 views

How can we delete custom button using metadata

I am trying to delete custom button using following metadata,but i can able to delete that Button.Can any body help me out.thank you. <types> <members>Contact.Buttonname</members> &...
0
votes
0answers
48 views

Salesforce Delta Deployment / Change Tracker

We have a requirement to generate the Salesforce components modified between two dates. I can achieve it by generating package.xml for the entire org and then leveraging GIT diff to obtain the delta ...
1
vote
1answer
64 views

Package Install API - Remote Site Settings

When installing a package using the links it asks the user to confirm the addition of remote site settings. When installing a package via the Metadata API using createMetadata() or the packaging API ...
0
votes
2answers
26 views

Error when reading metadata for Forecasting: INVALID_TYPE: This type of metadata is not available for this organization

I am trying to check if collaborative forecasts is enable in a Organization, for that i am using the following code: LOG.log(Level.INFO, "Check if the collaborative forecasting is enabled"); ...
0
votes
0answers
6 views

Dashboard Filter Display Name in Metadata API

I'm looking to deploy a dashboard with filters. The filter display name does not seem to be pulling in either DX or the Metadata API. When I check the Metadata API reference on dashboards, that ...
0
votes
1answer
39 views

Missing objects in metadata wsdl

I am looking into metadata and partner wsdl generated through my instance for API 43 and it is missing few objects. E.g. INDIVIDUAL (Data Protection and Security) - got added in API 42 ...
3
votes
2answers
181 views

sfdx force:mdapi:retrieve on unmanaged package doesn't retrieve all included components

I'm trying to convert some code I'm writing in my sandbox into an SFDX project. The one complication is that my code references custom fields and objects that are part of a managed package. Per the ...
6
votes
2answers
266 views

How do I enable REST Metadata API?

I am getting this error in Workbench when using the REST explorer: API_DISABLED_FOR_ORG message: The REST Metadata API is not enabled for this Organization. errorCode: API_DISABLED_FOR_ORG INFO: We ...
1
vote
2answers
137 views

Pulling *full* Profile XML without hitting metadata limit?

Need: I have a profile configured for the 'Salesforce Platform' license type, and need a version of it that works for the 'Salesforce' license (you can't clone a profile across license types using the ...
0
votes
0answers
22 views

Delete MultiselectPicklist custom field values with Metadata API / Ant Deployment Tool

Is it possible to delete values from custom field of type MultiselectPicklist with Metadata API / Ant Deployment Tool? I've tried to deploy a custom field without deleted values but it deactivates ...
0
votes
1answer
25 views

Can I pull down specific ListViews from the metadata API?

I've added this to my package.xml so I get the Account Standard Object metadata and the AMR__c Custom Object metadata: <types> <members>AMR__c</members> <members>...