Closed gaelguimini closed 1 year ago
Thanks for catching this @gaelguimini. I'm updating the docs.
BTW :) It would be great if pubsub api would actually reject the message if the publisher fails to provide the exact expected userId instead of having the event be published. It would help catching issues much easier than having the message fall into the void, not triggering nor logging anything in salesforce. Any chance you may be the right person to submit the issue ?
I'm not in charge of the server implementation but this is good feedback. Perhaps you can share it on the official Pub/Sub API repo?
Yep, will do :)
Hi @pozil,
I tried this client to mock an backend in order to make sure Flows subscribing to the Platform Events executed without error. It turns out, there actually is a check on the
CreatedById
field. Specifying a value that does not correspond to an active user does NOT trigger any subscription (flow or trigger) in salesforce.Readme should mention this.