Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

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

Error Encountered While Reading DigitalExperienceBundle Metadata

I need help while I try to read DigitalExperienceBundle metadata and get following error. Error: Web service callout failed: The WebService returned a SOAP Fault with the following details: ...
Brijesh Popat's user avatar
0 votes
0 answers
27 views

Data category visibility on PermissionSet

Is there a way to programatically fetch or deploy the Data Category Group Visiblities on PermissionSet via the metadata api? I see in this documentation that PermissionSetCategoryGroupVisibility isnt ...
jacksparrow007's user avatar
0 votes
0 answers
30 views

Wave Analytics deployment error

I am facing error while running the dataflow. I have created an Analytics event monitoring app using template.I created a dashboard using datasets which were created with App. When I am trying to ...
sbv's user avatar
  • 1
2 votes
1 answer
46 views

Deploy entire Customizations, Flow, Apex etc from a Developer Edition org to a new Production org

We have been doing configurations, development, and automations in a Salesforce developer edition org independent of a production instance(not a sandbox). We have now just acquired a new production ...
Kele Saunders's user avatar
0 votes
1 answer
24 views

How to retrieve the XML Definition of flow provided I have the Id of the flow?

I have used the following query in postman SELECT Id, ApiName,Label, ProcessType From FlowDefinitionView Where ProcessType = 'flow' result has given me the Ids of all the flows whose processTypes are ...
RishabhVerma's user avatar
0 votes
1 answer
18 views

Updating ProfileRecordTypeVisibility using updateMetadata API

I am trying to selectively update the record type visibility of a particular record type for a particular profile. Would the updateMetadata api be able to do this? https://developer.salesforce.com/...
jacksparrow007's user avatar
0 votes
1 answer
26 views

Getting profile permissions using readMetadata() API call

I would like to retrieve the recordTypeVisibilities for all the record types for a particular profile. Is there a way to achieve this using the readMetadata() API call instead of doing a file based ...
jacksparrow007's user avatar
0 votes
1 answer
40 views

No ApexPage named CommunitiesLanding digital experience deployment

I am trying to deploy digital experience metadata. Default index page is CommunitiesLanding (which is default sf visualforce page). I am getting error Error: In field: indexPage - no ApexPage named ...
Alivarq's user avatar
-1 votes
1 answer
40 views

Retrieving user-based email alert data in Salesforce

How can I find out in which email alerts a related use in Salesforce is assigned to the "Recipients" field. I want to know in which email alerts a related user in Salesforce is a recipient, ...
Sahir's user avatar
  • 3
2 votes
1 answer
59 views

Trying to connect to Salesforce with PubSub API's gRPC, but on subscribe topic getting error-code: "sfdc.platform.eventbus.grpc.topic.meta.permission"

I'm trying to connect to Salesforce with gRPC from NodeJS environment using https://github.com/pozil/pub-sub-api-node-client/ package. The connection works, but I'm getting the following error when I ...
Hunor's user avatar
  • 31
2 votes
1 answer
42 views

Looking for User Management setting enableCanAnswerContainUsername in Salesforce UI

I am currently trying to deploy the UserManagment.setting metadata but running into some issues due to environment versions. I have decided to manually configure it but cannot seem to locate where to ...
Wesley's user avatar
  • 23
0 votes
0 answers
77 views

Not allowed to install or modify metadata via Apex

I know that this error is a hot topic and case for Salesforce but I tried to bypass this using some code workaround. Here is the code that I tried: // Upsert method call try { ...
batuayyildiz's user avatar
0 votes
2 answers
51 views

Packaging Reports containing field to field comparisons

When attempting to package a report that contains a field to field comparison is shows the unique Id of the field in the metadata as opposed to the field API name. This means that it cannot be stored ...
Jack McGrady's user avatar
0 votes
1 answer
37 views

How to optimize a metadata query(which also has another metadata inside it) using getAll()/getInstance()?

There is a query which has to be reduced because it is a bad written code. We can reduce it to a certain level using getAll() method. There is a field C inside the metadata whose datatype is metadata ...
Sankalp Singh's user avatar
0 votes
0 answers
22 views

Retrieve enhanced List views for Flows via metadata API?

Currently, whenever we retrieve an object via sfdx, whether custom, standard or cmtd, it will retrieve the list views too. However, I cannot seem to find the correct metadata folder or xml which ...
vio's user avatar
  • 61
0 votes
1 answer
36 views

Number field in Custom Metadata returning inconsistent formatting when queried

I don't understand how this is possible? I have a simple custom metadata object with a number field (7,0) called Portal Id. The first record has a value of 20 in that field. When I run this query I ...
BritishBoyinDC's user avatar
-2 votes
2 answers
100 views

Is it possible to deploy by filename using the new CLI?

I have been using a command from the old CLI: sfdx force:source:deploy -p "/path/to/filename.cls" to deploy by filename. Is this possible using the new CLI? I do see an example of sf project ...
Z0q's user avatar
  • 59
