Category: Aura Framework

Display Flow Stages with Progress Indicator in Flow Screen

Do you know that now you can show your flow’s progress by writing a simple aura component that will track flow stages and display the progress? In this post, I am going to show you how you can quickly configure this in your flow. Create the Aura ComponentThe good news is that Salesforce already provides the code which you can reuse and create your own Aura component. You can get the code here.Creating the FlowYou need to create a screen flow. Configuration steps are given below -Create StagesFor the flow we will be creating, let’s assume we have three stages as -Stage: About Me with Order: 10Stage: Upload Photo with Order: 20Stage: Update Address with Order: 30Below is the screenshot of the “About Me” stage. You can create other stages the same way, just remember the order as this will define how the stages will be displayed on your flow screen.Create the First ScreenNow you can create the first screen and add the lightning aura component which you have already created as mentioned in the first step. The aura component which I developed is “DisplayProgress”.API Name – You can put any nameCurrent Stage – {!$Flow.CurrentStage}Stages – {!$Flow.ActiveStages}Manually assign variables (advanced) – This should be checkedNote – Do not put anything under “Store Output Values to Select Variables”Create the AssignmentNow when your user will click next on the first screen, you will move...

Read More

How to restrict @AuraEnabled method access for Authenticated users

As we all know security is always the number 1 priority for Salesforce, so there is a critical update coming to all of our Salesforce environments. This will change the way we provide access to AuraEnabled Apex methods. From this post, you can expect -What problem this update is going to solve?When can we expect this update in our environments?Show me the problemShow me the solution(s)Show me all the places where I need to make this changeWhat problem this update is going to solve?When we write our Lightning Component or Lightning Web Component today, for any type of server operation, we write Apex classes and annotate the method with @AuraEnabled. We don’t have an option today to restrict the access to our AuraEnabled methods today. That is why Salesforce came up with this important critical update where you need to specify who can access your AuraEnabled methods. I will explain this update with one example later in this post.When can we expect this update in our environments?This update “Restrict @AuraEnabled Apex methods to authenticated users” came as part of Salesforce’s Winter ’20 release. Enforcement will start on August 9th, 2020.Show me the problemLet’s say we have this below Lightning Web Component where we pass a string to the AuraEnable controller class and then class return list of Contacts. Finally component is going to display the list of contacts. Below is the...

Read More

Kitchener Developer Group Event: Introduction to Lightning Web Component by Mohith Srivastava

Special thanks to our speaker, Mohith Srivastava, for sharing his knowledge on Lightning Web Component. Here comes the presentation and recording.Presentation: Introduction to lightning web component from Sudipta Deb ☁ Recording:Please register to Kitchener, Canada Developer Group for all our future...

Read More

Earlier Posts

  • 2024 (31)
  • 2023 (47)
  • 2022 (25)
  • 2021 (35)
  • 2020 (41)
  • 2019 (13)
  • 2018 (16)
  • 2017 (14)
  • 2016 (18)
  • 2015 (74)
  • 2014 (20)