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 tagged [metadata-api]

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
0answers
17 views

CustomObjectTranslation upsert issue

I'm trying to grammatically update custom object's tab and name using CustomObjectTranslation. I'm using a metadata api call, manually crafting the needed xml. The call succeeds and I can see the ...
4
votes
2answers
464 views

What's the API name of system permissions?

I am adding the system permissions 'Manage Public List Views' and 'Create and Customize List Views' to a permission set via the Metadata API. The problem is I can't find their exact API name: <...
1
vote
1answer
16 views

How to use VSCode to find which reports are using a specific field

I have used Eclipse in the past but unfortunately, Eclipse and Force.com IDE no longer work for me. I have switched over to VSCode along with the Salesforce DX and forcecode extensions (among many ...
2
votes
1answer
25 views

Can a Managed Package with a password be imported through SFDX?

We are currently trying to figure out whether/how we might use SFDX. Our org has FinancialForce Accounting installed. This managed package is required by several other managed packages and it heavily ...
6
votes
1answer
64 views

Can OWD be imported/exported as metadata?

I'm currently trying to create a scratch org which reflects our ludicrously complicated production org which contains hundreds of Roles. Upon deploying most of these, I get errors like: Error src/...
-1
votes
1answer
29 views

How can I get meta data of a visualforce page which is used in a Page Layout of a particular object?

I have a question i.e. how can I possibly extract meta data of a Visualforce page inside a Page Layout of an object. For fetching the page layout I use following API request : https://ap4....
0
votes
1answer
41 views

Salesforce -Moving metadata showing error at the time of deploy

I am trying to move metadata through ANT tool, data also retrieved but at the time of deploying the data to another sandbox it is showing error like : All Component Failures: triggers/...
0
votes
0answers
34 views

Clone Lightning Component Using Apex

I have used Metadata API to read and create Lightning Component, but I am able to clone only Lightning Component which is created by me. I am not able to clone all Lightning Component. Actually, I am ...
0
votes
0answers
15 views

Generating Documentation for your Salesforce Instance

I have been searching the internet for documentation of an Salesforce instance for a long time. It's always been a tiring job and takes a lot of time to document an instance. I'm aware of ApexDocs ...
0
votes
0answers
14 views

How I can handle Salesforce metadata changing?

I use salesforce metadata api. I want get only changed metadata objects. Calling listMetadata returned list of FileProperties with this structure https://developer.salesforce.com/docs/atlas.en-us....
7
votes
1answer
148 views

Metadata API error while reading Picklist: Web service callout failed: Unable to find apex schema info

I am trying to read a custom dependent picklist field and update it's field-dependencies. I have followed the common resources found online and getting the below error: FATAL_ERROR System....
0
votes
1answer
45 views

SFDX and MDAPI Deploy Issues

I just started working with DX again. When deploying a DX project using the MDAPI to a production org, I get a lot of feature missing errors during the deploy. I have my set my default scratch org ...
0
votes
0answers
24 views

How to access Metadata API object - ConnectedAppOauthConfig in Salesforce?

I am trying to access "ConnectedAppOauthConfig" object. Reference Link - https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_connectedapp.htm I tried connecting using ...
2
votes
0answers
23 views

SFDX Can't Pull Source from Scratch Org “Metadata API received improper input” AppMenu and AppSwitcher [duplicate]

I'm using SFDX and I made a change to the visibility of my app in my scratch org but when I try to pull the changes down (sfdx force:source:pull) I get: ERROR: Metadata API received improper input....
1
vote
1answer
46 views

How to update the FLS using Salesforce Metadata API in a bulk update?

I have a set of fields in the array list which I wanted to give FLS with Read access. I'm using below piece of code to update the field level security using Salesforce API in java language. But the ...
0
votes
1answer
38 views

deploying and retrieving Address settings (State & Country picklists)

I'm having problems understanding how to deploy Address.settings with the Metadata API. As in: how do I structure the package.xml? I have this as Address.settings (shortened for brevity) <?...
2
votes
1answer
23 views

How to “Enable access levels for sharing report and dashboard folders” with DX or MDAPI

In order to create report folders, you must check the box "Enable access levels for sharing report and dashboard folders" in Classic setup (search Folder Sharing in setup). Is there any way to ...
0
votes
1answer
35 views

Query Contact using metadata api from soapui or postman

I am working on an assignment where I need to pull specific fields on the contact object with metadata api using Postman or SoapUI. The metadata api works fine from Salesforce workbench using the ...
1
vote
1answer
82 views

How to check whether Apex class with specific name exists or not using C#.Net?

I have one .Net web service which is used by my Salesforce application. I have used different Salesforce APIs to interact with Salesforce. Now, I have created one REST Service in my Salesforce ...
2
votes
1answer
53 views

Salesforce Metadata Update tools

We are looking for a tool to reactivate Apex triggers(100), Flows(20), WF rules(50) and Validations rules (1700). During data seeding in a sandbox from PROD using a famous tool had deactivated all the ...
0
votes
1answer
30 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
66 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
19 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
27 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
23 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
25 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
47 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
19 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
28 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
22 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
32 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
32 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
19 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
70 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
87 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
33 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
176 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
39 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
62 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
166 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
276 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
31 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
72 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
25 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
29 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
68 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 ...