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
0
votes
0answers
5 views

Deploy Process Builder as Active - Test Coverage Requirement Clarification

We're looking at activating the setting to deploy active processes and flows using the Metadata API. When looking at the requirements, Winter 19 release notes says: When you deploy an active ...
0
votes
1answer
28 views

How to fetch Custom Metadata Type record in apex and compare it with a string

I have a string which is holding email ids of users from my org. Now I have few custom metadata type records which are holding email IDs of users who are inactive. Now I need to compare the string ...
6
votes
0answers
46 views

Metadata API: any drawback when using REST instead of SOAP?

Is there any drawback on using Metadata API through REST (that became available since Winter'19)? I only see good things such as: Smaller payloads: probably improving performance reducing the network ...
0
votes
1answer
16 views

reading MetadataAPI attributes value

I'm calling MetadataAPI as the code below and it's returning getBody() with a very long string as shown below, please scroll horizontal to see it and for brevity purpose I cut short. HttpRequest req =...
1
vote
1answer
25 views

View list of objects which has any of it's standard button overridden by LC

I have an existing application, which has around 100 objects. My requirement is to check all the objects which have any of their standard button/quick overridden with a lightning component. Doing ...
0
votes
0answers
20 views

Manipulate packaged flow using Apex

In my Managed Package I have a Flow template which subscriber can clone/reuse and customize to their needs. I now want to provide a bite more guidance on such a customization and relate a packaged ...
4
votes
1answer
47 views

Solving error about NavigationLinkSet when packaging a community using 2GP

In a Community that I am trying to package using 2GP with: sfdx force:package:version:create after eliminating several errors I am now getting this one: These entities are not supported: [...
0
votes
1answer
14 views

Access Aggregated Field Level Security for Offline-first App

We are currently building a page layout renderer for an offline application that would allow end-user to create records and then sync the data once they get access to internet again. We need to ...
0
votes
1answer
58 views

How to use metadata API in lightning web component

I am pretty new to metadata API, I wonder how can I use metadata API to push some JSON metadata just like in jsForce(I successfully use jsForce in this way below in my local web app, but I am not sure ...
3
votes
2answers
50 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 ...
2
votes
1answer
31 views

Retrieve past deployments

Is there any way (using Metadata API or other options) to retrieve all successful deployments to an org from the past, say, 6 months?
3
votes
1answer
161 views

Metadata Deploy and Push fails on Flexipage componentInstances in API 49 (Summer 20)

I'm having a problem deploying metadata after having updated my project to Summer 20 and pushing the project contents to a Summer 20 org. There are several failures seemingly related to a FlexiPage ...
2
votes
1answer
63 views

Script Too Large Error While Generating Apex Classes Using Metadata WSDL

While trying to Generate MetadataService classes using the standard Metadata API WSDL from Salesforce, classes I got below error. I think it is related to the length of the Apex class as the lines of ...
0
votes
0answers
31 views

How to migrate Named Credential profile access [duplicate]

To authenticate a named credential as a user in the org, ones profile has to have access to the named credential. This is done in the profile setup under the related list "Enabled Named Credential ...
1
vote
1answer
25 views

How to delete bulk certs from org

I have production data in my sandbox i don't want the production certs in my sandbox i would like delete certs in a bulk using apex or workbench or any other tool?
0
votes
1answer
15 views

Permission Import Leads depends on permission(s): Create Lead, Edit Lead - MetaData Deploy Error

Using workbench to deploy updates to a profile and I am into the following error message: Permission Import Leads depends on permission(s): Create Lead, Edit Lead However, Import Leads ...
0
votes
1answer
20 views

How can we deploy custom My Domain name via metadata API?

Is there a way to deploy custom My Domain in Metadata API deployment using SFDX CLI?
1
vote
1answer
34 views

Are lightning component visibility filters deployable? Where can I find them in metadata?

I have some custom lightning components on the layout. These components have some visibility filters. I need to add and remove some filters. It is easy to do it in UI in page layout settings, but is ...
1
vote
0answers
27 views

How to programmatically update picklist fullName value in the same deployment without getting a “duplicate label” error?

I have the following code: <?xml version="1.0" encoding="UTF-8"?> <CustomField xmlns="http://soap.sforce.com/2006/04/metadata"> <fullName>Some_Custom_Field__c</fullName> ...
0
votes
0answers
26 views

CspTrustedSite created with MetadataAPI can't be retrieved again

For creating a CspTrustedSite the following is done: MetadataService.CspTrustedSite csp = new MetadataService.CspTrustedSite(); csp.fullName = FULL_NAME; csp.isActive = true; csp.endpointUrl = ...
5
votes
0answers
64 views

How can I find the relationship between MetadataComponentId and the expected name for the Metadata API?

I've been using the Dependency API to try to retrieve all dependencies for a given metadata. I would like to get a list of dependencies, and then retrieve these with the Metadata API. Unfortunately, ...
2
votes
0answers
14 views

What is the Metadata API name for Knowledge Setting “Enable list of cases linked to an article in Salesforce Classic (Classic Only)”?

Does anyone know the Metadata API setting for "Enable list of cases linked to an article in Salesforce Classic (Classic Only)" under Knowledge Settings? I can not find it under https://developer....
3
votes
1answer
66 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 <...
1
vote
0answers
17 views

Serialize Workflow object to XML

I'm developing a test application that modifies the workflow by reading the retrieved Workflow files that are downloaded. The files are read, the workflow switch is modified and submitted to Metadata ...
0
votes
0answers
10 views

Updating Picklist values in RecordTypes through Mule

I am trying to update the Picklist values availables for a Recordtype using Mule. I already manage to update the picklist values inside the GlobalValueSet, but I can't make it update the RecordType ...
1
vote
0answers
22 views

Import CA-Signed Certificate from One Org into Another via MetadataAPI

I am trying to automate the set up of some of my lower sandboxes. In my SandboxPostCopy class, I'm using the FinancialForce MetadataAPI wrapper MetadataService to query and upsert a certificate. (...
4
votes
1answer
73 views

Dynamically create TopicsForObjects metadata from Apex

Whenever I am unable to package a certain metadata type in a Managed Page I created them from a Setup page after installation using the Metadata API and this neat Apex Wrapper lib. But this time I ...
0
votes
0answers
19 views

Issue updating Search Layout columns via API

I'm trying to update Default Layout columns under Search Layouts for a custom object. I used Visual Studio Code, created a feature branch, made my changes in the custom object's xml file. We have a CI/...
1
vote
0answers
18 views

Programmatically “Edit Policies” of packaged Connected App in Subscriber org

My managed package contains a Connected App. Until now subscriber admins needed to perform many error-prone configuration steps after installation in Setup > Manage Connected apps > connected ...
-1
votes
1answer
25 views

need to add where clause in Rest API Get request in apex

/services/data/v39.0/query/?q=SELECT+Id,Name,AccountNumber,Type+FROM+Account+limit+10 i need to add where clause here LiKE :- /services/data/v39.0/query/?q=SELECT+Id,Name,AccountNumber,Type+FROM+...
0
votes
1answer
43 views

System.CalloutException: INVALID_TYPE: This type of object is not available for this organization on metadata API [closed]

I am working on the Metadata API to create an Apex trigger dynamically. I have used Apex Wrapper Salesforce Metadata API from Github- https://github.com/financialforcedev/apex-mdapi. The error is- ...
1
vote
1answer
16 views

XML format for IP Ranges in Security Settings

I'm trying to use sfdx for source based development. Trying to define the range of whitelisted IPs in Security.settings-meta.xml. When I push my code to my org I get an error: Error force-app/main/...
0
votes
1answer
27 views

Is there any straight forward way to query WorkFlow rules by the Object type?

As far as I know, we can retrieve the WorkFlow rules by calling the metadata API. But my question here is, can we retrieve the WorkFlow rules by the object type. This is just to check how many ...
0
votes
0answers
19 views

how to migrate filters

I have created too many filters on account object (under list view and filter catogory), wondering how to move it using change sets to another org, i tried to look for this in XML package too but ...
1
vote
1answer
36 views

Why can't I deploy a Process Builder referencing a Custom Metadata in a Formula?

I created a Process Builder in which I reference a Custom Metadata from a Formula inside of the "Update Record" action. It works fine on a Environment 1, but I have trouble with deploying it to ...
0
votes
1answer
27 views

How to import MetaDataAPI to my SalesForce project?

I want to Update Picklist Values in a standard field in my project every X time. in my Apex Classes I was writing that function: I search for this error and figure out that I need to import ...
1
vote
1answer
20 views

Metadata API CRUD - Create Custom Object SOAP

I am trying to create a CustomObject using the WSDL metadata API. I'm getting this error Element {http://soap.sforce.com/2006/04/metadata}type invalid at this location in type CustomObject when I run ...
0
votes
1answer
46 views

How to retrieve Data Category Group Visibility on Profiles, Permission Sets and Roles?

Data category visibility can be set with roles, permission sets, or profiles. I'm not able to retrieve any of these settings. This is the Knowledge relevant part of my package.xml: <?xml version="...
2
votes
1answer
143 views

Why does VS Code's Org Browser retrieves metadata with different file extensions than Metadata API and what are possible consequences of that?

Let's say I have a Custom Metadata created on my Org: MyCustomMetadata. Downloading its record within Org Browser: Command used: sfdx force:source:retrieve -m CustomMetadata:MyCustomMetadata....
4
votes
2answers
97 views

How to deactivate a existing active process builder using metadata API?

Background: There is only one version of the process builder exists in sandbox, version number is 1 and it is Active. I retrieved this process builder using the command sfdx force:source:retrieve --...
0
votes
2answers
132 views

How to deploy/retrieve ManagedContentType metadata?

I tried to use package.xml in Visual Studio Code, when I retrieve it, it give me the error in the screen shot. <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Package xmlns="http://...
0
votes
0answers
18 views

How to retrieve package.xml with permission sets with ALL FIELDS even those without Read Access?

So I would love to retrieve package with permissions sets but also with fields that are not currently set to 'Read Access-> true' So yeah basically metadataAPI does not retrieve uneradable fields.. ...
0
votes
1answer
115 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>...
1
vote
1answer
89 views

Cannot retrieve WorkflowAlert, WorkflowFieldUpdate, WorkflowRule from package.xml through sfdx cmd

I want to retrieve all my WorkflowAlert, WorkflowFieldUpdate, WorkflowRule from my sandbox and deploy them to another one. Here is my package.xml file : <?xml version="1.0" encoding="UTF-8" ...
1
vote
1answer
51 views

source:convert command fails with error “The ”path“ argument must be of type string. Received type object”

sfdx force:source:convert --sourcepath force-app -d deployment ERROR running force:source:convert: The "path" argument must be of type string. Received type object What am I doing wrong here? ...
0
votes
0answers
14 views

How to allow guest users to use the prechat snap in a community?

How to allow guest users to use the prechat snap in a community? When I preview the community as an authenticated user I am able to see when an agent is online and utilize the prechat snap in. When I ...
1
vote
2answers
29 views

What does ConnectedApp -> oauthConfig -> idTokenConfig represent?

Within the ConnectedApp Metadata API, it has a setting nested under oauthConfig called idTokenConfig, of the type ConnectedAppOauthIdToken. The ConnectedAppOauthIdToken class has five different ...
2
votes
1answer
50 views

Create custom field using Metadata api C#

I am trying to create a custom field for an existing entity like account with v48 of the Metadata api My code is: MetadataService.CustomField customField = new MetadataService.CustomField(); ...
1
vote
1answer
67 views

Easiest way to pull all metadata

I want to pull metadata from a sandbox for the purpose of finding where in code a standard field is being referenced. My plan is to pull the meta-data and then search for references to the field. ...
3
votes
0answers
88 views

How do I query a Connected App's IP Relaxation settings?

Within a connected app's manage settings page (Setup -> Managed Connected Apps, click on the Edit link next to the connected app of interest), you can see and set the OAuth Policies -> IP Relaxation ...

1
2 3 4 5
20