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

Modify Territory Assignment Rules using Metadata API

Is it possible to use the Metadata API to modify existing Territory Assignment rule criteria? Currently we are using the Salesforce Mapping tool to build territories and then import into ETM. The ...
0
votes
0answers
15 views

Report's SetDetailColumns() not updating the report after running

I'm assuming this is due to some misunderstanding I have regarding the setDetailColumns() method, but there's not a lot of information out there so I'm unsure of how to resolve this. I'm trying to ...
1
vote
1answer
48 views

List of Salesforce objects those are File types like Document, StaticResource, Contents etc [closed]

I would like to know the list of Salesforce objects whose are based of FILE type. For example Document, Attachments, ContentVersions, Static Resources etc I would like to see what more objects comes ...
0
votes
1answer
14 views

How to get all approval process using metadata APIs

I want to fetch all(active and inactive) approval process. I wanted to use metadata APIs, but I do not know how to design the request payload to get all the approval process. Is there documentation ...
0
votes
0answers
15 views

Not able to read CustomObjectTranslation using namespace

I’m not able to readMetadata() CustomObjectTranslation using namespace, it doesn’t return anything (gives null). I have no problem with standard objects or unmanaged custom objects. Also, I’m using ...
0
votes
1answer
11 views

Field label and page layout updates

I've made an update to a field label and I also updated few page layouts. Assignments have not changed for different profiles. Now I need to deploy these changes from one sandbox to another. Do I need ...
1
vote
1answer
29 views

Is there a way to programmatically encrypt custom fields?

For standard fields, we can do it via Setup (Setup > Encryption Policy > Encrypt Fields), then we get a list of all available fields and we can tick the box for each one. But for custom fields, ...
0
votes
0answers
20 views

Community Deployment using Metadata API & ExperienceBundles

We have deployed our community to a sandbox successfully with below components. experiences navigation menu sites Network branding networks Content assets Profiles Static resources and other ...
2
votes
1answer
77 views

How do I successfully Deploy a Configuration Component for a Platform-Event Trigger to Override the Automated Process User?

I am trying to override the Automated Process user with another user for a platform event. This Salesforce documentation covers it: Configure the User and Batch Size for Your Platform Event Trigger ...
0
votes
0answers
8 views

Not able to update custom field on custom Meta data record by Community user (License Partner community)

