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
tk19tk19 

Platform Event message with >150KB data in a field

Hi there,

I have a requirement where my json data has more than 150KB size. We are publising this data through platform event message and Text Area Long is holding this data. Max size for Text Area Long in 128 KB. 

Is there a way we can pulish event message with more than 150 KB ?
What would be alternative oprtion to send >150KB of data ?

Thanks
tk
Shri RajShri Raj
There is a limit of 140KB on a single platform event message, so it's not possible to send a platform event message with more than 150KB of data.
Some alternatives to sending a large amount of data include:
Breaking up the data into smaller chunks and sending multiple messages
Compressing the data before sending
Storing the data in an external system and sending a reference to it in the platform event message.
Juber kimberJuber kimber
The max size limit for a single platform event message is 128 KB and can't be increased. However, you can use the following alternatives to send more than 150 KB of data:
Use multiple platform event messages to send chunks of the data.
Use External Service such as Amazon S3 or Azure Blob Storage to store the data and reference it in the platform event message.
Use a custom REST API to send the data to Salesforce.
https://www.landstaronline.me/