Questions tagged [metadata]

Metadata contains all the customization you can do to your salesforce organisation. Use this tag for specific questions about the metadata itself. Use the metadata-api tag for questions on deploy/retrieve/update/delete of the metadata with salesforce organisations.

Filter by
Sorted by
Tagged with
1 vote
1 answer
33 views

compactLayout removed from .object-meta.xml after "sf project retrieve start" or right click "SFDX: Retrieve source from org" 2GP

I'm building a package to eventually put on the app exchange. I've set up a dev hub, created a developer site with a namespace and configured visual studio code. I created my components in visual ...
Andy's user avatar
  • 23
0 votes
1 answer
41 views

How to deactivate all flows via sf cli

I'm trying to deactivate all active flows via sf data cli I saw docs said we can deactivate if via Metadata field You can activate and deactivate flows with the Metadata field. Below command is ...
vctqs1's user avatar
  • 45
0 votes
0 answers
33 views

Get app tabs visibilty for user based on profiles and permission sets

I have an app and want to know, which fields are visible for a user. I have tried to get CustomApplication metadata, but it's just list of tabs. So for example: I have user User1 and App1 with ...
Samodeus's user avatar
0 votes
1 answer
51 views

Does it make sense to use ProfilePasswordPolicy metadata in an sfdx project?

When I interactively modify the "Password Policies": in a couple of profiles in my scratch org and then run: sfdx force:source:retrieve -m ProfilePasswordPolicy zero .profilePasswordPolicy ...
Keith C's user avatar
  • 135k
0 votes
1 answer
38 views

How or do we have anyway to run ValidateMetadata via REST API before creating package version

i'd like to do a check metadata validation in advance even before creating package version in each PR. My question is do we have any way to do check code-coverage verify metadata before creating ...
vctqs1's user avatar
  • 45
0 votes
1 answer
75 views

"object name is already in use" while deploying custom metadata

I have custom object with API name channel__c. I am trying to deploy custom metadata with API name as channel__mdt.it is throwing an error of "object name is already in use".
Sarjerao Pujari's user avatar
0 votes
1 answer
257 views

How to retrieve List View buttons using SFDX?

I am trying to retrieve the list view buttons settings from my Lead object but am unsure of how to capture this using VSCode Org or SFDX. It is under Custom Objects > Leads > List View Button ...
Deployment Failure's user avatar
0 votes
0 answers
23 views

Search layout restapi returns fields for event or any custom object which don't have search layout configured. From where we are getting these fields?

Rest api for search layout /services/data/v59.0/search/layout/?q=objectName returns result for both event and task object. For both of these objects we can't configure search layouts in setup. How we ...
Manjot Singh's user avatar
  • 3,406
0 votes
2 answers
543 views

How to retrieve metadata from record triggered flow with custom error message?

Currently I trying to retrieve metadata form Record-Triggered Flow with new custom error message component But when I deploy to another sandbox org, I received this message When I check the xml, I ...
Moises Taboada's user avatar
3 votes
1 answer
106 views

Clean data From deprecated field in Managed package

Context: I have a managed package and I removed a field from the latest version of the package. Now Although the field is not part of package the customer org still has the field and relevant data in ...
Anmol Kumar's user avatar
  • 3,589
2 votes
0 answers
38 views

Difference between how the labels are returned in compact layout and search layout api if user language is different than english

I am calling salesforce API to get compact layouts( /services/data/v46.0/sobjects/Account/describe/compactLayouts/primary ). I get fields label in user's translated language.I am getting same response ...
Manjot Singh's user avatar
  • 3,406
0 votes
1 answer
68 views

Cant downgrade SFDX to previous version 7.181.1 for scratch org script created by team

I need to downgrade to this version(7.181.1) as the whole team uses it for a scratch org script. I've tried using the most previous one I can find 7.199.2 and the most recent 7.209.6. Either one will ...
JEbert's user avatar
  • 11
0 votes
0 answers
74 views

Getting insufficient access rights on cross-reference id when deploying Analytics Dataset components

Just created a scratch org and now attempting to deploy an entire wave folder, with one app, multiple datasets, and one dashboard. None of the Analytics Dataset metadata components want to deploy and ...
Vio's user avatar
  • 21
-2 votes
2 answers
170 views

How to get the length of all the fields in an object

I'm looking for a way to get the max length of each field in an object. I believe if I do something like System.Debug(ObjectName.FieldName.getDescribe().length); In Apex, it will get me the length of ...
lengthy_preamble's user avatar
0 votes
1 answer
44 views

Ant Migration Tool: How to deploy metadata in source format

We are heavily relying on ant to do manual deployment and CI/CD in one of our projects. But now time comes when we need to migrate from 1gp to 2gp package, thus we would need to switch from classic to ...
wesaw's user avatar
  • 2,980
0 votes
0 answers
65 views

Is it possible to add a dashboard to a experience site using metadata that works for different environments?

