All Questions
Tagged with custom-metadata lightning-web-components
23 questions
0
votes
0
answers
89
views
How to Address Security Warnings About Named Credentials When Handling OAuth in Apex?
I am preparing to submit my Salesforce application for review to list it on Salesforce AppExchange. My application uses a custom OAuth authentication flow handled by an LWC component and Apex. The ...
0
votes
1
answer
423
views
How to determine when Queue is complete on LWC
I'm currently trying to create a tool that creates a metadata record in LWC. I'm using Metadata.Operators.enqueueDeployment(mdContainer, new DeployCallback()) to create a new record, and it's able to ...
0
votes
0
answers
290
views
How check if picklist value contains in Custom metadata in LWC js?
I'm trying to check if the input selected picklist value exist in custom metadata, then I'm trying to display some records. I have implemented the below code but records are not displaying. Is there ...
-1
votes
1
answer
615
views
MetadataService API custom field label update
Recently I am building a side project myself to allow user mass update custom fields label. Currently, you can only do that one at a time. The POC looks good, I am able to achieve that with text and ...
0
votes
2
answers
731
views
Custom metadata having field of type picklist and want to fetch that picklist field value of that custom metadata into LWC
Please give me an idea on how to get the custom metadata field picklist values into lwc without using apex
0
votes
0
answers
250
views
Hide Lwc Tab based on Metadata
I have a lwc component(called "Tab1") made as a lightning tab and have a custom metadata(called "Enable Tab1") in a different lightning page as a toggle. Then ,need to hide and ...
1
vote
2
answers
5k
views
How can I get picklist values from Custom Metadata Type?
I'm building LWC component and I have custom metadata type that has picklist field with 70 values.
I need to display them as options in dual-list-box in LWC.
Is there any imports that I can use to ...
1
vote
0
answers
782
views
How to get child records from parent in custom metadata type
I have 4 custom meta datatypes
Dynamic Datatable
Dynamic Datatable Columns
Dynamic Datatable Cell Attributes
Dynamic Datatable Type Attributes
The structure of this looks like this:
Here Data Table ...
0
votes
1
answer
82
views
Need to change appearance of LWC based on a record's field
How to store an information that let users to change the LWC's appearance dynamically?
The user can define rules like:
If that field's value is "X", appearance should be "A" and/...
1
vote
1
answer
178
views
Not getting metadata record field values on lwc page using apex [closed]
//Apex class
public with sharing class getMetafieldController {
@AuraEnabled(cacheable=true)
public static String getMetaList(){
Organisation__mdt APIDetails = Organisation__mdt....
0
votes
1
answer
974
views
Error handling for Custom metadata Creation and Updating
I have a requirement to create and update custom meta data using apex , I'm passing the required values from my lwc , though i have found no proper example of handling the error since ...
1
vote
1
answer
553
views
Record Edit for custom metadata
Is it possible to use lightning-record-edit-form in LWC for custom metadata types?
4
votes
1
answer
4k
views
Can I retrieve Custom Metadata Records dynamically in a Lightning Web Component without Apex and without hardcoding ID
I am trying to build a Lightning Web Component that uses Custom Metadata Types. It will be used on record page. I am successfully retrieving the ID of the current record, then I am using its type as a ...
0
votes
1
answer
677
views
Any way to avoid the blue screen background showing on a custom LWC lightning__Tab?
I am creating a custom LWC component that presents a list of Custom Metadata records using the same sort of styling that a default list of SObject Records would use. The mechanism works as described ...
3
votes
1
answer
24k
views
Retrieving custom metadata values in LWC
I have Custom Metadata Type values that I want to display in a Lighning Web Component. I've read a few different posts (post 1, post 2) about this but neither seems to work for my scenario.
My Custom ...
3
votes
1
answer
192
views
How to let extension packages customize UI of base package
Salesforce is bringing out a lot of new things to make Lightning UI more flexible: Dynamic Forms, Dynamic Interactions, etc. But they are not ISV-friendly because they are based on Flexipages. And ...
0
votes
1
answer
889
views
LWC Custom Metadata Schema Import Failing In Change Set Validation
tl;dr - How can one successfully validate an LWC via a change set that contains schema imports to a custom metadata type?
Problem
I have a working LWC in a sandbox, and am attempting to port it to ...
0
votes
0
answers
1k
views
Apex to return custom metadata and dynamic object data
I am looking to have a lightning web component that returns data from an object based on the record I am on that i can display on a lightning record page . I am exploring programmatically pulling a ...
0
votes
2
answers
199
views
How to fetch custom metadata in after update trigger that was already retrieved in a LWC?
We have a LWC,mycomponent that will fetch custom metadata records, myCustomMetadataList and store them into a List variable within mycomponent. When a user clicks on the Save button on this component, ...
0
votes
2
answers
4k
views
How to get Custom Metadata Type PickList field values using LWC getPicklistValues and getObjectInfo
I'd like to access the picklist values of a field on a Custom Metadata Type from an LWC:
import { getPicklistValues } from "lightning/uiObjectInfoApi";
import { getObjectInfo } from "...
1
vote
1
answer
697
views
LWC: Is it possible to store part of the schema string to import in Custom Metadata
I want to store the fields that need to be imported from the schema in my LWC in Custom Metadata.
So for instance I want to make the following line dynamic:
import MY_OBJECT_ID_FIELD from '@salesforce/...
0
votes
0
answers
63
views
Can I add custom fields or values to existing metadata objects?
Our app allows users to select Lightning components to populate our legacy "widget" framework. Yes, I know we could redesign the product to use Lightning pages, but we're not doing that ...
1
vote
1
answer
4k
views
LWC "Record Detail Page" for Custom Metadata Type
I'm exploring a concept that involves exposing Custom Metadata Type records to business users in a read-only format in a kind of pseudo-record-detail-page in Lightning Experience. My requirements are:...