Questions tagged [ui-api]
The ui-api tag has no usage guidance.
17
questions
0
votes
0
answers
75
views
Unable to retrieve a custom field from Product2 in a LWC built of the B2B Commerce store front
I have built a LWC designed for B2B Commerce store Product Details page. I need to retrieve a custom field I have added to the product2 object in order to pass this to an iframe as a reference. To do ...
0
votes
0
answers
95
views
createRecord (UI RecordAPI) in LWC Doesn't Fire Platform Event
Is it possible to fire a PE from within LWC without needing an Apex controller by using createRecord UI API?
Here is what I have as a headless quick-action component
import { createRecord } from "...
0
votes
1
answer
2k
views
Creating a case with createRecord LWC error/trouble
I'm just trying to create a simple LWC that creates a case record from a button click. When I add the component to the account page and click the create button nothing is happening, there are no ...
2
votes
0
answers
61
views
Why is saveOptions member of UI API Record Layout response always empty?
I am retrieving Layout information via UI API. I have tried this both with the lightning UiApi adapter:
import { getRecordUi } from 'lightning/uiRecordApi';
@wire(getRecordUi, {recordIds: "$...
2
votes
2
answers
361
views
How to authenticate requests to the user interface api?
I am trying to make a GET request to the UI API from within a react project using a simple lifecycle method:
componentDidMount() {
fetch('https://{my_salesforce_instance}.salesforce.com/services/...
2
votes
1
answer
254
views
How to integrate the user interface api with an existing project?
I am trying to implement a form in my react app that allows users to submit data to salesforce using the UI API.
From following the documentation I have created a connected app with a callback url and ...
1
vote
1
answer
63
views
UIAPI retrieve picklist values for record type stopped working - returns only one value
I have an aura component that's been working for years. It calls the uiapi to retrieve and display a multi-picklist based on the available picklist values for a specific contact record type.
Yesterday ...
0
votes
2
answers
615
views
UI API: How to retrieve translated values of a picklist using UI API
We are using the salesforce API to consume picklist fields and display it on a webpage on a multilingual community
"/services/data/v49.0/ui-api/object-info/Case/picklist-values/{recordtypeId}/...
0
votes
1
answer
692
views
Can I use wire service to get data from UserRecordAccess and use it in LWC?
The query to the UserRecordAccess table is like this:
SELECT RecordId, MaxAccessLevel, HasAllAccess, HasDeleteAccess, HasEditAccess, HasReadAccess, HasTransferAccess FROM UserRecordAccess where UserId ...
1
vote
1
answer
2k
views
The success event returned from `lightning-record-edit-form` is missing fields that I have in my component
I have a custom lightning-record-edit-form component that looks like this:
<lightning-record-edit-form
record-id={id}
record-type-id={recordTypeId}
object-api-name="Account"...
1
vote
1
answer
170
views
Get Event field picklist values for record type through API
I need to get picklist values for some Event fields (namely Subject and a few custom fields) in my external application but only for a specific record type.
It seems the appropriate way to do this is ...
3
votes
1
answer
1k
views
Task Object - Get Picklist Values by RecordType?
The UI API provides a nice getPicklistValuesByRecordType resource but it doesn't support the Task object.
I've looked everywhere, but I cannot find an alternative solution. Does anyone have any ...
1
vote
0
answers
998
views
REST API - Picklist UI API Error
I have written apex code block to fetch picklist values for dependent picklist fields for a custom object using Picklist UI API for Community Portal users.
The request URL looks like this:
https:///...
6
votes
2
answers
1k
views
UI API within LWC as an ISV. What should be the approach when wire adapters are not feasible?
I have a lightning web component that needs to call UI API. I can't use the LWC wired adapters because the 'getRecordUi' does not take the "childRelationships" parameters like the 'record-ui' endpoint ...
4
votes
2
answers
635
views
Is it possible to get ui api Picklist Value Collection response body in ltgn comp js (for pcklst dependencies)
Is it possible to access the picklist value collection response body in a custom component js using a built in component? I need access to the dependent picklist values and their validFor property. I'...
5
votes
1
answer
4k
views
On lightning:recordEditForm how can I retrieve the recordUi onload-actions return parameter?
The docs here indicate, that the onload-action return the following:
Parameter : recordUi
Type : Object
Description : The object metadata. For more information, see the User Interface API Developer ...
5
votes
1
answer
760
views
Is User Interface API accessible via JS from a Helper of a Lightning Component?
Can we use the UI API in Lightning Components directly from within a Helper JS?
https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started.htm
I've just read the docs and ...