Book Image

Learning Salesforce Lightning Application Development

By : Mohit Shrivatsava
Book Image

Learning Salesforce Lightning Application Development

By: Mohit Shrivatsava

Overview of this book

Built on the Salesforce App Cloud, the new Salesforce Lightning Experience combines three major components: Lightning Design System, Lightning App Builder, and Lightning Components, to provide an enhanced user experience. This book will enable you to quickly create modern, enterprise apps with Lightning Component Framework. You will start by building simple Lightning Components and understanding the Lightning Components architecture. The chapters cover the basics of Lightning Component Framework semantics and syntax, the security features provided by Locker Service, and use of third-party libraries inside Lightning Components. The later chapters focus on debugging, performance tuning, testing using Lightning Testing Services, and how to publish Lightning Components on Salesforce AppExchange.
Table of Contents (22 chapters)
Title Page
PacktPub.com
Foreword
Contributors
Preface
Index

Adding custom components in Flow builder


In this section, we will give an example of how you can add a custom Lightning Component in Flows and pass data between the Flow input and the Lightning Component, and vice versa.

he following screenshot shows how you could pass parameters and values from Flow to a Lightning Component:

The last example covered in the previous section, Creating the lead finder app using Flow builder, had the last step for just displaying the ID of the record. How about using a lightning screen at the end of the Flow, where the user can edit more fields, based on the page layout set by the system administrator?

To achieve this, let's build a custom Lightning Component that us comprised of recordForm to add editing capabilities. For more information on recordForm, go to https://developer.Salesforce.com/docs/component-library/bundle/lightning:recordForm/documentation.

To make your component available for the Flow screen, the component needs to implement , lightning:availableForFlowscreens...