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
0answers
23 views

IDE Retrieve: Picklist with both Active/Inactive Values [duplicate]

Hopefully a quick question - I have a field which has over 100 inactive picklist values on it which all need to be activated. I'd like to do this via the IDE if possible, but I haven't pulled through ...
2
votes
1answer
251 views

Is Muting Permission Set retrievable through Metadata API?

I created a Permission Set Group with one Muting Permission Set and was able to retrieve the metadata fine (using source:retrieve -m). However the metadata seems to only contain the name of the ...
1
vote
1answer
415 views

“Invalid literal value for picklist:” Error when deploying WorkflowFieldUpdate via ANT

Workflow Field Update is failing to deploy/validate due to the following error: Invalid literal value for picklist:<yourPicklistValue> What causes this?
8
votes
0answers
372 views

How to make sure Organization-Wide Default Sharing Update is complete via an API

We're performing automated testing on scratch orgs and we want to change Organization-Wide Default Sharing for some objects. Doing so via the UI or via sfdx force:mdapi:deploy causes sharing rules ...
1
vote
1answer
326 views

Custom field reference problem in profileSearchLayouts metadata

In a sandbox I've created a custom object with some fields. In Lightning, I've created some Search Layouts for different community profiles. I've noticed that the metadata looks like this: <...
1
vote
1answer
30 views

Is Metadata.CustomMetadata and Metadata.Operations available in Essentials and/or Professional edition?

I can't really find much on the subject - is Metadata.Operations and Metadata.CustomMetadata available in Salesforce Professional and/or Essentials? I know that simply selecting metadata like so [...
1
vote
0answers
28 views

Add design attributes dynamically with add button

In many standard LWC components, I have seen design attributes can be added dynamically with a + Add button. See the screenshot below. Can we achieve the same thing for custom components?
1
vote
1answer
123 views

Listview metadata import

Is there a way to import the salesforce metadata back into salesforce? I would to export export lead list view metadata change the sobject from lead to account and load it back. I can retrieve it ...
0
votes
2answers
68 views

Pushing all of Salesforce metadata into VCS [closed]

How do you begin to pull all the metadata of Salesforce Production Org so that everything could be tracked in a Version Control System.How do I create that complete package.xml which will pull ...
2
votes
1answer
315 views

Where is a File's “Customer Access” status located?

