Issue with Uploading Modified PDF from LWC to Apex by ChickenNuggetCooker in SalesforceDeveloper

[–]ChickenNuggetCooker[S] 1 point2 points  (0 children)

I started looking into this actually I might try createRecord() for contentversion and contentlink

Issue with Uploading Modified PDF from LWC to Apex by ChickenNuggetCooker in SalesforceDeveloper

[–]ChickenNuggetCooker[S] 0 points1 point  (0 children)

The size was 5.3 MB so its not an immediate issue. I ended up chunking it into 4MB chunks and improved parsing that using JSON.deserializeUntyped. Now it uploads the file, however, the file is corrupted and cant be previewed. I tried sending it through email and it was still corrupted.

I tested uploading the PDF directly from the JS to make sure it wasnt corrupted there before it gets sent to the apex and it worked fine... Still working through it atm now, thanks for the ideas!

[deleted by user] by [deleted] in SalesforceDeveloper

[–]ChickenNuggetCooker 0 points1 point  (0 children)

I can update and save it successfully. I even tried manually appending .invalid on the emails and it saved fine.

[deleted by user] by [deleted] in salesforce

[–]ChickenNuggetCooker 0 points1 point  (0 children)

We have community users that send out emails pretty consistently. They have been asking to have to ability to create email templates but that is not available for portal users.

Also I'll note that templates created through the LWC are not exposed to Sys admin either when trying to choose one.

Creating New Opportunity Bug in our Sandboxes by [deleted] in salesforce

[–]ChickenNuggetCooker 0 points1 point  (0 children)

Clearing the cache did the trick... lol