People who code: we want your input. Take the Survey

Questions tagged [metadata-api]

Questions about the Metadata API provided by salesforce. The API that can be used to retrieve, deploy, create, update or delete customization information, such as custom object definitions and page layouts, for your organization. This API is intended for managing customizations and for building tools that can manage the metadata model, not the data itself.

Filter by
Sorted by
Tagged with
1
vote
1answer
134 views

How to create an Identity Provider using the Metadata API

I see all other types like AuthProviders but don't see a way to create an Identity Provider in Salesforce Metadata API.. Is there none?! And why?
-2
votes
0answers
18 views

Dowload salesforce signed certificates using tooling api in salesforce

Is there any way to download salesforce self signed certificate (used while enabling identity provider) using metadata api in apex. I want to integrate salesforce with 3rd party app with sf as ...
0
votes
0answers
40 views

Download salesforce self signed certificate using apex code [closed]

Is there any way to download salesforce self signed certificate (used while enabling identity provider) using metadata api in apex. I want to integrate salesforce with 3rd party app with sf as ...
1
vote
3answers
5k views

How to delete Custom MetaData Records Via Apex?

I am using MetaDataService to create and update Custom Metadata. I want to also delete records created inside Custom Metadata Type. I know there is method available to delete metadata like I am ...
0
votes
0answers
21 views

How to insert a list of States in Salesforce with the Metadata API [duplicate]

Is it possible to insert a list of States in Salesforce with the Metadata API? How? Thank you very much. Additional Question (02-June-2021@12:11CEST): I have retrieved the XML file containing the ...
1
vote
2answers
4k views

Using SFDX to retrieve the report meta data

I need to check if a field is being used in any of the reports in the org. So I created a sandbox environment and created a manifest project in VScode; then authorized the sandbox org and ran the ...
2
votes
1answer
99 views

Lightning App Builder xml retrieve problem summer '21

after the Summer '21 release we have noticed that when we are trying to retrieve a flexipage that contains few lightning-web-component, all of these are removed from the retrieved manifest. This ...
1
vote
1answer
569 views

Community Error When Deploying Via MetadataApi

I created a community in the target org which has the same name as the community in the source org. I retrieved and deployed the metadata from the source org to the target org using Metadata API ...
0
votes
1answer
40 views

Issues deleting a flow version

I am having an issue with the deletion of a flow version. Using standard declarative ways the version will not delete and removing the flow all together gives an internal service error so I have been ...
0
votes
2answers
1k views

Read Timeout error while making an API Inbound call to Salesforce

Getting Read Timeout error while making an API Inbound call to Salesforce. Is it possible to check at Salesforce is receiving connections.
0
votes
1answer
653 views

Unknown type name 'SurveySettings' specified in package.xml

I have retrieved source with a package.xml which includes following segment <types> <members>*</members> <name>Settings</name> </types> <version>...
0
votes
0answers
40 views

Create Apex Trigger / Class using Python [duplicate]

I am trying to automate a few things for Salesforce using Python. I am using OAuth for Rest API for other processes like creating or updating records. I need to figure out how to create Apex Trigger/...
2
votes
1answer
625 views

Is there a way for describing a List View and determining columns within APEX (without metadata service api)?

I've been reviewing the very promising APEX Metadata Namespace in Summer '17 (API v40.0) - Release Notes (Preview) But I'm unable to find any reference for retrieving ListViews of any Object. I'm ...
2
votes
2answers
1k views

create and update custom labels through ToolingAPI

How to create and update Custom Label using tooling API? Is it possible to do it without deployment? Dont want to create and update via Metadata API.
0
votes
0answers
22 views

toggle parameter in lightning record page programmatically

I have a lightning component with some parameters that can be set using the lightning app builder. I want to toggle the read only parameter(highlighted in attached image) programmatically for my ...
1
vote
1answer
1k views

Package Install API - Remote Site Settings

When installing a package using the links it asks the user to confirm the addition of remote site settings. When installing a package via the Metadata API using createMetadata() or the packaging API ...
2
votes
1answer
546 views

how to clone a Profile programmatically?

