Back to LinkedIn posts

LinkedIn post 106

Sharing this practical solution to integrate Lightning Web Component (LWC) with 3rd...

Sharing this practical solution to integrate Lightning Web Component (LWC) with 3rd party APIs using Salesforce Platform Events and Mulesoft.
Thanks to PantherSchools! ๐Ÿ™

Instead of making API calls from the UI, publish a platform event from LWC, have MuleSoft pick it up, perform the external call, then publish a response event back to Salesforce. LWC listens and updates the UI.

I like it because it is a simple, secure, event-driven pattern without exposing credentials. And you can use anything capable of subscribing to Platform Events in place of Mulesoft, AWS Event Bridge, for example.

Even Agentforce can respond to Platform Events.
(via Apex Invocable.Action.createCustomAction() or via flow AI Agent Actions category)

๐Ÿ”— Read the article here: https://lnkd.in/gG7RWdXD

Sharing this practical solution to integrate Lightning Web Component (LWC) with 3rd...