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
85 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
99 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
61 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
29 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
215 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
53 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
36 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
102 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 ...
3
votes
0answers
319 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
10 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
29 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
134 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
131 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
33 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
29 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
23 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
114 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
84 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
58 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
43 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
282 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
337 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
131 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
26 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
66 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
52 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 ...
3
votes
0answers
28 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. ...
2
votes
1answer
72 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
83 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
19 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
126 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
33 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
70 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
107 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
45 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
88 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
25 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
60 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
172 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 ...
2
votes
1answer
266 views

Setting API Specific API version of a Flow in metadata API

I have a flow that was declaratively defined and I am attempting to add it to source-control. I am seeing other posts about versioning the flows in CI/VC tools but leaving that aside for now. I am ...
0
votes
1answer
34 views

Community page based off of template page not showing title correctly in LinkedIn

I cannot seem to get the correct Community page title to display when sharing the URL on a LinkedIn post.
0
votes
1answer
35 views

How to import MetaDataAPI to my SalesForce project?

I want to Update Picklist Values in a standard field in my project every X time. in my Apex Classes I was writing that function: I search for this error and figure out that I need to import ...
0
votes
4answers
267 views

How to copy metadata of Partial Sandbox into a new Developer sandbox?

I Have only one license of Partial sandbox. I want to refresh it with Production. Before that I want to copy all the metadata present in the Partial sandbox into New/Existing Developer sandbox. How ...
2
votes
1answer
334 views

Why does VS Code's Org Browser retrieves metadata with different file extensions than Metadata API and what are possible consequences of that?

Let's say I have a Custom Metadata created on my Org: MyCustomMetadata. Downloading its record within Org Browser: Command used: sfdx force:source:retrieve -m CustomMetadata:MyCustomMetadata....
1
vote
2answers
349 views

How to deploy/retrieve ManagedContentType metadata?

I tried to use package.xml in Visual Studio Code, when I retrieve it, it give me the error in the screen shot. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Package xmlns="http://...
2
votes
1answer
305 views

Finding unused Apex Classes with Tooling API and MetadataComponentDependency

Is there a way to SOQL find all Apex Classes (or fields or any other metadata) that are not used/referenced in an org by doing a smart Tooling API SOQL on MetadataComponentDependency? When I run ...
1
vote
0answers
36 views

Objects without layouts on some orgs

Several not long ago created org DO have these objects with layouts: Example: Authorization Form -> Authorization Form Layout, Data Use Legal Basis -> Data Use Legal Basis Layout. However, some orgs ...

1
2
3 4 5
15