I am trying to update custom meta data record by Partner community user through Metadata.DeployCallback interface and i am calling it through account trigger (once status value get update in account ...
1
vote
0answers
11 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 ...
1
vote
0answers
55 views

Deploy custom labels using metadata deploy request via rest api

I am trying to deploy some updates to custom labels using rest API via metadata/deployRequest. I found this in salesforce documentation. I want to invoke this rest method via powershell scripts but ...
0
votes
1answer
22 views

Can we create a lightning quick action through metadata api?

Is there a way to create a lightning-quick action using metadata API? I want to create and add lightning-quick actions to layouts of certain sObjects, and those lightning-quick actions will launch ...
0
votes
0answers
29 views

How to get all PermissionSet fields via API?

I'd like to get all PermissionSet fields via API like documented here. I'd need information like field name, if it's required etc. I tried describeValueType() but that didn't return all fields.
0
votes
0answers
16 views

Why don't I receive all fields when I call describeValueType(“PermissionSet”)?

I need to get a list of fields of given metadata types, e. g. given Profile I would like to get the fields listed here: https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/...
0
votes
0answers
36 views

Confused about Salesforce Document

I try to use Salesforce Tooling API or Metadata API to get Flow metadata information. I check follow salesforce documents: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/...
1
vote
1answer
21 views

Is there any way to get input variables information for a flow in managed package?

I use Salesforce API to check Flow's input variables information. In my org I install a managed package which have 2 Flows, each of them has one input variables. I can get these Flows Metadata info by ...
0
votes
0answers
22 views

Dynamically reference MetaData Type field in Apex

I'm attempting to create re-usable code passing in the API name of a field. I want to reference that field Dynamically in code, but I'm unsure how to. Additional Context: This Code will be used to ...
0
votes
0answers
10 views

How to batch “readMetadata” API calls?

We have a bunch of concurrent readMetadata (https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_readMetadata.htm) API calls which reach the concurrent limit repeatedly. How ...
1
vote
1answer
49 views

Permission Set: Existing other OLS/FLS permissions are wiped off in Production

Deployment: We deployed a custom permission set through Copado tool to Production and the git commit for this permission set contains 2 FLS permissions on User object. The scenario here is - other OLS/...
1
vote
1answer
31 views

Advice on overcoming a WebService Callout time out error using MetadataAPI

I'm looking for some advice, both on my approach and how to solve my particular issue. Use Case When an external integration team updates all particular recordTypes. Every picklist value associated ...
1
vote
1answer
37 views

Reading Metadata of CustomField with Custom GlobalValueSet returning null for valueSet

I'm using metadataAPi (apex-mdapi) My current use case is to read the metadata of a custom picklist field, and be returned with the complete list of picklist values available. Regardless of whether ...
0
votes
1answer
46 views

How to get metadata of metadata field types?

Is it, for example, possible to get information about Profile.ProfileApplicationVisibility (like here)? Possible requirements are: Which fields are required or what is the default value of that field.
0
votes
1answer
24 views

How to recover Minimum Access Profile?

The Minimum Access Profile has been accidentally deleted from our organization. How can we recover it (development tools are possible!).
1
vote
1answer
18 views

Metadata API returns UNKNOWN_EXCEPTION: An unexpected error occurred. when uploading zip

When uploading a zip with custom objects, layouts, profiles, and permission sets the Metadata API returns the following error. UNKNOWN_EXCEPTION: An unexpected error occurred. Please include this ...
0
votes
1answer
10 views

C# MetaData API create Object and Field

I am getting an error message on the last line of: unexpected Login : Object not set to the instance of an object. Any ideas? MetadataService.CustomObject co = new MetadataService....
0
votes
0answers
18 views

MetaData create an object using C#

I am new at C# and I am trying to figure out how to create a Custom Object using the MetaData API. I am able to login using C#, I read examples of how to create the custom object however in the below ...
1
vote
1answer
32 views

easiest way to create permission set in sfdx project

Let's say i need to create new Permset. What is the best way to create .xml inside sfdx project premissionsets folder? What are the rules of naming? Where can I get details about .xml contents?
0
votes
1answer
29 views

How to create different types of fields using Metadata?

MetadataService.MetadataPort service = new MetadataService.MetadataPort(); service.SessionHeader = new MetadataService.SessionHeader_element(); service.SessionHeader.sessionId = UserInfo.getSessionId()...
0
votes
2answers
32 views

Anyone know how to create Public group & role using Metadata API apex class

Tried with the below code, it's throwing an error. MetadataService.MetadataPort service = createService(); MetadataService.Group_x CreateGroup = new MetadataService.Group_x(); CreateGroup....
0
votes
1answer
38 views

How can I use MetadataAPI to add field visibility to a Permission Set (Using APEX)

I'm creating a field dynamically via apex (or tooling API haven't decided yet) and my problem has been this field is created with no access level to anyone. To overcome this I wanted to add the field ...
0
votes
0answers
23 views

Assigning Global Picklist Values to recordtypes from Metadata API

I need to assign some newly created global picklist values to some record types in my application via Metadata API only. I have referred some online tutorials and got to know that this feature is not ...
0
votes
1answer
49 views

Is it possible to fetch Approval process meta data using VS Code?

I am trying to fetch approval process metadata from one of my development org and deploy it to another development org, but I could not find a way to fetch the metadata regarding the approval process. ...
0
votes
1answer
49 views

Is it possible to create a CMS workspace using API or with Metadata deploy?

I'm trying to see if we can create a CMS workspace by using Metadata API or any other way programatically, instead of creating it through the UI as mentioned here. Also if I create a CMS workspace in ...
0
votes
0answers
14 views