I'm using the ExperienceBundle Metadata API and I have an experience site. There are a couple of dashboards that are part of a managed packaged that I want to include in my experience site. I added ...
Kevin Maldonado's user avatar
1 vote
0 answers
53 views

How do you handle changes to xml files across different feature branches?

We have different teams all working in the same Salesforce instance. While these teams usually have their own permission sets/objects/whatever that they work in, there are times when we find ourselves ...
leed38's user avatar
  • 123
1 vote
1 answer
175 views

CORS Issue Preventing LWC Component from Accessing Salesforce Apex Controller - No 'Access-Control-Allow-Origin' Header Present

I am working on a Lightning Web Component (LWC) in Salesforce that fetches data from a custom Apex controller. Unfortunately, I am facing a CORS (Cross-Origin Resource Sharing) issue that prevents the ...
Lakshmi's user avatar
  • 61
0 votes
0 answers
74 views

getObjectInfo/getPicklistValues permissions needed in public community

What are the permissions needed to use getObjectInfo (needed for default record type) && getPicklistValues wire adapters in public community? I've added but I'm getting 401 when accessing ...
dzh's user avatar
  • 4,016
0 votes
0 answers
43 views

How to order apps in App Launcher via metadata deployment (need to move our app on top for every new orgs setup in CI)

We would like to move our application on top in App Launcher, so that users do not have trouble finding it. The ultimate goal is to have this automated in our CI/CD pipelines, so that each new orgs ...
wesaw's user avatar
  • 2,980
1 vote
1 answer
86 views

JS in Salesforce DOM security review failure

I have just been sent back the security review report for our ISV partner app and one of the errors is 'JS in Salesforce DOM'. The file they have referenced is a .weblink file, the code snippet they'...
lhh13's user avatar
  • 41
0 votes
0 answers
77 views

How do I migrate Process Automation Settings

How do I migrate setting or users on Process automation settings -> Default workflow users through package xml? Upon deploying workflow it shows error -> you must specify a default workflow user ...
GLS's user avatar
  • 3
0 votes
0 answers
38 views

Error while calling readMetadata() ,unable to find end tag at: START_TAG seen

I have written a Java code for getting the metadata though readMetadata(), but the following error is always reported after fetching a portion of the data: **Exception in thread "main" java....
Arthur Xingxing's user avatar
1 vote
1 answer
231 views

Where can I find Field History Tracking metadata for Activity object?

I have set some fields for field history tracking on Task object. The standard field metadata files have <trackHistory>true</trackHistory>. The custom field for Task was created in the ...
Ian's user avatar
  • 13
0 votes
0 answers
65 views

Is "Organization-Wide Email Footer" available as metadata?

We use "Organization-Wide Email Footer" functionality. Is it available as metadata to move changes to higher environments or this should be done as a post-deployment step? Note: I couldn't ...
Akif's user avatar
  • 15
0 votes
1 answer
796 views

An object '' of type Dashboard was named in package.xml, but was not found in zipped directory

When I am trying to deploy a dashboard with its dashboard folder, I am receiving an error through package.xml. Below is the error: Error SalesRepDashboardsTableauxdebord An object '...
Dips's user avatar
  • 1
0 votes
1 answer
62 views

get metadata as *.object, not folder structure

How do i retrieve metadata, as .object files? Currently what i do is: use workbench or Package xml Generator to create a package.xml like this <?xml version="1.0" encoding="UTF-8&...
Luis Aguiar's user avatar
0 votes
0 answers
32 views

Get parent category in Page Meta Tag Rules

I want to take the parent category in the page meta tag rules from Business Manager. It says in the documentation that it can be done, but there is no example and the various tests I have done do not ...
MGA's user avatar
  • 1
0 votes
0 answers
105 views

Translating DataCategory

I am using Copado, but it does not matter. I know that DataCategory could be translated. However, I want to deploy this thru metadata. I reviewed the metadata CustomObjectTranslation and Translations ...
m Peixoto's user avatar
  • 1,046
3 votes
1 answer
885 views

Invalid IOS url - Experience Bundle Site.com Deployment Error

Deployments were working fine before: All of a sudden I am now getting an error message of "Invalid IOS url" when trying to deploy my ExperienceBundle site. It points to the metadata file as ...
Vin Tang's user avatar
0 votes
1 answer
297 views

In the ReportFolder metadata, what does the sharedTo reference when sharing to a User?

I'm trying to deploy a singular Report and Folder. When I deploy I get an error saying The user, group or role is not associated with a valid group. for the Folder. As a result my report fails as well ...
dBeltowski's user avatar
  • 3,038
0 votes
0 answers
38 views

Custom Metadata Update does not run QueuebleHandler in Metadata.DeployCallback when called from extended Auth.AuthProviderPluginClass

I am trying to update a Custom Metadata record using the following code, which works perfectly well when run as an Anonymous user through the development console: public class SageMetaDeploy ...
wmin's user avatar
  • 69
0 votes
0 answers
110 views

Workbench Metadata Retrieve error

I get this error when trying to export all components of metadata within a sandbox org. UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ErrorId if you contact support: 1787816442-...
user131739's user avatar
0 votes
0 answers
113 views

