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
0
votes
1answer
15 views

What's the best way to pull all the Metadata types from the Salesforce?

I have used describeMetadata() call to fetch the xml names but it's showing only few out of what we have in the Metadata coverage url. I was wondering if there is a way to pull all the Metadata types ...
0
votes
0answers
24 views

Using Layout Class from Metadata space on Case page layout

I want to use Layout class properties on Case object to retrieve a Case Page Layout and build a lightning component following the tutorial in https://metillium.com/2018/04/collapsible-section-page-...
0
votes
1answer
34 views

How to get references(where the field is used) of a custom field in salesforce via API or Tooling API

I want to find the references of a custom field i.e. where is the field used e.g. Layouts, Apex Classes, etc. via the AP/Tooling API. There is an option on UI in professional salesforce orgs called ...
0
votes
1answer
13 views

how to specify rightvalue as null for flexipage UiFormulaCriterion

How can I pass null value at right side of a UiFormulaCriterion for a flexi page visibility rule criteria. Here is the link for docs - https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/...
1
vote
1answer
29 views

convert existing git repo to sfdx project

I have an existing git repo with Salesforce metadata in it that I've been using for the last couple years. It's not a sfdx project, it's just what is returned when using the metadata api. I'd like to ...
0
votes
1answer
34 views

Query or extract attachment metadata in bulk

Is it possible to query or extract the metadata/document properties from attachments in bulk? Previously I have been able to get around this by using the object IDs to bulk download the files and then ...
0
votes
0answers
35 views

Profile Metadata Missing

I am retrieving Profiles and custom fields with Package.xml, But there are fields permission missing. *<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <...
0
votes
1answer
25 views

Can't retrieve EmailTemplate or Folder metadata types via SFDX

I have classic email templates in Production that I'd like to easily retrieve and deploy into Sandbox via sfdx force:source:retrieve and sfdx force:source:deploy commands. I've tried sfdx force:source:...
0
votes
1answer
25 views

getListUi for metadata in LWC

I need to fetch all records from metadata. But I am facing error like below. yc {status: 404, body: {…}, headers: {…}} body: errorCode: "NOT_FOUND" message: "The requested resource does ...
0
votes
1answer
29 views

Retrieving a list of all metadata types

I am trying to get a list of all metadata types in an org to put into a picklist within a lightning component. I know outside of Salesforce you can use the describeMetadata() call to get this ...
2
votes
1answer
32 views

Metadata Location For 'Topic Assignment Rule' aka 'Automatic Topic Assignment'

For a Community, in the Workspace 'Content Management', there's an option for 'Automatic Topic Assignment' that lets you set rules to automatically assign topics to new articles of a specific data ...
1
vote
0answers
27 views

Can I check status of Metadata Deploy using the jobId returned by enqueueDeployment() from Apex? [duplicate]

Metadata.operations.enqueueDeployment() returns a jobId. Is it possible to use this jobId to get the status of the deploy? The callback doesn't help me as I'm working in LWC context; The LWC asks ...
0
votes
1answer
63 views

Validation error while deploying a quick action on Case object

I am deploying a quick action on case object using VS Code but I am getting the below validation error and I am not able to remove this error :- Case.Email_Random_Name Action 0 0 Required fields ...
0
votes
1answer
35 views

How to copy a full sandbox copy to local system for backup Salesforce?

We have full sandbox copy from production and now we want backup of that sandbox and when I go to sandboxes in setup it is not allowing due to limitation of packages what we have. So is it possible to ...
1
vote
0answers
28 views

How to check what components are using standard fields uisng Dependency API?

This is the process I am following to see what components are dependent on CustomField : Account.Foo__c First get Id of custom field: sfdx force:data:soql:query --query="SELECT Id,DeveloperName ...
0
votes
1answer
47 views

Add “New” Button to Metadata Related list

We have some related MetaData objects in Salesforce. However, when I'm on the parent metadata record, I can't add a child record from the related metadata record. I'm thinking the only way I can do ...
2
votes
0answers
66 views

What is fqn attribute in LightningComponentBundle?

What is the fqn attribute in the LightningComponentBundle element? I can't find it documented anywhere. Is this the unique identifier by which Salesforce manages the element? Would that be the ...
0
votes
0answers
9 views