How can I clone a salesforce Profile? I'd prefer to use Apex or DX/CLI. Our normal process for setting up an Org is to clone standard profiles, and then customize those clones. This probably ...
0
votes
2answers
46 views

Deploying changes to Community/Experience pages

What's the best practice for deploying changes to Experience/Community pages from sandbox to prod? In this case, we've changed some pages in sandbox and meanwhile others have been changed in prod. ...
1
vote
0answers
33 views

ActionId dependency in deploying Page Layouts

I am trying to deploy changes from a a github branch into a Salesforce Sandbox but keep getting the following error(s): Case-ACH Bounce Layout Page Layout 0 0 The ActionId specified was invalid ...
1
vote
0answers
56 views

Update LWC field from future/queuable Apex [duplicate]

I have something here which I thought would be simple but is turning out to be a nightmare. I've created an LWC Setup page where a user can create an Account (it's nothing more than an input field and ...
0
votes
0answers
63 views

LWC not showing on App Page automatically

I have created 1 HelloWorld component and add it to a App Page, Now when I deploy it to another org as per below xml <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <...
1
vote
1answer
32 views

query and update time based actions

I have a requirement to update the time trigger condition in a active time based workflow rule Right now there are more than 1000 records related to it as i can see in the monitoring secttion, but i ...
3
votes
1answer
627 views

sfdx is removing metadata from permission sets when changing read/write to false

I updated some permissions sets in my package and change some field-level security access to read/write false for some objects. When I run sfdx force:source:pull instead of marking the XML as <...
0
votes
1answer
729 views

Metadata API Accessing parentRole for a Role

I'm trying to add roles to Stash for my company. I created a package.xml (listed below) to get the roles. According to Metadata API Developer Guide: Role, there is a parentRole field which I'm not ...
0
votes
1answer
641 views

How to retreive an email template stored in Public Email Templates using metadata?

I created a email template directly in the email tab of contact and saved it as a template in Public Email Templates folder. How can I retreive this email template stored in My templates -> Public ...
3
votes
2answers
323 views

Can we still use SiteDotCom metadata after enabling ExperienceBundle?

We've activated ExperienceBundle metadata for communities. However, there's a known issue with it that is preventing us from actually being able to deploy using that metadata. In order to avoid having ...
0
votes
0answers
85 views

How to assign record type to dependent picklist(from global picklist) in APEX

I have global picklist 'Country' In my Address object i have picklist 'Country' which was created as a dependent picklist from globalpicklist. Can we assign existing custom record type to this ...
9
votes
0answers
6k views

SFDX Deploy: Global Value Set Cannot Be Resolved

I am trying to use DX to deploy to a sandbox. It has been a major hassle. At this point the only error I get is this: Global value set 'External_Evaluation_Required__c' in record type 'Exception' ...
0
votes
0answers
24 views

Not able to retrieve installed package 'ARH' using Metadata API

I installed a free managed package "Any Record Hierarchy" in my developer org and trying to retrieve it using metadata API. I am getting the name of package from describe call and ...
0
votes
0answers
19 views

Unable to call readMetadata, due to error message "unable to find end tag at: START_TAG seen

I'm trying to collect the setting from the salesforce account. I'm using metadata api sdk to collect these metadata. following is the snippet for readMetadata ConnectorConfig config = new ...
0
votes
1answer
2k views

Is it possible to retrieve Profiles using Salesforce CLI?

I've created a custom profile in a scratch org using Salesforce CLI. The thing is that by using either sfdx force:mdapi:retrieve or sfdx force:source:pull commands, only the Admin profile is ...
0
votes
1answer
32 views

Is it possible to query/find reports using a particular report type?

I have a list of report types and I need to find out which reports in my org are using any of those report types. Is there a way to do so instead of manually visiting each report and checking its ...
0
votes
1answer
34 views

Update Custom Picklist Values Translations via MetadataService

