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 tools that can manage the metadata model, not the data itself.

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Find all reports filtered by specific field and value

How can I find all reports in my Salesforce instance where the report is filtered by a specific field and value. We need to surface this data to management because they want to make adjustments to ...
Matthew Metros's user avatar
0 votes
2 answers
1k views

Deployments across orgs that are different versions

I am working in an environment where my Dev sandbox is API 53.0 and my destination QA sandbox is API 52.0. I use the metadata api to deploy changes but I am running into some frustrating issues when ...
Rory's user avatar
  • 349
1 vote
1 answer
2k views

is there a quick way to retrieve the entire (100% of fields) profile from an organization?

is there a quick way to retrieve the entire (100% of fields) profile from an organization? I need retrieve all profiles data from org. How can i do this ? If i try add all metadata types to package....
Flecso's user avatar
  • 13
0 votes
1 answer
80 views

Can we create sandbox via metadata in apex salesforce?

I know that it can be impossible , I have requirements to create a sandbox for organization via a button on Custom object record. Can we create a sandbox via metadata in Apex or some process ? Any ...
Vitalii Dehnerys's user avatar
1 vote
0 answers
154 views

How to identify a profile password policy linked to a profile easily?

I would like to know an easy way to fetch the profile password policy attached to a profile. I know the metadata api "profilepasswordpolicy" which is useful to retrieve settings of a policy, ...
herbalizer404's user avatar
1 vote
1 answer
339 views

Use cases of different Salesforce APIs

I wanted to understand in what scenarios we can use the below APIs: Metadata API Tooling API UI-API Composite API REST API Its very confusing if we are checking from the documentation. What could be ...
sfdc07's user avatar
  • 544
2 votes
2 answers
1k views

QuickText is not a "valid Tab" error when deploying Profiles

I'm deploying a Profile Foo from VCS to an org. SFDC reports a deployment error You can't edit tab settings for QuickText, as it's not a valid tab Yet if I look in the target org under Tab Settings, ...
cropredy's user avatar
  • 67.7k
0 votes
1 answer
980 views

De-Activate a Process Builder via Metadata API

I want to de-activate a process builder on a destination sandbox. I have set the status as Obsolete on the .flow file and deploy via Jenkins. But it didn't get deactivated. API Version is 52. Any idea?...
L Mudiyanse's user avatar
0 votes
0 answers
121 views

How to iterate the scopes of all of the connected apps to my account?

I was asking How should one fetch Application Permissions via API?, but apparently it wasn't so clear, so I'll try to rephrase it. What I am trying to do, is to fetch thru API the scopes of all of the ...
Tomer Shetah's user avatar
1 vote
0 answers
159 views

Disable an Einstein bot with Apex

I have dedicated a lot of time to eradicated manual steps from my deployments, and one that I'm stuck on is Einstein bots. If you try to deploy a bot, it must be inactive otherwise, "Can't edit ...
Joe Howells's user avatar
2 votes
1 answer
295 views

jsforce: retrieve metadata of a report with a row-level formula

When I use sfdx to pull a report, I see custom row formula fields under customDetailFormulas, but when I pull the same report using jsforce, customDetailFormulas are missing and the row summary ...
Kat's user avatar
  • 99
1 vote
1 answer
179 views

Unable to download Metadata WSDL from Org

Related to this other question Discover Schema of Source + Metadata XML formats I am trying to download the Metadata API WSDL file from the Orgs URL https://ServInstance.salesforce.com/services/wsdl/...
Robert Sösemann's user avatar
0 votes
1 answer
874 views

Standard Application profileActionOverride Retrieval

Normally profileActionOverride entries are available in CustomApplication metadata. However, when I try to retrieve a standard application, e.g. <types> <members>...
Phil Rymek's user avatar
  • 6,139
0 votes
1 answer
2k views

Updating picklist value using metadata api

I'm updating picklist value using metadata api and apex. Below is my code snippet and I'm receiving an error: Variable does not exists: picklist on: customField.picklist = pt ; Can someone help me? ...
Duan's user avatar
  • 155
2 votes
1 answer
176 views

Metadata Managed Package Deployment - No Components Installed

My package is on a developer organization, it's marked as managed, and the namespace is FBO. I've uploaded the package and I can install it successfully through the URL. Since I need to automate the ...
mitchneutron's user avatar
0 votes
1 answer
290 views

AddressSettings / State & Country picklists translation

Question on AddressSettings / State & Country picklists: Does anyone know if there is a way to retrieve translations of country picklist by language via Metadata API / any other exposed salesforce ...
Artem Kukharev's user avatar
1 vote
1 answer
840 views

Deploy a Salesforce Flow from one environment to another using Metadata API