0 votes
1 answer
39 views

Custom Metadata Types Relationship

I want to create a Custom Metadata Types field using the Metadata Relationship that links this custom metadata type to Profile object, is that even possible ? if yes can you please show me how would I ...
Nick's user avatar
  • 7,022
0 votes
1 answer
63 views

SFDMU Target Metadata Retrieval Error

I'm receiving 2 distinct errors when trying to execute insert or upsert against my Contact object using SFDMU during and org to org script. Upsert: Each run gets to Stage 2 Target {Contact} Mapping ...
mfitc's user avatar
  • 1
0 votes
1 answer
30 views

MetadataService readMetadata returns null for Record Type

I am implementing a function used to update the picklist values for a given record type. When I retrieve the metadata for the record type, I am receiving null for its properties. My code: // Create ...
Blake's user avatar
  • 131
0 votes
1 answer
65 views

Managed Package: Field History Not Reflecting After Installation/Upgrade

For my managed package I am trying to enable tracking history for my managed object field. I can see it in the source and build is also successful. But these changes are not reflecting, when my ...
shamikh's user avatar
  • 33
0 votes
1 answer
115 views

What to use for an LWR DigitalExperience - ExperienceBundle or DigitalExperienceBundle?

I've just started looking at using LWR instead of Aura Digital Experiences. Note that Having created an LWR experience this: sfdx force source retrieve -u MyOrgAlias -m experiencebundle did not ...
Keith C's user avatar
  • 136k
0 votes
1 answer
105 views

How can I get `prettier` to properly format perm set XML files with `flowAccess`?

Our team is working with mock permission sets in our project for testing features. We have triggers to apply prettier when saving or committing files, and it's been breaking our perm set metadata ...
Chuck's user avatar
  • 967
0 votes
0 answers
64 views

How to fetch all the profile changes by managed package

I want to track and fetch all the metadata changes that occur in a profile when an installed package is added for users who have that profile. I tried using the SetupAuditTrail object but it does not ...
Apex Srinivas's user avatar
0 votes
1 answer
92 views

Connected App - Profiles vs. Permission Sets