Error retrieving metadata for entities of type: Layout. Error message: record limit reached. cannot submit more than 10 records in this operation

We are using Lightning Aura component to display tabs dynamically based on the record types and Layouts. When trying to retrieve more than 10 records using Metadata.Operations.retrieve in the code it ...
Anika's user avatar
  • 1
1 vote
1 answer
1k views

Get metadata information without Record Id in JS LWC and without Apex

I am trying to get the metadata information without passing the record Id. All I want to do is, pass Developer name value and get the specific metadata record details in LWC. Here's an example from ...
Praveen Behera's user avatar
3 votes
2 answers
368 views

Problem with PlatformEventSubscriberConfig user change being ignored

The context here is at normal runtime not in Apex tests as discussed here Is there a way to force a Platform Event Trigger to honor the PlatformEventSubscriberConfig in unit tests?. I'm using this ...
Keith C's user avatar
  • 135k
6 votes
3 answers
279 views

Is there a more effective format for permissionsets?

Working source first, permission sets and profiles have a low "signal to noise" ratio where the signal is the content of the XML elements and the noise is the element layout and the elements ...
Keith C's user avatar
  • 135k
2 votes
1 answer
572 views

Wave Dashboard can't be retrieved - CLI error is not understandable

We are trying to retrieve WaveDashboard components with the sfdx cli. The response from the CLI when using sfdx force:source:retrieve -m WaveDashboard is the following: { "status":0, &...
Christian Menzinger's user avatar
0 votes
1 answer
204 views

Named Credentials create APIs missing Label and Name values?

I'm looking at these three pieces of documentation: The ConnectApi.NamedCredentials class and specifically the createCredentials method The ConnectApi.CredentialInput class that defines the argument ...
Keith C's user avatar
  • 135k
1 vote
1 answer
49 views

Custom metadata types clever trigger possibility

Is there any way to cause a triggering event on custom metadata types? I know there is this idea, which is not implemented. I have a use case where I need a country list stored (can create custom MDT) ...
SEuser's user avatar
  • 1,835
0 votes
1 answer
115 views

Adding a value to a picklist field of an entity in an org via apex

All, I am trying to add a value to a picklist field of an entity (i.e. Document Attachment Status of Care Request Extension ) via apex class in my org only. I tried following approaches but those are ...
Vishwajeet Singh Bhadoria's user avatar
-1 votes
1 answer
187 views

MetadataService API custom field label update

Recently I am building a side project myself to allow user mass update custom fields label. Currently, you can only do that one at a time. The POC looks good, I am able to achieve that with text and ...
Wayne Ni's user avatar
  • 600
0 votes
1 answer
92 views

Where in the SFDX tree do translations (changed labels) for actions like LoginToNetworkAsUser go?

These are Digital Experience related buttons that can appear on the Contact record. The buttons are normally labelled: LoginToNetworkAsUser has label "Login to Experience as User" ...
Keith C's user avatar
  • 135k
0 votes
1 answer
359 views

SFDX how to get custom URL as metadata?

I have defined Custom URL as described in documentation https://help.salesforce.com/s/articleView?id=sf.custom_url_add.htm&type=5 When I use that command my site metadata doesn't contains this ...
hsd's user avatar
  • 123
0 votes
0 answers
9 views

How to package a custom picklist value inside Salesforce package [duplicate]

Correct me if I'm wrong but I've read that you are unable to package a custom picklist value inside a Salesforce package. I tried confirming this by creating including the following metadata in the ...
srrc's user avatar
  • 5
1 vote
0 answers
43 views

Incomplete Permission Set Metadata

I am retrieving permission sets using VS Code, but they are incomplete, as they are missing many field permissions. This is weird as the objects are included in the package.xml. Anyone has an idea of ...
Hugo Pereira's user avatar
0 votes
0 answers
361 views

Salesforce CLI is not retrieving permission set metadata

I am trying to retrieve metadata from a sandbox instance to prepare a deployment. Flows, Custom Objects, etc. are getting retrieved, but permission sets are not. In my package.xml file, I tried the ...
Mike Henderson's user avatar
0 votes
1 answer
689 views

Visual Studio Code - can we compare Metadata in two orgs

A client is moving away from change sets to Azure Devs Ops. However, for now deployments are done using change sets, The org size is small, and currently no custom code, only config - custom fields, ...
GroundToCloud's user avatar
0 votes
1 answer
318 views

Is there a way to update Case Assignment Rules in bulk?

I'm working with an organisation that has 200+ Case Assignment rules and we have to update all of them to add a new criteria. It's going to be a bit of a pain-staking task to update each one ...
JustinF's user avatar
  • 403
0 votes
1 answer
345 views

How to pull in metadata for Standard Picklist Value Sets

What is the metadata that controls the ability to read and create custom values for a Standard Picklist such as StageName from the API. Use case: As an app user, I would like to pull in all StageName ...
andrew's user avatar
  • 149

1
2 3 4 5
18