Skip to main content

Questions tagged [publish-subscribe]

Filter by
Sorted by
Tagged with
0 votes
1 answer
68 views

communicate click between LWC to FlexCard

I have a LWC embedded in my FlexCard which displays conditionally. I want the LWC to close when a button on it is clicked. Here is my LWC code: import pubsub from 'omnistudio/pubsub'; ...
0 votes
1 answer
1k views

Can an LWC be both a subscriber and publisher using message channels?

I have two (A and B)LWCs that do not have a parent child relationship. I am able to send messages from A to B. However, when I try to send the message in reverse after processing the results of the ...
1 vote
2 answers
2k views

Publishing an event to Salesforce via CometD

I am trying to create a external client to publish Platform events to Salesforce event bus. I have used REST API to do the same but I wanted to do it via a true 'Publish'. My guess is that this will ...
0 votes
0 answers
39 views

Feasibility and what tools should be put in place for this functionality?

Good morning, I have been asked for a new feature but I am not sure of its feasibility We have a call center that uses Aircall (In Lightning Experience) I was asked that when a colleague picks up a ...
1 vote
1 answer
66 views

Is manual configuration always required when subscribing to Change Data Capture events via the Pub/Sub API?

I'm creating an application that subscribes to events via the Pub/Sub API. So for example, I'm subscribing to /data/AccountChangeEvent to receive notifications of Account changes. For this to work on ...
0 votes
0 answers
61 views

Subscribing to a Canvas App published event in an Aura Component controller

We have an Aura component that contains a Canvas App. The Canvas App uses the Canvas SDK to publish events. This is my Aura component's controller... ({ doInit: function (component, event, helper) { ...
0 votes
1 answer
63 views

Async implementation of EmpApi's Subscribe method

Need to wait the Subscribe operation to be done to get the message from Platform Event to use that message in the Apex call in LWC. You can check the code below. // Apex method call to insert metadata ...
1 vote
0 answers
133 views

Can't Subscribe to Platform Events using Pub/Sub API from Ruby

Struggling here and would love some advice - likely a configuration issue, but I can't seem to sort it out. I think the basics of the service and auth are working fine - I can make the following call: ...
3 votes
1 answer
451 views

Platform Event messages not receiving for bulk record updates with partial success

I have a Platform Event that gets published in the After Update Trigger when a certain field gets updated in the Account record. I also have subscribed to the channel via LWC. So far it shows below ...
-1 votes
1 answer
426 views

Notify external system with custom or Standard Platform Event for unhandled exceptions in batch job

There is a simple scenario: we have defined an Apex Batch job that runs at night and we have to notify an external system in the event that an unhandled exception occurs when the job runs. What is the ...
7 votes
2 answers
3k views

Inter-namespace communication with LWC

I need to develop two components, in two separate namespaces, that can interact with each other. As per the product documentation it is not possible (yet) to write a component that uses a component ...
0 votes
1 answer
92 views

Is it possible for a SF to SF gRPC pub sub connection?

All the examples I have come across show client applications in various languages create a connection. Is it possible for a SF to SF gRPC pub sub connection? That is not one using empAPi/CometD
1 vote
2 answers
1k views

LMS Subscribe Not Working - Message is not received

I have created LMS to pass the payload between 2 LWC. Message payload is published but payload is not getting received on the subscriber component. Publish LWC is located on Opportunity Record Page. ...
1 vote
1 answer
653 views

Is it possible to subscribe to events in a LWC flow screen component?

I have an LWC FSC (flow screen component). I am trying to subscribe to a CDC event, but the subscription never seems to execute. The same LWC when displayed on a lightning record page does subscribe ...
1 vote
1 answer
588 views

Are there any tools like the Microsoft Azure Service Bus Explorer for monitoring Salesforce Platform Events?

I'm looking for a good way to monitor the Platform Events being published by our org, so I can check that they are actually being published and have the expected content. On Azure, I could use the ...
0 votes
1 answer
722 views

Platform event Fired from two objects

We are planning to build a platform event, which should publish changes from two objects. Consider there is an insert/update of records in Account object or Customer__c object. We need to insert/...
-1 votes
1 answer
1k views

Does Platform Event count against API Limit if we are publish the events to Non Salesforce System

Does Platform Event count against API Limit if we are publish the events to Non Salesforce System... As far i have understood,Platform Event pubiish doesnt count against API limit in an org. If we ...
2 votes
1 answer
2k views

Platform event not getting subscribed

I have created a platform event with Publish Immediately behavior. It is very basic one. Once it is published, I want to upsert a custom object records. I am publishing it through developer console ...
4 votes
2 answers
7k views

Platform Event Apex Triggers: Are they always executed in the context of the Automated Process user?

We have been using Platform Events for a while now for certain core processing. When we created our Platform Events I don't recall there being an option to specify how publishing behaved. Publishing ...
0 votes
1 answer
262 views

Platform Events for child is getting published before parent

I am publishing the events in order such that Parent event is published first then the child. Using System.debug I can see that the controller goes to publish event method for Parent and then the ...
0 votes
0 answers
819 views

LWC pub sub : subscribing component fetching stale data from apex

I am having two separate LWC components on the App Page. One is for adding Team members(Call it A 'members-skills') and other for showing all the team members(Call it B 'Team list'). Current ...
0 votes
1 answer
675 views

I am using publish-subscribe model to get the data from one lwc component to another lwc component

in my component B after saving the data to the database I am creating a publish call as shown: handleSubmit(){ var dataList = {}; dataList.Id = this.data[0].Id; dataList.Name =...
0 votes
0 answers
78 views

Update a custom component with standard component events

Can we listen for standard or toast events on LWC with a pubsub e.g. for the purpose of using a standard component to update a custom component?