In this, we will see the module User Interface API Salesforce Answers.
#1.Get Started With User Interface API
Q1)Which scenario is best for User Interface API?
I)Automated data integration with ERP software
II)ETL from MySQL
III)Building a custom mobile app
IV)Building custom Lightning components
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
III)Building a custom mobile app
[/bg_collapse]
Q2)Which resources are found in UI API?
I)Records and Layouts, List Views, Actions, Favorites, Analytics
II)Records and Layouts, Einstein, List Views, Actions, Favorites
III)Lookups, Console, List Views, Actions, Favorites
IV)Lookups, Records and Layouts, List Views, Actions, Favorites
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
IV)Lookups, Records and Layouts, List Views, Actions, Favorites
[/bg_collapse]
Q3)What are the API limits for UI API?
I)Limits are an illusion.
IV)Lookups, Records and Layouts, List Views, Actions, Favorites IV)Lookups, Records and Layouts, List Views, Actions, Favorites
III)The same as Chatter REST API
IV)55 requests per hour
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
IV)Lookups, Records and Layouts, List Views, Actions, Favorites
[/bg_collapse]
Q4)How do you use form factors?
I)To build a responsive web page that’s formatted correctly on mobile devices, tablets, and desktop browsers
II)To build a mobile app that adjusts to portrait and landscape modes
III)To build an app that tracks the fashion industry
IV)To build a mobile app that requires the user to scroll horizontally
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
I)To build a responsive web page that’s formatted correctly on mobile devices, tablets, and desktop browsers
[/bg_collapse]
#2.Install the Sample App
Hands-on Challenge
+500 points
YOUR CHALLENGE
Install the sample app, create a record, and edit a page layout
User Interface API respects changes that admins make to your Salesforce org. Your company has an outstanding admin who loves to customize Salesforce. Although the customizations are awesome, in the past they did require you to update your custom web app. The admin changed a record page layout, and if you wanted your app’s page layout to match, you had to write some code. Thankfully, UI API changes all that, and in this challenge, we’ll see how.
To Get Started
#If you followed the steps in the unit and already installed the Record Viewer sample app and created a connected app, you don’t have to do those steps again.
Challenge Requirements
#Create a connected app
#Connected app name: RecordViewer
#Enable OAuth
#Callback URL: https://localhost:8443/oauth-redirect
#OAuth scope: Access and manage your data (api)
#Enable CORS for origin: https://localhost:8443
#Install and run the Record Viewer app
#Open the Record Viewer app in a browser and authorize it to access your Trailhead Playground org
#In the Record Viewer app, create an account
#Account name: ABC Computing
#Rating: Warm
#To view the record, click ABC Computing in the Recent Items list
#If you followed the steps in the unit, you removed the Fax field from the Account Layout and that field doesn’t appear on the ABC Computing record
#If you do see a Fax field, go to Salesforce and remove the field from the Account Layout
#Go back to the Record Viewer app, open the ABC Computing account, and notice that the Fax field has been removed from under the Phone field
My Trailhead Playground 1
Last used on 11/26/2021
Launch
Check Challenge to Earn 500 Points
Part-1
Part-2
#3.Build UI to Display a Record
Q1)Which request gets record data and metadata?
I)GET /ui-api/record-ui/{recordId}
II)GET /ui-api/record-ui/{recordIds}
III)GET /ui-api/record-uis/{recordIds}
IV)GET /ui-api/records/{objectApiName}
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
II)GET /ui-api/record-ui/{recordIds}
[/bg_collapse]
Q2)When you use the child relationships parameter to get child records, how many levels of children does the response include?
I)1
II)2
III)3
IV)All
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
I)1
[/bg_collapse]
Q3)What does the mode parameter specify?
I)The form factor of the device the app is running on
II)The layout of the fields
III)The global state of the application or the world
IV)The task the user is performing: Create, View, or Edit
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
IV)The task the user is performing: Create, View, or Edit
[/bg_collapse]
#4.Build UI to Edit a Record
Hands-on Challenge
Earn +500 points
To Get Started
#If you haven’t already completed the challenges in the previous units, go back and complete them before attempting this challenge.
Challenge Requirements
#Use User Interface API and Workbench to add a billing address to the ABC Computing record
#Billing Street: 123 Main Street
#Billing City: Portland
#Billing State/Province: OR
#Billing Zip/Postal Code: 97202
#Billing Country: USA
My Trailhead Playground 1
Last used on 11/26/2021
Launch
watch video to earn +500 points
#5.Build UI for Dependent Picklists
Q1)Which property contains a map of an object’s dependent fields?
I)objectInfo.dependentFields
II)field.dependentFields
III)objectInfo.dependentGraph
IV)field.dependentGraph
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
I)objectInfo.dependentFields
[/bg_collapse]
Q2)Which property contains a list of a field’s controlling fields?
I)objectInfo.fields[fieldName].controlFields
II)objectInfo.controlFields
III)objectInfo.controllingFields
IV)objectInfo.fields[fieldName].controllingFields
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
IV)objectInfo.fields[fieldName].controllingFields
[/bg_collapse]
Q3)Which of the following resources gets all the picklist values for a record type?
I)/ui-api/object-info/{objectApiName}/{recordTypeId}
II)/ui-api/object-info/{objectApiName}/picklist-values/{recordTypeId}
III)/ui-api/object/{objectApiName}/picklist-values/{recordTypeId}
IV)/ui-api/object-info/{objectApiName}/picklists/{recordTypeId}
[bg_collapse view=”button-orange” color=”#4a4949″ expand_text=”Show Answers” collapse_text=”Close Answer” ]
II)/ui-api/object-info/{objectApiName}/picklist-values/{recordTypeId}
[/bg_collapse]