Background (This question is a more specified version of ytiq's question File "Customer Access" Permissions) Salesforce Lightning now requires that a file have the "Customer Access" toggle set to "...
1
vote
1answer
54 views

How to Remove Managed Package References in Profile and Permission Set Metadata

One of the most time-consuming components of migrating an org to a new server is dealing with managed package references in permission sets and profiles. There can be hundreds or thousands of ...
2
votes
2answers
125 views

How to Archive All Metadata

A project I'm working on is winding down but may be revived again in two or three years. I need to archive all of the project metadata, including apex, lightning components, workflow rules, process ...
2
votes
2answers
145 views

looking to query the sfdc metadata and determine if there are any workflows, validation rules etc that are specifying a “null” record type

There is a requirement where we need to know if there are any workflows, validation rules, code, process builders, etc that are specifying a "null" record type for any of the object in the org. We ...
1
vote
0answers
80 views

About EnableLicensing metadata for object

I want to know what does property 'enableLicensing' do for the object I am unable to find it on release notes and other salesforce communities.
0
votes
0answers
58 views

Getting null values when retrieving Flows via Apex Metadata API

When attempting to retrieve Flow-specific data via the Apex Metadata API each value in the key-value pairs is null. Here is the code: private static void getFlowMetadata(Double apiVersion, ...
2
votes
1answer
206 views

How to get compactLayouts through apex Metadata API

I am trying to get compact layouts using metatadataapi. I am using https://github.com/financialforcedev/apex-mdapi/blob/master/apex-mdapi/src/classes/MetadataServiceExamples.cls this repo to get ...
1
vote
0answers
122 views

Add Tag for Open Graph in Salesforce Community

I have a dynamic page in a community and I'm adding the tags to share on social networks: When I use the Facebook debugger, it doesn't show me the image, title and description of the page because it ...
2
votes
1answer
330 views

How to fetch Marketing cloud DataExtention Metadata using API?

How can we fetch the properties of a Marketing cloud Data Extention using it's API. For Example :- there is a Data extention named "ABC" and having feilds(properties) like name(String), age(integer), ...
-2
votes
1answer
66 views

How I can retrieve DeployOptions with VS Code?

How i can retrieve DeployOptions metadata with VS Code and edit it? Or How I can deploy a class to Production without running any tests?
3
votes
1answer
294 views

Metadata Equivalent of the System Permission “Connect Org to Customer 360 Data Manager”

I'm currently experiencing the error: "You may not modify the permission Connect Org to Customer 360 Data Manager while editing a Standard Profile". I've checked in the destination org ...
0
votes
1answer
72 views

Retrieve a pre-existing big object via metadata in order to add new fields

Goal Retrieve a pre-existing big object in salesforce. Add new Fields to the metadata and deploy it back to the same org Question Can this be done via the workbenches retrieve tool? Steps Taken so ...
0
votes
1answer
83 views

Find Report Type Id using Metadata API

I’ve been trying to find out if it is possible to get the id of a report type and everything I’ve found so far points to this doc: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/...
0
votes
1answer
63 views

InsurancePolicyParticipant Role, Financial Services Cloud StandardValueSet Naming

I am attempting to pull the StandardValueSet for a multi-value picklist in Financial Services Cloud: InsurancePolicyParticipant.Role. StandardValueSet only supports specific <member></member&...
8
votes
1answer
310 views

Is it possible to programmatically change connectedApp settings in production?

Background: I have a requirement to make it so that an SFDC connected app defaults/is super easy to set to Admin Users are Pre-authorized instead of All users may self-authorize. This setting is ...
2
votes
0answers
18 views

Getting “Not available for deploy for this organization” when creating a package version with translations. Is there a particular reason? [duplicate]

I'm getting the following error running the command to create a new version of my package. In this version I just added the translations for Brazilian Portuguese. ERROR running force:package:...
1
vote
2answers
83 views

Sandbox metadata .zip file is size exceed the size limit in Intellij

I'm trying to load the metadata of a sandbox org into Intellij using illuminated cloud but the operation took too much time and fail at the end, and the following error message is displayed :
0
votes
1answer
97 views

Can we edit Mobile App Salesforce Navigation through code / callouts to Metadata?

I have read this Trailhead lesson: https://trailhead.salesforce.com/en/content/learn/modules/salesforce1_mobile_app/salesforce1_mobile_app_navigation (Customize the Mobile Only Navigation Menu). Now ...
1
vote
0answers
92 views

Unable to deploy List of Metadata fields to Layout by apex

When i deploy Layout with 1 field everything works fine whereas when i deploy fields as list, not even single field is showing in the Layout. Below is the code i am using for field creation, then ...
0
votes
1answer
67 views

Where to find list of standard metadata types supported?

Where to find list of custom metadata types to deploy/retrieve that are supported? For example: CustomObject
1
vote
1answer
124 views

Retrieving StandardValueSet member WorkOrderPriority returns WorkOrderLineItemPriority

I'm struggling with retrieving standard picklist Priority from the WorkOrder object. I'm trying to determine if I'm doing something massively wrong, or if there is a bug in the metadata API. I have ...
0
votes
1answer
65 views

Session Setting in Profile through metadata

Is this possible to update session-setting in profile using metadata deployment i.e through package.xml.
0
votes
1answer
335 views

Searching Salesforce metadata using Visual Studio Code

Is it possible to do key word metadata search using the Visual Studio Code Extensions similarly to Force IDE with Eclipse?
0
votes
1answer
769 views

Lightning Usage/Adoption Reports and Metrics (e.g. most viewed pages, switches to Classic, etc.)

Salesforce's native "Lightning Usage App" app (Summer '18) includes several reports with metrics around page views, load times, mobile activity, etc. I find the "Most Viewed Pages" usage report below ...
3
votes
2answers
864 views

SOQL query of MetadataComponentDependency: “Dependency API is not enabled”

I'm trying out the Dependency API (Winter '20 beta release) to help me draw package boundaries. I ran a test query from the Dev Console using the Tooling API but immediately hit the error [object ...
1
vote
3answers
472 views

“lightning__RecordPage is not a flow related target” while saving a LWC that is used in a flow?

I'm trying to embed a LWC into a screen flow, but when I save the following meta-xml file, I get the "lightning__RecordPage is not a flow related target" error: <?xml version="1.0" encoding="UTF-8"...
0
votes
2answers
411 views

Packaging changes to Standard Picklist Field Values

I'm trying to package changes (added Received) to the Status picklist field on the Order object. In the package.xml I have added the following: <types> <members>OrderStatus</...
1
vote
1answer
87 views

Giving custom field edit access to System Administrator

I recently transferred a bunch of metadata from one Salesforce Organization Instance to another. To do this, I created a package that contained all the custom objects, web components, apex classes, ...
-2
votes
1answer
517 views

Need to add new picklist values to the existing custom picklist field using apex? [duplicate]

Can anyone suggest me how to add new value to the existing custom picklist using apex?
1
vote
1answer
596 views

SFDX: Entities not supported on package version creation

I'm trying to create a new package version for my SFDX project. As usual, I'm executing the following command: sfdx force:package:version:create --package MyPackage --installationkey abcdefg123456 --...
2
votes
0answers
258 views

SFDX Package lookup filter deployment issue

I am trying to create an unmanaged package which has one custom object with lookup filter on a master detail field. <fullName>Contact__c</fullName> <externalId>false</externalId&...
0
votes
1answer
324 views

Download all Apex classes

I would like to set up a daily backup of all the Apex classes and triggers. Is there any way this can be done using the cli (sfdx)? If not, are there any other ways? The idea is to write a script ...
4
votes
2answers
1k views

How can I retrieve email templates from a sandbox using the Salesforce CLI?

I tried to use the force:source:retrieve command with the -m parameter as EmailTemplate but it doesn't retrieve the email templates in my connected sandbox. How can I retrieve the email templates?
1
vote
0answers
39 views

What feature do I need to enable to see Question-Question Layout or Reply-Reply Layout?

I'm having a bit of trouble recreating this and I'm not sure where to look. One of the orgs I performed the metadata API retrieve on has a couple layouts called Reply-Reply Layout.layout and Question-...
0
votes
1answer
33 views

What is the API name of system permission for analytics?

What is the API name of the system permission View Analytics on Communities pages? This system permission is not getting retrieved from my org.
0
votes
2answers
283 views

Error while deploying new Public Group using ANT

I'm getting the following error while deploying into my Sandboxes using ANT: 2019-09-19T15:15:28.4944305Z All Component Failures: 2019-09-19T15:15:28.4945450Z 1. groups/Service_Desk_Users.group -- ...
2
votes
2answers
128 views

Find out programmatically if a field can be tracked

I've grappled with this one for a long time, and I am almost sure it's a gap in the platform. The problem I have is that I need a way to find out all the fields that can be tracked. That is to say, ...
2
votes
0answers
90 views

Why Salesforce thinks I'm deploying a certain sharing model, while the metadata tells another story?

I have the account and contact object metadata files with the following sharing types: Account <sharingModel>ReadWrite</sharingModel> Contact <sharingModel>ControlledByParent</...
0
votes
1answer
155 views

Update OWD using metadata for custom objects

Requirement- I have many custom object whose OWD I need to change.Almost 50 managed package Objects are there which i need to consider .Is this possible to do it by metadata (package) or what is the ...
0
votes
1answer
59 views

How can I update a parent record by comparing two date fields on parent and child record in Salesforce?

I have two objects namely Account Record and Purchase Record. My scenario is when I create a new Purchase record, it should check Purchase record field (Purchase.LastSODate) and update the Account ...
2
votes
1answer
3k views

Visual Studio Code does not pull Standard Objects

I have run SFDX: Create Project with Manifest and then successfully ran SFDX: Authorize an Org to connect it with my sandbox. Here is a part of my package.xml <types> <members>*</...

1 2
3
4 5
15