Posts

Showing posts from 2017

Email Alert to Parent object's email field without apex

Image
Workflow! When you hear this term, a fantastic way to automate many business processes comes to your mind. Using workflows in Salesforce, you can do many things and this needs only a few clicks.

You can perform various actions using worklow like updating a field, creating tasks, sending outbound messages and email alerts.

A few years back, we got a requirement in a project where an email notification needs to be sent to opportunity owner and owner's manager if the opportunity stage turns to "Closed Won". So the requirement was simple, we just created a workflow rule with the specified criteria and created a workflow action to send the email alert. wait, wait, wait!! It was looking simple but while adding recipients to the email alert, we got stuck. There is a limitation associated with workflow email alert, we can add email fields as recipients if those are on the object for which we are creating workflow. In our scenario we needed to send email alert to the owner's ma…

Salesforce Voice Assistant

Image

Upload a File as Large as 2GB in Salesforce Using a Visualforce Page

Image
 Listed in Top 20 Salesforce Articles of 2016  by Rainforce (WalkMe)  http://rainforce.walkme.com/nectar-salesforce-gods-top-20-salesforce-articles-2016/

Recently, we got a requirement in a project to upload a file into Salesforce that could be as large as 2GB, using a Visualforce page. We created a Visualforce page and used the apex:inputFile component, but received an error upon upload because apex:inputFile has a limitation. The largest file size users can upload with Visualforce is 10MB. This posed a big limitation for the requirement. We used a different approach to meet this requirement. This is a tricky problem to solve, and needs some jQuery stuff. We decided to use the chatter:feed component in a Visualforce page. This component embeds Chatter in the Visualforce page, and allows users to upload files as large as 2GB as Chatter feed in Salesforce. It’s just as pictured below when we upload a file using this component:













As for keeping track of the files uploaded, we created a custom …