CategorySalesforce.com

Integrating Salesforce Rest API with SFCC

I

1. The process is to integrate the Sales cloud and commerce cloud using REST API. The aim is to generate leads in the Sales clou1d by making a callout in SFCC. 2. Below is the apex code to generate lead : @RESTResource(urlMapping='/LeadCreate/') global class CreateLeadApi { @HTTPPost global static String creatingLeadRecord(){ String fName,lName, comp; String fieldName, fieldValue; RestRequest req...

Features of Salesforce B2B Commerce

F

CategoryFeatureDescriptionStoreNameThe name by which people know your business/company.DescriptionA statement or a piece of writing that tells something or someone about businessSupported LanguagesThe languages to make available to buyers. Language options come from Translation Workbench.Default LanguageThe Default language that is available on your web store.Price BookPrice book displays a price...

Entitlement and SLA management in Salesforce Using Entitlement Process, Milestone and Service Contracts.

E

Entitlement Management:  It helps you to provide precise and perfect support to customer. It provides features that let you define, enforce and track the service level as a part of customer support management. And you can track the working bandwidth of your customer support Agents. Entitlement Process :  Entitlement processes are timelines that include all the steps (or milestones) that your...

Sending a VF Page as Attachment in Mail through Apex Class

S

Following code can be used for sending a vf page as an attachment with an email: public class Gene_PDF{ public PageReference sendPdf(){                PageReference pdf = Page.mail_pdf;//mail_pdf is the name of vf page      pdf.getParameters().put('email',email);      // goToNextPage('email');     Blob body;                try{         body = pdf.getContent();      }catch(VisualforceException e){...

Using @future method in salesforce

U

Using @future method in salesforce and its limitations Salesforce provides different ways to run your code asynchronously like Batch apex, @future method. In this post we will see how to use @future method, its advantages, limitations and the precautions that we need to follow while using it. We can use the @future methods in cases where methods are long running. In such cases we can prevent...

Platform Cache varient 2 – Org Cache

P

Continuing with Platform Cache…. 2. Org Cache : The second variant of Platform Cache is the Org Cache. Org Cache does the same thing of storing the data in session, but the data stored is accessible through out the org, irrespective of  user, which is not the case with Session Cache. If user1 is storing a  value1 in org cache, it is accessible by user2 also. We can have different partitions...

Bundles in Steelbrick CPQ

B

Steelbrick CPQ allows users to define bundles to be added to Quote. This proves very helpful as it saves time of adding every product individually. For achieving this there are two objects in CPQ. The first is Features. Features is basically definition of the bundle. Features can be added from related lists of Products. The product that has a feature becomes the master. So whenever the Master is...

Rest API Call for GET and POST

R

@RestResource(urlMapping=’/Account/*’) global with sharing class MyRestResource { @HttpGet global static Account doGet() { RestRequest req = RestContext.request; RestResponse res = RestContext.response; String accountId = req.requestURI.substring(req.requestURI.lastIndexOf(‘/’)+1); Account result = [SELECT Id, Name, Phone, Website FROM Account WHERE Id = :accountId];...

What are Salesforce ID’s composed of?

W

The Id Field Type is a base-62 encoded string. Each character can be one of 62 possible values: a lowercase letter (a-z) – 26 values an uppercase letter (A-Z) – 26 values a numeric digit (0-9) – 10 values As there is a combination of lower and upper case letters the casing of the 15 character Id has significance. E.g. 50130000000014 c is a different ID from 50130000000014C...

Create Short URLs with Bitly

C

This post is related to how to integrate Salesforce and Bitly to create short urls to include in communication Messages. Step 1. Sign-up for Bitly To use the Bitly API you will need to register. You can sign-up using Twitter, Facebook, or create a new login with their service. I chose to create a Bitly specific login using below url. Step 2. Create Bitly Apex Classes I developed below class, that...

Category