Loading tutorials
@api recordId works on a record page. Here you learn what a wire adapter is and how the @wire decorator connects one to your component. The chapters that follow cover getRecord2 min read@api decorator, and the basics of Salesforce objects, fields, and record IDs. You will wire getRecord to a component, read its result, and see where it fails.2 min read@api recordId works on a record page, and that you have seen @wire(getRecord, ...) in the previous chapter. Here you will learn how the $ prefix makes a wire 3 min readgetRecord with a reactive $recordId. It also assumes you know how to import field references from @salesforce/schema. Here you decide which fields go in fields and which go in optionalFields.2 min read@api decorator, and how recordId is set on a record page. It also assumes you have already wired getRecord to a property. Here you will learn what the wire hands back and how to ha2 min read@api recordId, and wire getRecord to a property. You will learn how to read field values out of the wire result without digging through the raw response yourself.2 min read@api recordId, you know async/await, and you have already wired getRecord to display a record. Reading uses a wire adapter. Updating does not. updateRecord is an imperative function that you call when the user acts, and it re2 min read@wire with getRecord, and use async/await. Reads and updates fail in different ways, so each needs its own error handling.2 min readgetRecord to a component, read data and error from the result, and call updateRecord. It also assumes you know async/await and how recordId reaches a record page component.3 min readgetRecord with $recordId, read the data and error result, and import fields from @salesforce/schema. The three adapters below live in the same lightning/uiRecordApi module. They use the same Lightning Data Service cache and the same wire pattern, but eac2 min readdescribe, it, expect), the AccountSummary component from earlier chapters, and async/await. You will test that component without a Salesforce org.2 min readgetRecord and updateRecord, and that you know the @api recordId pattern. It helps you decide when that code is worth writing and when a base component does the job for you.2 min read