function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
utkarsh singh 53utkarsh singh 53 

Looks like there's a problem. Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details. Error ID: 1222772998-128046 (-971012730)

I have a component which creates a new record when clicked on the button. It was working fine earlier but now I am getting the above error.
bhanu_prakashbhanu_prakash
Hi utkarsh singh, 
Mark as best answer, If it resloves !!​​
Events are used to communicate between components. As you might know, we have 2 types of events - COMPONENT and APPLICATION. 
Create a lightning event and specifty the event type.  [File > Lightning Event ]
Create an attribute in event resource. This attribute holds the value which needs to be passed to other components.
Register the event
Pass the value to that attribute when you are firing event from a component.
Get the value of the attribute in your handler component.
You can check tralhead or https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_intro.htm https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_intro.htm

Mark as resloved if it helps :) :)
Thanks, 
Bhanu Prakash
visit ForceLearn.com  (https://www.forcelearn.com