Issue when enabling Social Studio via meta file

When i deploy the SocialCustomerService.settings-meta file into a sandbox, the deploy is successful but when i navigate to Setup->Social Customer Service i see an error as below: any thoughts on ...
0
votes
2answers
21 views

Query Salesforce fields and their type by API

I've just started to use the rest Salesforce API to query Opportunity data. I'm trying via the API to get the Opportunity fields as well as their type. For now, I've been using an API call on a random ...
1
vote
1answer
25 views

Create Metadata Relationship field with Metadata API

Can I create a Metadata Relationship field using the Metadata API? In the snippet below, PosInfo__c is a Metadata Relationship type field. The code executes but the field is not inserted. Creating a ...
0
votes
1answer
48 views

Bulk delete metadata type records using metadata api

I am trying to delete custom metadata type records for CountryMapping__mdt How to define the specific metadata type api name in the destructiveChanges.xml? <?xml version="1.0" encoding=&...
1
vote
1answer
64 views

How to deploy Opportunity Stage picklist using Apache ANT Tool?

How can I deploy the Opportunity Stage picklist of my Sandbox to production? I've retrieved it with ANT but can't deploy it... I've retrieved from the sandbox, changed some text in the description and ...
0
votes
1answer
30 views

Is it viable to version all metadata nowadays?

Before SFDX I only versioned just the code (classes, components, objects, pages, triggers, and sometimes staticresources) in all of my projects and I saw many other projects doing the same. This ...
0
votes
1answer
27 views

How to retrieve Metadata Type component fields?

I am referring to the Metadata Type documentation, for example Custom Object. Is there a way to get all the 'fields' available for the Custom Object (or any other) Metadata Type, for example: ...
0
votes
1answer
22 views

Data Structure to Solution

Current State On Account object, there is a record type Supplier. On the Supplier record are 5 checkboxes . Each of these checkboxes indicate a Product. A supplier may sell a product to an consumer or ...
0
votes
1answer
49 views

Rolling up cross-object formula fields

For example, I want to have a rollup summary field called 'Gross Total' on the Invoice object like this: Rollup (SUM(InvoiceLineItems (Record Type: Original)__r.ListPrice)) However on the Invoice ...
1
vote
1answer
38 views

How to configure RemoteSiteSetting and CsPTrustedSite metadata?

I am creating a Lightning Web Component which calls an external API to show the data on work.com Command Center. I want to distribute this component on AppExchange as a managed app. I found the ...
0
votes
1answer
39 views

Deploy failed because of Metadata.Operation.retrieve

everyone! I have following part of code: When I validate code during deployment I get errors. Errors are - 'System.ListException: List index out of bounds: 0' on line 77. When I try to use this code ...
1
vote
1answer
38 views

Better Way to Remove Unused Customisation