I am unable to move my latest version of a flow to another environment. The latest version is number 29. When I use this command: sfdx force:source:retrieve -m "Flow:My_Flow-29" -u dev I ...
Json's user avatar
  • 1,557
2 votes
1 answer
146 views

Cumulus CI deletes custom list views from production

I'm using Cumulus CI to push our metadata changes to our production Salesforce app using cci flow run dev_org --org production and this generally works fine. I have a custom object called Print_Job__c ...
Dan's user avatar
  • 185
0 votes
0 answers
149 views

Duplicate permissions in permission sets are deleted when using SFDX deploy

For example, if I have <classAccesses> <apexClass>APX_someClass</apexClass> <enabled>true</enabled> </classAccesses> in my foo.permissionset-...
Kishan B's user avatar
  • 111
1 vote
1 answer
716 views

Error during validation of change sets: "Required field is missing: pageOrSobjectType"

I'm having trouble with the deployment of a lightning app through change sets. This is the error I am getting: Required field is missing: pageOrSobjectType So I went through the source code of the ...
robruf's user avatar
  • 317
0 votes
1 answer
121 views

How to delete a custom metadata that is protected component via Apex or Metadata API

Anybody have experience doing this in Apex/Metadata API?
spicykimchi's user avatar
0 votes
1 answer
528 views

sfdx force:source:retrieve doesn't work for account field

Does anybody knows why this works for field Origin of Case SObject: sfdx force:source:retrieve --metadata "StandardValueSet:CaseOrigin" and this doesn't work for field AccountSource of ...
Saulo's user avatar
  • 937
1 vote
0 answers
109 views

Setting the mydomain login page url in Scratch org via SFDX or CCI

I'm trying to build out a scratch org definition/ cci project and I'm wanting to set the sidebar URL of the main login screen, you set that in the My Domain page, however it doesn't appear to be ...
Simon Jensen's user avatar
1 vote
1 answer
177 views

Is there a way to use the Metadata API "purgeOnDelete" option within Salesforce DX / CLI?

I'm trying to erase a lot of custom fields. I've managed to delete them, but they still exist in deleted fields. The metadata API has a "purgeOnDelete" option to address this, but I don't ...
HartyeTech's user avatar
4 votes
0 answers
996 views

Content Detail pages host Salesforce CMS content. I don't want these pages

When deploying a digital experience via Metadata API I am receiving the following error: Content Detail pages host Salesforce CMS content. If you want content on the B2B_Pharma_Store1/views/newsDetail....
Luke Bray's user avatar
  • 486
0 votes
1 answer
104 views

Lightning Knowledge Summary field retrieval not possible

I am trying to retrieve Knowledge__kav Object "Summary" field but not able to, I want to remove HelpText of Summary field and then deploy it, is it possible? <types> <members>...
sfdc rowdy's user avatar
0 votes
1 answer
1k views

API Error: Wrong number of dashboardFilterColumns 1 instead of 2

I'm trying to use the metadata API to move a dashboard from one Salesforce to another, and I'm getting the error Wrong number of dashboardFilterColumns 1 instead of 2 The dashboard does have 2 ...
Kat's user avatar
  • 99
1 vote
2 answers
1k views

How to resolve INVALID_SESSION_ID error on fetching Tooling API data

Using the Tooling API I need to fetch All Workflow rule Details. My below code work perfectly on the developer console Anonymous Window, but in LWC when I envoke the method with @wire shows me an ...
shamim's user avatar
  • 189
0 votes
0 answers
3k views

How to get only active workflow rules

Tooling API help to get all workflow rules, But I need only active workflow rules. How to get the active property information. for all workflow rules (Including inactive ) /services/data/v36.0/tooling/...
shamim's user avatar
  • 189
0 votes
0 answers
379 views

Metadata Api: "Web service callout failed: Unable to parse callout response. Apex type not found for element name"

I'm trying to build my own metadata wrapper class to call MD-API directly from apex since the apex-mdapi solution by Andrew Fawcett on Github is kinda outdated. I downloaded the current metadata WSDL (...
yassin0's user avatar
  • 25
2 votes
2 answers
222 views

Is there an API Name for the field "User Password expires in" under Password Policies?

I am doing a flow that will notify users when their passwords are about to expire in SF. I have to subtract 7 from the number I set in "User Password expires in" as apart of that automation. ...
Linden's user avatar
  • 25
1 vote
0 answers
76 views

Metadata API readMetadata truncates base64 values?

I'm trying to use readMetadata in the metadata API to download various things about an org. This works great for most everything but base64 values are always truncated.. Here's my test aura component: ...
Dave Durant's user avatar
7 votes
3 answers
393 views

Push upgrade app for second generation packages?

