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
179 views

How do we edit Meta Tags for ArticleDetail Template pages in Community?

I cannot Add or edit Meta Tags for Article Detail Template pages in Community.This is happening only for Article Detail Template Page.Is there any considerations on this... Edit Meta Tags options ...
0
votes
1answer
140 views

How to get LastModifiedDate of Custom Field or Custom Label by Metadata API in Java?

How to get LastModifiedDate of Custom Field or Custom Label by Metadata API in Java? Edit: I found a link: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/customfield.htm?...
4
votes
1answer
166 views

Which metadata stores custom CSS for a community?

When creating a community, you can override the CSS of a template. Use custom CSS to override the default template and Branding panel styles. We recommend that you use custom CSS sparingly, because ...
4
votes
3answers
1k views

metadata API: howto deploy only what specified in package.xml

I'm using mdapi:deploy. How do I tell it to deploy ONLY the metadata is defined in my package.xml instead of all the metadata files on my local filesystem? Ex package.xml: <?xml version="1.0" ...
1
vote
1answer
42 views

Is it possible to return a CustomMetaData in a @HttpGet?

Is it possible to return a CustomMetaData? I'm getting the error "HttpGet methods do not support return type of InsPackages.Wrapper" when I added "customMetadata" codes on my class. Here's my code: @...
0
votes
1answer
32 views

Can You Utilize and Fill In Values for the Custom Object You had just created Inside your class

I'm new to coding & Salesforce. I'm trying to create a custom object. The code is below. Will I be able to use my custom object 'OrgPackages__c' right under the last line of this code and fill it ...
0
votes
1answer
29 views

Create Metadata Type to Associate PackageLicense & Publisher Objects?

I'm new to Salesforce. I'm trying to retrieve all the packages installed in my org programmatically with the use of Metadata. Now, I have created a custom metadata type and have created few custom ...
1
vote
1answer
259 views

Apex Metadata API retrieve PageLayout assigned to Profile

I know it's possible to retrieve page layout metadata natively from Salesforce however I'm trying to grab the page layout assigned to a particular profile and in order to do that I need to grab the ...
-1
votes
1answer
40 views

Add custom field to change set using Metadata API

I'm wondering if we can add a custom field or any other component to change set using Metadata API?
3
votes
2answers
60 views

Query managed package components (including dependencies) from releasing org

In an org that releases a managed package, the package detail page lists the components in the package (recently added components, previously released components, indirectly added components). Is it ...
2
votes
3answers
830 views

Where is metadata for custom list view on Task?

I have created a custom list view on Task. In Workbench it is displayed under Task within metadata type 'ListView'. When I pull my metadata using API v43 I can't find the xml definition for it ...
0
votes
0answers
323 views

Update Custom Metadata

I am trying to update some custom meta records. There are current 4384 records in the system. And update give me an error of "Collection size 4,384 exceeds maximum size of 1,000." This happens even if ...
1
vote
0answers
229 views

Dynamically fetch Custom Labels in Apex class

I need to dynamically fetch Custom Labels in Apex class, something like Get All Labels where name like 'a%' I see SOQL does not support querying Custom Labels and although I see Metadata API can be ...
0
votes
1answer
424 views

How do I retrieve Country and State Picklist Values (AddressSettings) via API?

How do I get a dependent list of States by Country from Salesforce via API? Our Use Case is: We need dependent Picklists on an integrated 3rd party web platform we intend to pass the returned ...
6
votes
2answers
518 views

How do I enable REST Metadata API?

I am getting this error in Workbench when using the REST explorer: API_DISABLED_FOR_ORG message: The REST Metadata API is not enabled for this Organization. errorCode: API_DISABLED_FOR_ORG INFO: We ...
0
votes
1answer
27 views

External ids in data infrastructure?

I just learned about setting related records with external ids, and I love it. It makes test code much easier to read and write, and it means I have to query less in general. In my ideal world, ...
2
votes
1answer
369 views

How to pull Connected App Settings for Permission Set

I have a permission set that has connected apps assigned, but I am unable to view them when I pull down the metadata. I've tried using MavensMate and ANT. Is there something I'm missing?
0
votes
1answer
75 views

Can I pull down specific ListViews from the metadata API?

I've added this to my package.xml so I get the Account Standard Object metadata and the AMR__c Custom Object metadata: <types> <members>AMR__c</members> <members>...
0
votes
1answer
169 views

Metadata Service Test Class Error [closed]

I'm still new to Metadata Services and I'm writing a test class for it. I tried what I have read on the web but I'm still getting problems on it. Could you please help me please? I'm so stuck on this. ...
2
votes
1answer
105 views

How do you keep production in sync with the VCS when using SFDX?

It's pretty obvious for an Apex Class change - you go through the normal dev cycle and eventually deploy to prod. The change will be in VCS before it hits prod so source control remains the source of ...
1
vote
0answers
46 views

Enabling Notes and Attachment Access in Communities for Scratch Orgs

We create a scratch org with community enabled on it. There is a setting on the community (accessible through Setup > Communities > Communities Settings) where we have to manually check the ...
1
vote
2answers
58 views

What is the minimum set of metadata components from a production Org should I fetch?

I want to set up Git repo for our production org to start version control. I am unsure which metadata components I should fetch into my repo. If I select all components from the Force IDE for ...
1
vote
4answers
911 views

Tool to export salesforce metadata