I have a piece of code that allows me to update custom picklist field values: public static TM_EComUtils.genericResponse addPicklistValuesViaMetadata(String fieldAPI, String sObjectAPI, List<String&...
0
votes
0answers
34 views

Is there a way to write an external script on devops platform(Azure devops) to update named credentials to original values post sandbox refresh?

To revert named credentials back to original values ,As per documentation we can use Apex Wrapper Salesforce Metadata API for updating Named Credentials post sandbox refresh . But Metadata related ...
0
votes
1answer
622 views

Deleting all public groups from Org

We have an utility which imports all data from one org to another, this results in creating public groups every time import operation is carried out. Is there any way we can perform delete operation ...
0
votes
1answer
43 views

How do I fix the error when adding Custom Settings?

My task is to create an LWC component and then add it to a managed package. I was told that to store the API and the key to it, you should use Custom Settings and Custom Metadata Types. No more ...
1
vote
0answers
52 views

When a WaveDataFlow is scheduled - where the information is stored? Which metadata type is referred to view

We have a job scheduled WaveDataFlow to run every 2hours in our Production org. And some user has modified the scheduled job to run every 24hrs instead of 2h. We have verified the AuditTrailSetup but ...
0
votes
1answer
35 views

Managed package installation is very slow for a customer

For one of our customers, we see that it takes unusually long to install a managed package using the Metadata API. The package has a few classes and custom fields. We receive a read timeout after 5 ...
0
votes
0answers
21 views

Create Dynamic Trigger from Managed Package

I want to create a trigger based on user's input after they install my managed package. Can anybody please explain in detail on what are the possible solutions for this? I did look at one solution: ...
0
votes
1answer
131 views

Removing some references to deprecated objects in profiles result in metadata deploy operation to fail

I removed references to a deprecated object's layout from profiles. Basically removal of the following: <layoutAssignments> <layout>Deprecated Object Layout</layout> &...
1
vote
1answer
30 views

Why does new version of unlocked package still shows some deleted references in the UI?

Using Metadata API, I deployed a destructive change that removed some unused Apex classes and Custom objects. I then verified on the sandbox that they were indeed deleted. I then created a new version ...
0
votes
0answers
25 views

How can i add an image to an existing zip folder of static resource using apex class

How can i add an image to an existing zip folder of static resource using apex class. Basically, the requirement is that, whenever i upload an image using my custom image uploader component, the image ...
37
votes
12answers
57k views

How to debug the mysterious “duplicate value found: <unknown> duplicates value on record with id: <unknown>” error

I've just spent several hours trying to fix a deployment that was failing with the following extremely helpful error message: Error: objects/Opportunity.object(2098,13):duplicate value found: <...
0
votes
0answers
40 views

Provide Read access to all Objects and their fields in my entire ORG

I have written the below script in order to provide Read permission on all my Objects and their fields. I have managed Objects, standard and custom objects on the Org. I am maintaining all Objects in ...
0
votes
1answer
51 views

Invalid field permission field name Account field Account.billingstatecode

I am trying to add permissions to Account fields using Metadata Api. I am receiving the error " Invalid field permission field name Account field Account.billingstatecode" and the permission ...
0
votes
1answer
8 views

Reading Dashboard with the metadata API not working

I'm trying to read all of the dashboards in a particular folder with the Metadata API. I'm using jsforce connection.metadata.readSync. The dashboards all appear similar in the UI, and most of them ...
0
votes
1answer
51 views

Retrieve standard NAME field label change through Metadata API

I have updated the standard NAME field's label on custom object through rename tabs and labels in Setup. But I am not able to retrieve the Name field label change. Here is my package xml: <?xml ...
0
votes
1answer
14 views

Cannot update the value of a custom field on Case Object using jsforce

My Scenario I have a specific RecordType of a Case Called Customer Feedback. I can create a case with this specific record type like this: // Creates a new Case successfully, no custom fields. conn....
1
vote
1answer
400 views

Update CustomField using metadata api

When i am trying to update any standard field, it is working: MetadataService.CustomField customField = new MetadataService.CustomField(); customField.fullName = 'Account.phone'; customField.label = '...
6
votes
3answers
3k views

What's the API name of system permissions?

I am adding the system permissions 'Manage Public List Views' and 'Create and Customize List Views' to a permission set via the Metadata API. The problem is I can't find their exact API name: <...

1
2 3 4 5
22