Two scenarios for my questions below... Permission Set named XYZ has a 2GP Connected App called ABC as an Assigned Connected App (in the Setup UI) Connected App ABC (if Admin approved users are pre-...
nstuyvesant's user avatar
-1 votes
1 answer
54 views

Upload Metadata into Salesforce from GitHub

There is a GitHub repository with metadata such as tabs, custom objects with fields, apps, etc. What is the best approach to upload that metadata from GitHub into the SF Sandbox org? Thank you in ...
BB0202's user avatar
  • 11
0 votes
0 answers
335 views

Deleting property tags specified in Lwc meta cannot be deleted?

I have this sandbox env. i use for development, where I for a LWC component have added a property tag while developing. I now want to remove this property tag, but cannot do so? I get this error when ...
Carlton Banks's user avatar
1 vote
1 answer
63 views

compactLayout removed from .object-meta.xml after "sf project retrieve start" or right click "SFDX: Retrieve source from org" 2GP

I'm building a package to eventually put on the app exchange. I've set up a dev hub, created a developer site with a namespace and configured visual studio code. I created my components in visual ...
Andy's user avatar
  • 23
0 votes
1 answer
254 views

How to deactivate all flows via sf cli

I'm trying to deactivate all active flows via sf data cli I saw docs said we can deactivate if via Metadata field You can activate and deactivate flows with the Metadata field. Below command is ...
vctqs1's user avatar
  • 75
0 votes
0 answers
41 views

Get app tabs visibilty for user based on profiles and permission sets

I have an app and want to know, which fields are visible for a user. I have tried to get CustomApplication metadata, but it's just list of tabs. So for example: I have user User1 and App1 with ...
Samodeus's user avatar
0 votes
1 answer
85 views

Does it make sense to use ProfilePasswordPolicy metadata in an sfdx project?

When I interactively modify the "Password Policies": in a couple of profiles in my scratch org and then run: sfdx force:source:retrieve -m ProfilePasswordPolicy zero .profilePasswordPolicy ...
Keith C's user avatar
  • 136k
0 votes
1 answer
43 views

How or do we have anyway to run ValidateMetadata via REST API before creating package version

i'd like to do a check metadata validation in advance even before creating package version in each PR. My question is do we have any way to do check code-coverage verify metadata before creating ...
vctqs1's user avatar
  • 75
0 votes
1 answer
298 views

"object name is already in use" while deploying custom metadata

I have custom object with API name channel__c. I am trying to deploy custom metadata with API name as channel__mdt.it is throwing an error of "object name is already in use".
Sarjerao Pujari's user avatar
0 votes
1 answer
3k views

How to retrieve List View buttons using SFDX?

I am trying to retrieve the list view buttons settings from my Lead object but am unsure of how to capture this using VSCode Org or SFDX. It is under Custom Objects > Leads > List View Button ...
Deployment Failure's user avatar
0 votes
0 answers
39 views

Search layout restapi returns fields for event or any custom object which don't have search layout configured. From where we are getting these fields?

Rest api for search layout /services/data/v59.0/search/layout/?q=objectName returns result for both event and task object. For both of these objects we can't configure search layouts in setup. How we ...
Manjot Singh's user avatar
  • 3,516
0 votes
2 answers
1k views

How to retrieve metadata from record triggered flow with custom error message?

Currently I trying to retrieve metadata form Record-Triggered Flow with new custom error message component But when I deploy to another sandbox org, I received this message When I check the xml, I ...
Moises Taboada's user avatar
3 votes
1 answer
145 views

Clean data From deprecated field in Managed package

Context: I have a managed package and I removed a field from the latest version of the package. Now Although the field is not part of package the customer org still has the field and relevant data in ...
Anmol Kumar's user avatar
  • 3,631
2 votes
0 answers
46 views

Difference between how the labels are returned in compact layout and search layout api if user language is different than english

I am calling salesforce API to get compact layouts( /services/data/v46.0/sobjects/Account/describe/compactLayouts/primary ). I get fields label in user's translated language.I am getting same response ...
Manjot Singh's user avatar
  • 3,516
0 votes
1 answer
127 views

Cant downgrade SFDX to previous version 7.181.1 for scratch org script created by team

I need to downgrade to this version(7.181.1) as the whole team uses it for a scratch org script. I've tried using the most previous one I can find 7.199.2 and the most recent 7.209.6. Either one will ...
JEbert's user avatar
  • 11
1 vote
0 answers
205 views

Getting insufficient access rights on cross-reference id when deploying Analytics Dataset components

Just created a scratch org and now attempting to deploy an entire wave folder, with one app, multiple datasets, and one dashboard. None of the Analytics Dataset metadata components want to deploy and ...
Vio's user avatar
  • 41
-2 votes
2 answers
697 views

How to get the length of all the fields in an object

I'm looking for a way to get the max length of each field in an object. I believe if I do something like System.Debug(ObjectName.FieldName.getDescribe().length); In Apex, it will get me the length of ...
lengthy_preamble's user avatar
0 votes
1 answer
69 views

Ant Migration Tool: How to deploy metadata in source format

We are heavily relying on ant to do manual deployment and CI/CD in one of our projects. But now time comes when we need to migrate from 1gp to 2gp package, thus we would need to switch from classic to ...
wesaw's user avatar
  • 3,080
0 votes
0 answers
163 views

Is it possible to add a dashboard to a experience site using metadata that works for different environments?

I'm using the ExperienceBundle Metadata API and I have an experience site. There are a couple of dashboards that are part of a managed packaged that I want to include in my experience site. I added ...
Kevin Maldonado's user avatar
1 vote
0 answers
91 views

How do you handle changes to xml files across different feature branches?

We have different teams all working in the same Salesforce instance. While these teams usually have their own permission sets/objects/whatever that they work in, there are times when we find ourselves ...
leed38's user avatar
  • 123
1 vote
1 answer
573 views

CORS Issue Preventing LWC Component from Accessing Salesforce Apex Controller - No 'Access-Control-Allow-Origin' Header Present

I am working on a Lightning Web Component (LWC) in Salesforce that fetches data from a custom Apex controller. Unfortunately, I am facing a CORS (Cross-Origin Resource Sharing) issue that prevents the ...
Lakshmi's user avatar
  • 61
1 vote
2 answers
190 views

getObjectInfo/getPicklistValues permissions needed in public community

What are the permissions needed to use getObjectInfo (needed for default record type) && getPicklistValues wire adapters in public community? I've added but I'm getting 401 when accessing ...
dzh's user avatar
  • 4,125
0 votes
0 answers
68 views

How to order apps in App Launcher via metadata deployment (need to move our app on top for every new orgs setup in CI)

We would like to move our application on top in App Launcher, so that users do not have trouble finding it. The ultimate goal is to have this automated in our CI/CD pipelines, so that each new orgs ...
wesaw's user avatar
  • 3,080
1 vote
1 answer
112 views

JS in Salesforce DOM security review failure

I have just been sent back the security review report for our ISV partner app and one of the errors is 'JS in Salesforce DOM'. The file they have referenced is a .weblink file, the code snippet they'...
lhh13's user avatar
  • 41
0 votes
1 answer
182 views

How do I migrate Process Automation Settings

How do I migrate setting or users on Process automation settings -> Default workflow users through package xml? Upon deploying workflow it shows error -> you must specify a default workflow user ...
GLS's user avatar
  • 3
0 votes
0 answers
65 views

Error while calling readMetadata() ,unable to find end tag at: START_TAG seen

I have written a Java code for getting the metadata though readMetadata(), but the following error is always reported after fetching a portion of the data: **Exception in thread "main" java....
Arthur Xingxing's user avatar

1
2 3 4 5
18