Posts Tagged ‘salesforce apex’
Salesforce Apex: Switch Statements
Were you aware that Salesforce introduced Switch Statement in Summer 18’ release? The Switch statements will enable developers to write APEX code without having to write nested if-else blocks, eventually resulting in a more readable, maintainable code. It supports the following: Long Integer String Enum SObject The SObject type can be directly validated against a…
Read MoreSalesforce: Accessing Metadata API via Javascript
Recently, Salesforce has enabled the metadata API in Apex. However, this is only limited to page layout and custom metadata types at the moment. This is a good news for a developer like me as I need it to achieve this “natively” within Salesforce. So what are the options that are available for the time…
Read MoreWeDid: Salesforce Skedulo Case Integration
Challenges This companies main revenue source is derived from the repair services and additional products they provide to the commercial and residential business. The technicians are required to repair items, keep track of replacement products issued to the customers, collect signatures, take images of the issues found, advise the next technician to onsite of the job…
Read MoreSalesforce: Problem Deleting Batchable Apex Class
Recently, I encountered a weird error when trying to delete a batchable Apex class from Salesforce instance. The error was: This apex class is referenced elsewhere in salesforce.com. Remove the usage and try again. The reference was pointing to an Apex Job. Initially, this was a bit weird as I had checked…
Read MoreWeDid: Warranty Service Management using Case
Challenges A machinery company sells products to their users directly or via a dealer. When the product has an issue, they will ring up the machinery company. The serial number checking process is manual and not efficient. When a technician is sent on site, a work order/invoice require signature immediately. This is not possible at…
Read MoreWeDid:Asset Rental Automation
Challenges An Art Investment company build a portfolio for their investors and rent it out on behalf of them. In order to build the portfolio, different art pieces will be included. The cost/margin of each art piece needs to be calculated. The rental price of each art piece will require calculation too. All calculations are…
Read MoreWeDid: Automated Record Link
Challenges Certain products that are up for sale require product activation code. In Salesforce, a custom object is created to store all the product activation code records. Whenever an opportunity is closed won, the opportunity products should be assigned with activation codes and details. This can then be generated out in PDF form and sent…
Read MoreWeDid:Salesforce Create Monthly Opportunity Automatically on Subscription Duration
Challenges The company sells product base on monthly subscription. There is a challenge for them to forecast their monthly revenue base on Account Industry. At this moment, Salesforce only supports forecast by users or by products. In order for the forecast to work accordingly (by Account Industry), user has to manually create a series of…
Read MoreWeDid: Salesforce Community Customisation
Challenges The customer would like to host a community forum in Salesforce which allows customers to discuss and contribute ideas by using Salesforce Chatter function. They also would like to consolidate the information that they have in the website to the community forum. Solution: The Salesforce Visualforce page is used to build a custom…
Read MoreWeDid: Custom workflow in Salesforce
Challenges The customer is a professional property buyers group in Australia. They help their clients to analyse, purchase and manage the properties. As the whole process is tedious and hard to manage (e.g, information gathering, activity tracking, customer meetings and etc), they would like to implement a clean and lean workflow wizard in Salesforce that…
Read More