Based on the Scheduling Push Upgrades and the Push a Package Upgrade documentation, while Salesforce UI to schedule push upgrades is available for first generation packages (1GP), for second ...
Keith C's user avatar
  • 134k
2 votes
2 answers
893 views

SessionID access vulnerability found when using Metadata API

Salesforce is performing manual security review in our package. They have found SessionID access Vulnerability in one of our file where we are using Metadata API to grant permissions on profile and ...
Mr.Frodo's user avatar
  • 5,774
0 votes
0 answers
27 views

How to insert a list of States in Salesforce with the Metadata API [duplicate]

Is it possible to insert a list of States in Salesforce with the Metadata API? How? Thank you very much. Additional Question (02-June-2021@12:11CEST): I have retrieved the XML file containing the ...
Eduardo's user avatar
0 votes
0 answers
63 views

Create Apex Trigger / Class using Python [duplicate]

I am trying to automate a few things for Salesforce using Python. I am using OAuth for Rest API for other processes like creating or updating records. I need to figure out how to create Apex Trigger/...
pranjal gupta's user avatar
1 vote
2 answers
2k views

Deploying changes to Community/Experience pages

What's the best practice for deploying changes to Experience/Community pages from sandbox to prod? In this case, we've changed some pages in sandbox and meanwhile others have been changed in prod. ...
mscholtz's user avatar
  • 1,304
1 vote
0 answers
59 views

Update LWC field from future/queuable Apex [duplicate]

I have something here which I thought would be simple but is turning out to be a nightmare. I've created an LWC Setup page where a user can create an Account (it's nothing more than an input field and ...
bcarroll2k3's user avatar
1 vote
0 answers
1k views

ActionId dependency in deploying Page Layouts

I am trying to deploy changes from a a github branch into a Salesforce Sandbox but keep getting the following error(s): Case-ACH Bounce Layout Page Layout 0 0 The ActionId specified was invalid ...
Max's user avatar
  • 476
0 votes
0 answers
396 views

LWC not showing on App Page automatically

I have created 1 HelloWorld component and add it to a App Page, Now when I deploy it to another org as per below xml <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <...
sfdc rowdy's user avatar
0 votes
1 answer
857 views

Issues deleting a flow version

I am having an issue with the deletion of a flow version. Using standard declarative ways the version will not delete and removing the flow all together gives an internal service error so I have been ...
Adam's user avatar
  • 3
1 vote
1 answer
607 views

query and update time based actions

I have a requirement to update the time trigger condition in a active time based workflow rule Right now there are more than 1000 records related to it as i can see in the monitoring secttion, but i ...
sumit bhatt's user avatar
2 votes
1 answer
448 views

Lightning App Builder xml retrieve problem summer '21

after the Summer '21 release we have noticed that when we are trying to retrieve a flexipage that contains few lightning-web-component, all of these are removed from the retrieved manifest. This ...
marzobryant90's user avatar
1 vote
0 answers
161 views

Unable to call readMetadata, due to error message "unable to find end tag at: START_TAG seen

I'm trying to collect the setting from the salesforce account. I'm using metadata api sdk to collect these metadata. following is the snippet for readMetadata ConnectorConfig config = new ...
Sai Ashish Das's user avatar
0 votes
1 answer
6k views

Is it possible to query/find reports using a particular report type?

I have a list of report types and I need to find out which reports in my org are using any of those report types. Is there a way to do so instead of manually visiting each report and checking its ...
Reaper1883's user avatar
0 votes
1 answer
204 views

How do I fix the error when adding Custom Settings?

My task is to create an LWC component and then add it to a managed package. I was told that to store the API and the key to it, you should use Custom Settings and Custom Metadata Types. No more ...
unique user's user avatar
0 votes
1 answer
619 views

Update Custom Picklist Values Translations via MetadataService

I have a piece of code that allows me to update custom picklist field values: public static TM_EComUtils.genericResponse addPicklistValuesViaMetadata(String fieldAPI, String sObjectAPI, List<String&...
molinet's user avatar
  • 835
0 votes
1 answer
161 views

Managed package installation is very slow for a customer

For one of our customers, we see that it takes unusually long to install a managed package using the Metadata API. The package has a few classes and custom fields. We receive a read timeout after 5 ...
g33's user avatar
  • 1
0 votes
0 answers
132 views

Create Dynamic Trigger from Managed Package

I want to create a trigger based on user's input after they install my managed package. Can anybody please explain in detail on what are the possible solutions for this? I did look at one solution: ...
dippan's user avatar
  • 1
0 votes
0 answers
127 views

How can i add an image to an existing zip folder of static resource using apex class

How can i add an image to an existing zip folder of static resource using apex class. Basically, the requirement is that, whenever i upload an image using my custom image uploader component, the image ...
Shweta Sharma's user avatar

1 2 3
4
5
25