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
1 answer
18 views

Is pushing all changes on one branch on Git a great idea?

We didn't use much Git during development and we created multiple functionalities. Is pushing all changes on one branch a great idea or should we create one branch for every feature? Advantages: we ...
user avatar
0 votes
1 answer
21 views

Error while generating apex classes using Metadata WSDL

I tried using the already generated and modified metadata service class (https://github.com/financialforcedev/apex-mdapi/blob/master/apex-mdapi/src/classes/MetadataService.cls) This works for me, But ...
user avatar
0 votes
0 answers
17 views

In this code, how can I get a list of fields that were created and modified by today?

public class demo { public static void getSOjectsWithFields(){ Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe(); Set<String> standardObjects = new Set<...
user avatar
  • 1
1 vote
0 answers
32 views

Custom SObject is locked with "Admin operation is in progress" after deployment of first portion of metadata and when trying to deploy next one

Our project contains about 30,000 of SF artifacts. Due to the limitation in 10,000 artifacts per deployment bundle, we've split our deployment into chunks to fit into mentioned restrictions, i.e. ...
user avatar
  • 2,713
0 votes
0 answers
39 views

Metadata Types whose components can be a lot

As part of our Metadata related product, we are trying to re-design our apis to handle metadata list efficiently, especially considering some large enterprise customers. As part of that exercise, we ...
user avatar
  • 1,424
0 votes
2 answers
50 views

Salesforce Data Dictionary Selective Standard + Custom Fields

I was tasked with creating a Data Dictionary to document fields and objects in my Salesforce Org. The dictionary would be a reference point to all teams that would be used to rationalize the existing ...
user avatar
  • 1,204
0 votes
1 answer
9 views

what is the metadata xml tag for Service Presence Statuses Access in salesforce?

I could not get this tag anywhere ? Any idea? I see this link https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_presenceuserconfig.htm but i am trying to map those staus ...
user avatar
  • 1,634
1 vote
1 answer
22 views

Retrieve of Custom Field having __hd (history trending) files not happening through Metadata API

I recently enabled Tracking History for 3 fields inside the Case object. Even on the workbench in the metadata section of Custom Field, I can see a Case__hd folder where all the fields which are set ...
user avatar
1 vote
1 answer
31 views

Source Format and decomposed files of object translation

Sfdx decomposes objectTranslation metadata files into multiple sub-files as highlighted here. That page mentions that metadata format file is split into three files. <field_name>....
user avatar
  • 1,424
0 votes
0 answers
23 views

How can I set the Field-Level Security of a field that is hidden from the admin?

In my organization, some objects were created but hidden for the System Admin profile. Doing the manual process is impossible due to the amount of fields that are hidden. So I'm trying to make a ...
user avatar
0 votes
1 answer
17 views

Entity of type 'StandardValueSet' named 'ProviderType' cannot be found - Health Cloud

I have added some custom picklist values in the ProviderType field (Healthcare Provider object) which is part of the Health Cloud package. I was not able to retrieve the metadata using ...
user avatar
  • 61
0 votes
1 answer
36 views

How to get Metadata for Lightning Email Templates?

Looking to get Metadata for lightning email templates. Here is what I have tried: Retrieving from source the following package.xml: <?xml version="1.0" encoding="UTF-8" ...
user avatar
  • 1,808
0 votes
1 answer
28 views

Merge picklist value for a record type into metadata API

Hello, I work on a project with visual studio code (source format) and we use Bitbucket to stock metadata (metadata api format via Ant migration tool). I added a picklist value for a specific record ...
user avatar
  • 615
0 votes
0 answers
26 views

Unable to deploy metadata type

I am working on a project where I need to deploy the zip file back to the production org which I got after the retrieve() call. Things that I tried:- Firstly, I tried to deploy the complete zip file ...
user avatar
2 votes
1 answer
35 views

Custom MetaData creation using apex for a nameSpacedOrg

This Is the Error I am getting {"status":500,"body":{"message":"An internal server error has occurred\nError ID: 1020912311-169956 (-524102090)"},"headers&...
user avatar
2 votes
0 answers
33 views

Can you Point Targeted Prompts at Buttons Within a Component?

We're currently trying to set up our In-App Guidance for when users first log into our app. Ideally, we wanted to use Targeted Prompts to point to the exact buttons that users would need to interact ...
user avatar
1 vote
0 answers
30 views

Web service callout failed error when trying to update duplicate rule

I am using apex-mdapi (https://github.com/financialforcedev/apex-mdapi) to update the duplicate rules from metadata API. While I am trying to read the metadata, I am not able to update the metadata (...
user avatar
  • 31
0 votes
1 answer
24 views

Proper Use of EntityDefinition, FieldDefinition objects' DeveloperName, DurableId, and QualifiedApiName fields

Please help me understand the SF documentation and the proper use of these fields, in terms of accurately identifying an instance of an EntityDefinition or FieldDefinition object. The use of the word &...
user avatar
  • 105
0 votes
1 answer
41 views

How to get all MetadataComponentDependency records for Contact object

I'm trying to use the Tooling APi to get the 'Where is this used?' data for all Contact custom fields, but I dont know how to filter on only custom fields for the Contact object, I have this so far: ...
user avatar
  • 17
-1 votes
1 answer
99 views

How can I access Custom Metadata objects without having to hard code in Apex? [closed]

I hope you all agree that hard coding object names is not scalable or maintainable. I would like to lookup the field based on a string input received from the user. Is there any way to do this using ...
user avatar
  • 35
0 votes
0 answers
25 views

SFDX pull clears out object's metadata file?

I am having a strange problem with SFDX. I've been able to create scratch orgs and push my metadata to them, but when I create a new field on an object and do sfdx force:source:pull to retrieve the ...
user avatar
0 votes
0 answers
22 views

How to target Enhanced Landing Page Builder in LWC metadata?

How is it possible to target the new Pardot's enhanced landing page builder in an LWC component metadata? All of the below targets work, but none of them makes it visible for the landing page builder. ...
user avatar
  • 1
0 votes
0 answers
35 views

How to find logic that creates a record

I have duplicate records being created randomly in my org. Is there a way to trace down where all logic is occurring that is creating these records? Something like "Where used" but at the ...
user avatar
0 votes
1 answer
87 views

How to pull FieldPermission & ClassAcces from an Org without SourceTracking enabled

I recently started a project, which has a OLD Sandbox, where development was going on, now we need to start using GIT, which is causing huge problem, because we are not able to pull FieldPermissions &...
user avatar
1 vote
0 answers
27 views

Metadata related to RecordList Component in Experience Builder

Where can I track metadata related to Show list search header property of record list component. I unchecked the field and retrieved experience bundle in VS Code editor but still in recordList.json ...
user avatar
1 vote
0 answers
17 views

Error Uninstalling Our Managed Package - ManagedContentFolderDefinition

Had a Support case open for 2 weeks now moving too slowly. Support pointed me to Dashboards and Reports as problem but that's a similar but different error and object. When trying to uninstall our own ...
user avatar
  • 1,436
0 votes
1 answer
66 views

Standard Filters for Report

I've been doing some work on gathering info from a report using its metadata in apex. In this picture is basically what I want to extract: Currently, I am confused as to why my method for getting the ...
user avatar
  • 53
7 votes
1 answer
146 views

What is the best practice regarding organizing Apex code

I am just curious of what is the best practice, it seems that if I create folders in force-app/main/default/classes and put my classes there everything seems to work fine. Is this in any manner bad or ...
user avatar
1 vote
1 answer
464 views

How to get a property from file.js-meta.xml (which is in LWC) in the Apex using page layout

I need to pass a property that I will write (I think it can be called custom) from js-meta.xml a file in the Apex handler class. The question is how to read/receive it in the Apex using page layout (...
user avatar
3 votes
1 answer
107 views

How do I set "enableHistory" to "true" on a managed object in a scratch org?

I'm trying to run the following code: cci task run deploy --path force-app\main\default\objects\ExpensivePackage__Their_Custom_Object__c --org my_scratch_org_alias Against an ...
user avatar
  • 1,129
0 votes
0 answers
46 views

Ways to upload code and other metadata to Production

What are the best options to deploy metadata from Sandbox to Production? Our installation consists of many installed managed packages, custom objects, fields and a lot of Apex code. We had used ...
user avatar
2 votes
1 answer
83 views

<deprecated>false</deprecated> Where is it documented, Where does it come from?

I notice that the metadata of custom objects (fields, sobjects) that I retrieve from my Dev org using the Org Browser (VS Code) have a <deprecated>false</deprecated> element in them. The ...
user avatar
  • 163
0 votes
1 answer
52 views

Migrating metadata to a brand new org

I'm working on migrating metadata and data from one org to a clean brand new org. The purpose for this migration is because we are moving from unlimited to enterprise edition and making this change ...
user avatar
  • 2,325
0 votes
0 answers
47 views

reading Managed Packages via MetadataApi

is it possible to read infromation about sObjects that are from managed packages? I am using MetadataService from this git. Class I am very eager to use this method from class above, but is it even ...
user avatar
2 votes
0 answers
67 views

2gp: Problem with adding custom fields to Territory2 object via DX Unpackaged Metadata feature when creating package version

We are developing 2gp which heavily uses Enterprise Territory Management feature. And as part of post install configuration subscribers should manually create some custom fields with predefined names ...
user avatar
  • 2,713
0 votes
1 answer
51 views

Move Production MetaData to Scratch Org

I am taking my first attempt at walking through 2GP. I have a production org (with no data) that I want to package and put on the AppExchange. I have followed these instructions: https://developer....
user avatar
  • 3,167
-2 votes
1 answer
139 views

Where default flexi page assignment for a custom object is stored? [duplicate]

I need to automate assignment of default flexi page for both Desktop or Mobile experience. However, I am not sure how can I do that. Where default flexi page assignment for a custom object is stored ...
user avatar
  • 13.2k
0 votes
1 answer
76 views

How to skip files while refreshing full copy sandbox?

Not having a chance to exercise on production I need to recommend our administrator steps to initiate full copy sandbox refresh process. We would like to not to copy files from production. Is there a ...
user avatar
  • 335
0 votes
1 answer
99 views

How to get list of fullNames of remote site settings using metadata api

Is there a way to list all full names of remote site settings in an org dynamically ?
user avatar
0 votes
1 answer
81 views

Modify the layout of Financial Service Cloud components in an installed package

I would like to modify the layout of a Financial Account and persist the change in a managed package, but, as I have seen one cannot just pull the layout locally and then use it when creating a ...
user avatar
0 votes
0 answers
23 views

Retrieved modified metadata from production instance

I am trying to migrate a project which was developed according to the change set development model to the org based development model. Is there a simple way to know what are all the modified metadata ...
user avatar
  • 1,612
0 votes
1 answer
71 views

-metadata.xml Salesforce Metadata Retrieve and Deploy

we have a problem with to deploy a package, the problem is the next We was retrieve the metadata from Workbrench Tools with to package.xml (Example: Profile) in this part we saw that file name of ...
user avatar
0 votes
1 answer
364 views

SFDX: Is it possible to retrieve and deploy Lead record type assignments for the Salutation standard value set?

I made some changes in the Salutation standard value set which I'd like to move across Sandboxes. For the picklist itself it's easy as the Salutation StandardValueSet is possible to retrieve via the ...
user avatar
4 votes
1 answer
346 views

SFDX: How to retrieve the active, but not the newest version of a Flow?

While working on a Flow implementation, one can create multiple versions of it. Let's say I have my first release ready, Flow's name is "TestFlow". I'm retrieving it with the following ...
user avatar
0 votes
0 answers
30 views

How can I remove or replace literal SF IDs generated in report metadata?

I've created a new report based on a custom report type that includes a related field via lookup. The report works great, but the report metadata contains a literal SF ID which makes deployments fail ...
user avatar
  • 183
0 votes
1 answer
254 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 ...
user avatar
0 votes
2 answers
72 views

Salesforce Backup Process

I would like to be informed about Salesforce Backup Process (Security Management). I would like to know more about the Standard Recovery Process if any. How often is the Salesforce backup taken? ...
user avatar
1 vote
0 answers
22 views

Is it possible to create StandardValueSetTranslation or GlobalValueSetTranslation in Apex?

I've generated apex metadata.service.cls (sth. like this: https://github.com/financialforcedev/apex-mdapi/blob/master/apex-mdapi/src/classes/MetadataService.cls) and now I'm working on REST service ...
user avatar
0 votes
1 answer
153 views

Change set - What's deployed with my object

I have a question regarding change set: I need to deploy a standard object using change set and I was wondering what gets deployed if I just include my object in my change set, I know that when we use ...
user avatar
0 votes
1 answer
200 views

Get image by Content Key added by the User, using ContentReference in code's metadata

I'm new to Salesforce and I'm stuck with showing an imaged added by ContentReference, when adding the image in the Experience Builder it returns a Content Key like this "...
user avatar

1
2 3 4 5
16