Metadata.Layout is NULL in aura component

I have to pull the Metadata.Layout of an object from apex and basically re-create page layouts in aura. My plan was to use the Metadata.Layout and just iterate over the sections/columns/fields. In ...
0
votes
2answers
33 views

How to identify Required fields via the API [duplicate]

When you create a field in Salesforce you can make it Required at the object level: These required fields then cannot have FLS set via the profile. If you try and set FLS for them via the metadata ...
1
vote
1answer
16 views

Salesforce Metadata API: When updating FieldPermissions on PermissionSet, other FieldPermissions on other objects are reset

On Metadata API version 50.0, when I update FieldPermissions on a PermissionSet, the other FieldPermissions on the same PermissionSet are reset. The updateMetatdata call worked correctly on version 30....
6
votes
1answer
101 views

Using Metadata API from managed package post-install script

I'm trying to deploy a managed package that will create some new fields on the Opportunity object on install using the Metadata API. The entire code in the callout method below works in my dev org (i....
1
vote
1answer
60 views

Deploy Metadata with Apex Testing Using REST error

I'm trying to deploy some ApexClass from Apex to Production Org using multipart/forma-data to /services/data/v48.0/metadata/deployRequest following docs. In the documentation is this example: POST /...
1
vote
0answers
32 views

Flow & Apex(@Invocable method) : Identify the primary input variable

I would like to know if there is a way using service/object (like using Metadata api service) to identify primary parameter in a flow & apex method(@invocable method). Among multiple input ...
0
votes
0answers
24 views

Dependent picklist Inclusion/Exclusion values metadata deploy not updating

I have two custom fields (both picklists) one is controller the other. I have made some changes to the included/excluded values in one sandbox, and am attempting to deploy it to another. When I pull ...
0
votes
0answers
16 views

Creating List View in Salesforce using Apex or Metadata

I have tried to run following code in dev console and it ran successfully without any error but unfortunately it didn't created the list view even. HTTP h = new HTTP(); HTTPRequest req = new ...
3
votes
1answer
97 views

Cannot retrieve ExperienceBundle file for a community, an error “ExperienceBundle Metadata API doesn't support the template of” is shown

I have enabled Enable ExperienceBundle Metadata API and tried to retrieve a Experience Bundle file but obtained an error ExperienceBundle Metadata API doesn't support the template of Partners1. I can'...
0
votes
1answer
45 views

How do you migrate specific Community pages from one sandbox to another?

We can deploy community pages according to https://help.salesforce.com/articleView?id=networks_migrating_from_sandbox.htm Is there a way to deploy few pages without deploying all pages. e.g. specify ...
0
votes
0answers
16 views

Which permissions are needed to access “CustomField” object?

We are using the metadata API to access field metadata such as description, data type, default value etc. This is for standard objects but on custom fields e.g.: SELECT Id, Metadata, TableEnumOrId ...
1
vote
1answer
28 views

How to merge field metadata attributes without overwriting existing attributes

We want to update the <ComplianceGroup> attribute on thousands of fields based on a list that our Legal department maintains. If we could just deploy the object, field and ComplianceGroup value, ...
0
votes
0answers
18 views

Retrieve artifacts that are not translated

I have a managed package, from the past few releases we introduced new fields and custom labels, and other metadata but did not account for translations for those artifacts. How can I retrieve a list ...
-1
votes
1answer
35 views

Give a name to deployment via the Metadata API?

It's been 5 years since a similar question was asked, I was wondering if anything changed since then and if we can name a deployment made by the Metadata API?
0
votes
1answer
38 views

Can we add lwc component's dependency on a custom object of 3rd party apps?

I am trying to make an lwc component for a specific 3rd party ( app exchange app ) so that they could easily add our components in their app from UI builder. For that I am using targets and ...
3
votes
1answer
69 views

Error when creating a local translation in a Packaging Org

I have a class in charge of creating local translations within a custom label, this class is responsible for going into the metadata and creating it. The code is as follows: global with sharing class ...

1
2 3 4 5
21