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
12 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
25 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
19 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&...
2
votes
1answer
54 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
12 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
25 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
49 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
19 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
23 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
27 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
17 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
31 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
0answers
21 views

Create fields dynamically in custom metadata type using Apex

Can we create fields in custom metadata type through Apex?
0
votes
1answer
52 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 ...
2
votes
1answer
104 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
16 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
25 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
28 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
49 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
77 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
23 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
54 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
181 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
20 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
51 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
94 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
31 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
35 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
19 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
30 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
58 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
317 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
15 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
19 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
31 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
41 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 ...
1
vote
1answer
42 views

Checking previous metadata deployments

So I'm playing with deploys using the metadata API and I have 2 questions. I noticed that when you deploy using metadata the deploy name in "Deployment Status" is just an Id, can I change the name? I ...
0
votes
1answer
23 views

MetadataService.cls, How can I filter the Metadata List based on the Last Modified Date?

My requirement is that I need to display org metadata components (like Objects, Apex Classes, VF Pages, Record Types, Profiles, Permission Sets, Custom Object, Custom Fields, Custom Label ...etc) on ...
0
votes
1answer
32 views

Restoring sandbox components

We need to refresh our sandbox but have some not deployed components in it (because not fully tested yet). So with force plugin for Eclipse I was able to fetch components from sandbox and now have ...
0
votes
0answers
69 views

Metadata Retrieve issue Salesforce

When i try to access other org metadata item list after authentication getting the following error .. Web service callout failed: WebService returned a SOAP Fault: INVALID_CROSS_REFERENCE_KEY: ...
0
votes
1answer
29 views

Update CustomField via Metadata API without including extraneous updates

as the title says, I'm working on a project to update the Description on the CustomField metadata type via the Metadata API and would like to figure out a way to do this without needing to read the ...
1
vote
1answer
20 views

Method for synchronizing Contacts Fields with Leads Fields Using Metadata

Our org created 20k+ "contact" records in custom objects that was later migrated to the proper Contacts object without using Leads for anything. Over about 6 years many custom Contacts fields were ...
0
votes
1answer
26 views

Is there any way to display list of Metadata Componants which are Last Modified or Created recently?

My requirement is that I need to display org metadata components (like Objects, Apex Classes, VF Pages, Record Types, Profiles, Permission Sets, Custom Object, Custom Fields, Custom Label ...etc) on ...
2
votes
1answer
173 views

Account fields available in default scratch org but not in regular dev org

I am pushing Metadata from a (namespaced) scratch org with that definition { "orgName": "my_DEV", "country": "US", "edition": "Developer", "language": "en_US", "hasSampleData": true, "...
0
votes
3answers
89 views

How can I get the custom object Tooling API Id?

I want to get the custom object id using the custom object's API name. Please tell me the way how to get id. req.setEndpoint(domainUrl+'/services/data/v46.0/tooling/query?q='+ ...