Background A couple of years back, my org (Unlimited Edition) was created and we have some customisation derived (baseline branch) from the parent company org (with the hope that the two orgs can ...
1
vote
2answers
87 views

How would I deploy history tracking for the owner field using ant?

I am using visual studio code to retrieve source from the org and then deploying changes in ant using the package.xml. Is there a way to grab the history field tragging flag for the standard field "...
0
votes
1answer
132 views

LWC UI Object Info API get only particular Field Label

The lightning/uiObjectInfoApi module includes wire adapters to get object metadata and picklist values. getObjectInfo -> Can we fetch only metadata of particular field instead of whole object ...
1
vote
1answer
118 views

Error when attempting to change a relationship from a lookup to a master/detail in sandbox

Cannot add a master/detail relationship because the division and/or owner fields are in use: DatasetData: null What sort of metadata is "DatasetData"? It sounds related to WaveDataset, but I believe ...
0
votes
0answers
15 views

How to create package for an Einstein Search layout based on the profile

Anybody have an idea about how to create a package for an Einstein Search layout based on the profile. I have referred a below URL for package but not getting the expected result. https://developer....
2
votes
0answers
32 views

Objects that don't support custom buttons (WebLinks)

I'm writing code that uses the metadata API to deploy a custom button (WebLink) to all CustomObjects in my Salesforce org. I just list out all objects wit a listMetadata and then do a retrieve and ...
0
votes
0answers
37 views

Package Retrival is not working

We are trying to retrieve the package from Salesforce Developer org While performing the retrieve we are getting errors for the below components. [sf:retrieve] package.xml - Metadata API received ...
2
votes
0answers
19 views

Is there a way to make field level data classification required before creating a new custom field?

End user has stringent policies on data classification and controls. Need to have policies and procedures in place to ensure all fields are reviewed, classified and if highly sensitive, encrypted. ...
1
vote
1answer
51 views

Metadata Api name of “Manage Public Lightning Email Templates”?

As the title says, what is the API name for Manage Public Lightning Email Templates? Although I enabled/disabled it and fetched profile, I do not find any Metadata API name matching this ...
1
vote
1answer
31 views

View list of objects which has any of it's standard button overridden by LC

I have an existing application, which has around 100 objects. My requirement is to check all the objects which have any of their standard button/quick overridden with a lightning component. Doing ...
2
votes
0answers
60 views

Visualforce Page as a PDF File with metadata

Is there a way to render a Visualforce Page as a PDF File with metadata. Ex: Title , Authour, Subject and Keywords. I tried adding meta tags to the VF page and so many other ways. But non of them were ...
0
votes
0answers
17 views

Why Does My Validation Rule Triggers While Installing a Managed Package

We have some strange behaviour with my managed package we developed and now want to install in one of our test orgs. We have the following scenario: We have four diffrent Custom Metadata Types: ...
0
votes
1answer
31 views

Permission Import Leads depends on permission(s): Create Lead, Edit Lead - MetaData Deploy Error

Using workbench to deploy updates to a profile and I am into the following error message: Permission Import Leads depends on permission(s): Create Lead, Edit Lead However, Import Leads ...
0
votes
0answers
31 views

CspTrustedSite created with MetadataAPI can't be retrieved again

For creating a CspTrustedSite the following is done: MetadataService.CspTrustedSite csp = new MetadataService.CspTrustedSite(); csp.fullName = FULL_NAME; csp.isActive = true; csp.endpointUrl = ...
5
votes
0answers
68 views

How can I find the relationship between MetadataComponentId and the expected name for the Metadata API?

I've been using the Dependency API to try to retrieve all dependencies for a given metadata. I would like to get a list of dependencies, and then retrieve these with the Metadata API. Unfortunately, ...
0
votes
1answer
48 views

How to retrieve Field Level Security of a field in a certain profile using manifest package.xml with ampersand & and ~ Profile Name

How to retrieve Field Level Security of a custom field in a certain profile in Opportunity object using manifest package.xml? Searched the net and come up with the manifest xml to retrieve the Field ...
1
vote
1answer
29 views

same object multiple teams

I have a standard object , that is being used by multiple teams . Team A creates some custom fields on it and Team B also creates some fields on the same object . Currently these two teams have ...
0
votes
1answer
30 views

Metadata shown as modified When Pulled from Sandbox

When I retrieve metadata from my sandbox through a package.xml,there are lot of files(Classes, fields, Aura etc) that are shown as modified(M) in my local repository but when I try to check the diff,...
4
votes
1answer
62 views

Determine whether SObject(Entity Definition) can be used in Metadata Relationship field type on Custom Metadata Type

When creating Custom Metadata entries (especially via API) with relationship fields into other objects, you are limited to certain SObjects that can be used. The Custom Metadata implementation guide ...
0
votes
2answers
21 views

Use field from custom metadata type as parameter in SOQL Query

I have created a custom metadata type called 'Geolocation__mdt' with 2 custom fields: Distance__c and Limit__c What I am (unsuccessfully) trying to achieve is to use the values stored in Distance__c ...
3
votes
1answer
55 views

How to best cope with unpackageable metadata (TopicsForObjects) in SFDX

My Managed Package app is using Topics for a packaged Custom Object. I just learned that Topics can not be packaged and therefore even a force:metadata:deploy from scratch to packaging org fails. ...
0
votes
0answers
94 views

Get StageName Picklist Set\Sales Process based on RecordType

I have to create a Kanban view like Lightning component and to do that I need to list out Opportunity Stages based on Record Types. Using MetadataService I am able to to get all the picklist values on ...

1
2 3 4 5
14