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
2
votes
2answers
36 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 ...
0
votes
0answers
17 views

Mass Find Obsolete Reports

We recently removed a managed package (Mailchimp) that had been in our org for a number of years. Over the years many different staff members have created reports containing the managed objects that ...
2
votes
2answers
41 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
28 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
38 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
28 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
22 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
67 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
23 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?
1
vote
1answer
141 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 that this is ...
0
votes
1answer
22 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
29 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
23 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&...
3
votes
1answer
75 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
14 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:...
0
votes
1answer
30 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
0answers
33 views

Web service call out not allowed in test class [duplicate]

I'm trying to write a test class for below code, But it throws an error Web service call out not allowed in test class. Please help me to write a test class to below code. By using Test.setmock() I ...
0
votes
1answer
59 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 ...
0
votes
0answers
25 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
32 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
38 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
18 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
56 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
100 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
1answer
217 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 ...
0
votes
1answer
29 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
35 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
30 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
67 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
122 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 --...
0
votes
0answers
29 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
73 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
284 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
35 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
22 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
0answers
21 views

Metadataservice: Delete only Record Type dependency of picklist

I have a requirement to delete only Record type dependency of a picklist value. Suppose, for R1 record type A,B,C were values accessible of A__c custom field. Now I need to delete A from values under ...
0
votes
2answers
62 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
97 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
42 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
47 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
0answers
25 views

Updating Metadata of Standard Objects

Good day! I bumped into a question from here. I was wondering if there is a counterpart for this when it comes to Salesforce Standard Objects? Upon reading the answer, it suggests a library which ...
0
votes
0answers
25 views

Deploy cache partition to org without Platform Cache enabled

I wanted to deploy PlatformCachePartition Metadata to an org without having to enable or buy PlatformCache from Salesforce. The org would not use the PlatformCache just contain the pushed Metadata. Is ...
0
votes
1answer
36 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 ...
0
votes
0answers
66 views

Quick Deploy via ANT Not Working - UNKNOWN_EXCEPTION: invalid parameter value

I am attempting to use the Quick Deploy functionality through the metadata API, using the Ant Migration tool, and it is not working for me. I have setup a Jenkins job that passes the sf.​...
2
votes
1answer
577 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
vote
0answers
16 views

Salesforce Package 2nd generation - PlatformCachePartition - AllocatedCapacity has not been assigned

We have a package (second generation) which has a platform cache partition. The current code of this partition is like: <?xml version="1.0" encoding="UTF-8"?> <PlatformCachePartition xmlns="...
1
vote
0answers
20 views

Creating custom field to via Metadata api, and adding it to layout

I added a field via Metadata Api to the Lead. It is not exposed via API due to the Field Accessibility. Since I am on Professional Edition, I have to control the Accessibility / Field Visibility ...
1
vote
0answers
35 views

Why are readable/editable fields missing from Profile.xml Metadata? Workaround?

I'm trying to build a "no permissions" baseline profile in a sandbox I just spun up from my production org before playing with a new integration (so I can assign permissions in a "least privilege" way)...
0
votes
0answers
54 views

How do I display multiple fieldsets on a vf page using apex:repeat?

I have a custom metadata type with the following fields: Fieldsets referred Object Name I have a requirement in which I need to show these multiple fieldsets on a vf page for that particular object....
1
vote
0answers
36 views

'Sort By' changes dashboard in metadata

I have a dashboard with unchecked 'Use chart settings from report'. I changed the field in Sort By options and can't find these changes in Dachbord metadata. Where can I find 'Sort By' changes in ...