Hi , So you have created a Rest class and exposed it. At this stage you know how you can test this using Workbench. Ex: If your class name is : getAccountDetails which is expecting 2 parameters. then in the workbench, you will go to rest Explorer and select Get/Post based on the requirement and paste the URL something similar to this. /services/apexrest/CKDomain/getAccountDetails?Param1=1100055515&Param2=13706195 And BAM!!!! Everything looks fine. But in real time scenarios, you might want to give this endpoint URL to some other system (Say SAP/Oracle) and you want to test from your end before informing them about the endpoint URL. So how can we achieve this. There are many ways to test this and I prefer using Postman app for this. Install Postman from here. Now , In order to successfully receive a Rest call out from Other system to Salesforce , there are multiple auth techniques. I would like to use the most commonly used auth technique - OAuth 2.0 As per my k
Hey Guys , In my previous post we have seen how to pass value from Parent to Child. Now lets see how you can pass value from Child to parent. Lightning Event : There are 2 types events and they are ' COMPONENT ' and ' APPLICATION ' event. 1st we will see how COMPONENT event works and here we will reuse the same components which you created in previous blog. Think like this. There is a child component(ChildComp1_PC1) which updates some value and you need that updated value in the parent component(ParentComp1). You are gonna remember these steps, Step 1: Create an event Step 2: Register that event in component (in our scenario we will register in child comp). Step 3: When the event is fired, have a logic to capture that event. so first you will create an event and register that in a child component (cause it is the one who is going to fire in order to send some values to it's parent ) so registering the event