Can anyone suggest a tool/app to extract the salesforce metadata? I was able to find a tool that only extracts objects and relationships, I need metadata for all salesforce data(workflows, approvals, ...
1
vote
0answers
109 views

Push to clients using Metadata (Assignments By App, Record Type, and Profile)

I'm trying to update Lightning Record Pages with Profiles (Assignments By App, Record Type, and Profile): To get (retrieve) all the details I'm using the following package.xml <?xml version="1.0" ...
1
vote
1answer
42 views

Find Metadata using APEX [closed]

How can I create a VF Page/Lightning Components which shows the list of all the metadata which is created or modified in some specific date range? To elaborate more let's say I have one VF Page in ...
1
vote
1answer
227 views

Salesforce DX profiles show incorrect metadata changes on pull

We have our most up-to-date metadata source in Git. When we create the new scratch org and deploy our code, it deploys correctly and the profiles have the correct access to all of the objects. However,...
1
vote
0answers
22 views

updating flows through metadata api

MetadataService.MetadataPort service = new MetadataService.MetadataPort(); service.SessionHeader = new MetadataService.SessionHeader_element(); service.SessionHeader.sessionId = UserInfo.getSessionId()...
1
vote
2answers
316 views

updating json response salesforce

{ “FirstName” : “Foo”, “LastName” : “Bar”, “Address” : { “city” : “Pune”, “state” : “Maharashtra”, “country” : “India” } } My issues is to fetch the "city" value from the above json ...
0
votes
0answers
138 views

Translate custom metadata into a math operation

EDIT: I am sorry for the poor description. I tried editing it to make it more clear. I have an API that will accept several parameters. At the moment I need to perform a math operation using those ...
2
votes
3answers
103 views

Dependency ApexTrigger

How can I get all objects (with different actions) related to an ApexTrigger? For example: TriggerX ---> Related Objects : Account (insert), CustomObject__c (update) ... So far, I've tested "...
1
vote
1answer
579 views

What is the best way to mass update the field labels of a custom object in Salesforce?

I have a requirement to update the field labels of 200 fields in a custom object and mass delete another 100 fields. what is the most time efficient way to accomplish this? I read a post that said ...
1
vote
2answers
775 views

Can i query a custom metadata type within a loop?

I am new to using custom metadata types. From what I have read so far, it looks like i can make unlimited number of queries to a custom metadata type in an apex transaction. Would that mean that it ...
0
votes
1answer
2k views

How to query metadata in salesforce?

I need to know where the custom field is referred to org and field level security also. Ex: I need to get the profile list, where the field has the permission.
0
votes
2answers
211 views

Using Apex, how can we can we query all the fields and CreatedDate for Account or any other Standard Object?

I need to run the below query for 200 fields changing the field each time and then copy the resulting most recent date.Is there any way to do this quicker than doing it 1 by 1? SELECT name, ...
1
vote
1answer
1k views

Deployment Error caused by duplicate label

at the moment I'm working on a project where Salesforce DX is used. There I have a problem when I try to add the item "Messe" to the Opportunity LeadSource picklist. <standardValue> <...
1
vote
2answers
85 views

How to find all customization in salesforce org?

I inherited one salesforce org and want to find out all customization in the org including all custom objects, custom fields, workflows, classes, triggers etc to find out the extent of customization. ...
1
vote
1answer
59 views

Process Builder Metadata Stuck In Change Set

A few months ago I created an outbound changeset into our production environment. The sandbox was refreshed, and all the work I did in this particular process builder was erased. However, I just ...
3
votes
1answer
191 views

Cannot use Master-Detail type with Salesforce-DX

I seem to be unable to create a custom field of the master-detail type. Because each time I create one and try to push it to another scratch org I get this error message :  Cannot set sharingModel to ...
1
vote
2answers
233 views

With Salesforce REST API sobjects how does one decide which ID is used?

There is documentation on Salesforce website named "Introducing Lightning Platform REST API" and the link is the following: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/...
4
votes
1answer
190 views

Can't pull down the “manage external users” permission metadata for profiles

I want to be able to store the "manage external users" permission for profiles in a repository, but I haven't be able to identify what metadata tag is associated to it. Every time I deploy to an org ...
0
votes
1answer
627 views

How to Activate and deactivate a flow using metadataService?

i want to fetch flows and provide a button to activate and deactivate the flow, i was able to fetch a flow but unable to activate and deactivate it.
0
votes
1answer
171 views

Updating FLS using metadata API through java

I wanted to update FLS for the custom fields in Profile level. @datasert- Thanks for guided me on the right path, I have tried with the code below but after executed the code, changes are not ...
0
votes
1answer
969 views

How to bulk delete custom metadata records

I have custom meta data object(abc__mdt). I want to delete all records at a time. Is there a way to bulk delete records ?
1
vote
2answers
48 views

Variables undeclared with List<MyCustomMetadata__mdt>

When I changed from the code that's commented out to the current code, the fields from the custom metadata records threw "Variable does not exist" errors. Suggestions on how to correct this? Relevant ...
0
votes
1answer
107 views

Error when pushing to existing scratch org

I keep getting the error Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field when pushing to an existing scratch org. After doing some ...
4
votes
1answer
31 views

Validating metadata deployment locally

I'm looking for a paid tool or open source project that validates a zipped package locally before attempting to deploy it to a salesforce sandbox or production environment. By validation I mean to ...
1
vote
1answer
574 views

retrieving private report metadata

using ant to retrieve metadata, it is easy to retrieve report metadata <?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> ...
0
votes
1answer
99 views

Mass renaming custom report type field labels

One of the great things about custom report types is that you can renamed the field labels on the columns. This could be done if say you wanted a CSV export to have column headers that confirm to a ...
1
vote
1answer
25 views

List of metadata elements created and modified

Is there a way to find the list of all metadata elements created and modified on the basis of date or user in a org?
0
votes
1answer
483 views

How to deploy Path : Duplicate RecordType error

I am trying to deploy the path one org to another org, I am getting the error that duplicate record type. In the source org, the path has default "--Master--" record type. What else we need to ...