Help Needed: Calling Lightning Message Channel from SKUID Button to Salesforce
Hi everyone,
I am trying to call a Lightning Message Channel from a SKUID button to Salesforce and have been struggling with the implementation. Has anyone successfully achieved this? Any guidance or examples would be greatly appreciated!
Thank you in advance for your help.
Page 1 / 1
Hi Prashant, I believe you should be able to send messages between Skuid & Lightning using Aura events.
See the Skuid documentation for the publish event action and the Salesforce documentation on events. In your button, use the Skuid “publish event” action and specify the event name and channel name.
({ handleSkuidEvent: function(component, event, helper) { console.log('handleSkuidEvent called from event'); var eventName = event.getParam("name"); // Get the event name published by Skuid if (eventName === "event.name" || eventName === "another.event.name") { // Check if these are the events you care about var eventChannel = event.getParam("channel"); // If using event channels, check which channel the event is published on var eventData = event.getParam("data"); // Get the event's parameters published by Skuid if (eventData) { eventData = JSON.parse(eventData); // Parse the data for use // Assign the parsed data to variables for use within the Lightning component } } } })
2 Created a Skuid button with the action "Publish Event".
Conclusion:-
On clicking the button in Skuid, I expected the Aura component to call the Skuid event method. However, this is not happening. Can you guide me on where the mistake might be?
hi @Anna_Wiersema can you help me on this please
Hi Prashant, can you share more about what you’re setting up? What do you want to happen when a user presses the Skuid button?
You may find this skuid-labs project helpful: Open a Lightning Screen Flow from Skuid. When a button is pressed, it publishes an Aura event that communicates with a Lightning component to launch a flow. Even if your use case is a little different, you can reference this as an example of sending events from Skuid to Lightning.
hi @Anna_Wiersema
So, basically on click of Skuid button I want to call Lightning Message Channel which I developed in LWC.
So, the Route I am following like
Skuid Button -----→ Aura ------>LWC
Hi Prashant, looks like this reply came in during the community migration and got buried. Have you made any progress on this in the past week?
Was the documentation and test page I shared helpful? My understanding is that if you are using Aura events in your message channel.