Migrate $User, $Profile, $Label and $Api to Lightning Components

We can’t use $User in Lightning. We need to implement a server-side solution.

A template of Java web and Heroku

I've worked in several projects with Java, specially Java web using Tomcat as a web container and then Glassfish as application server. Lastly I'm working in Java projects deployed on Heroku, an amazing platform acquired by Salesorce. I faced many problems configuring deployment, JPA with Tomcat, oauth Salesforce flow, etc. so I decided to gather … Continue reading A template of Java web and Heroku

Java client for advanced pdf conversion using a Salesforce org

All we know renderAs="pdf". nThe good news is now Salesforce has an advanced pdf converter: renderAs="advanced_pdf" <apex:page sidebar="false" showHeader="false" renderAs="advanced_pdf">
 <html lang="en-US" >
 <head>
 <meta charset="UTF-8" />
 </head>
 <body>
 <h1>Hello, world!</h1>
 </body>
 </html>
</apex:page>Still this functionality is a pilot what It means that you need to create a case and someone from support will activate It in your org. "Advanced … Continue reading Java client for advanced pdf conversion using a Salesforce org

Salesforce client for an Apex RESTful web service

An example about how to consume a Salesforce api rest, in particular: /services/apexrest/ The example shows how to authenticate using username and password to get the access token and then how to do a request to this Salesforce web service: @RestResource(urlMapping='/hellorest') global class HelloRest { @HttpPost global static String echo(String name) { String echo = … Continue reading Salesforce client for an Apex RESTful web service