New Batch#100 (10th Nov 2021) - Salesforce Admin + Dev Training (WhatsApp: +91 - 8087988044) :https://t.co/p4F3oeQagK

Saturday, 16 February 2013

Update a record on which we are writing the trigger

Use before insert or before update if you need to update or insert the record on which you are writing the trigger.

Trigger populate_userlookup on Book__c (before insert, before update) {
  for(Book__c b : Trigger.new) {
   b.buyer__c = b.ownerId;
 }
}

Note: No need to use DML statements like insert or update in case of before triggers.

Upserting data from Cast Iron to Salesforce

 

1. Create an End Point to salesforce.com

Click on Projects Tab>Right click on Endpoints>Create>Salesforce.com as shown above
  

 2.Configure the Endpoint like below
Give Salesforce Username> Give Password along with Security Token>Select Login Normally>Click on Test Connetion  

It will display like below:

3. Select upsert activity from saleforce

Configure the activity like below


Pick appropriate end point as you already created

 
 Select Configure>Give Object type and External Id

Select Retry options

Map Inputs like below

Before that you need to create orchestration variables

 I have created four variables of String Type.

Each and every variable should  be initialized.

Output values if necessary map with orchestration variables


Click on Verify Activity

Like above it will display the results in instances

4. Now check salesforce wether record got inserted or updated.

Based on the External Id, If that id already present in saleforce then it will insert record, if the external id field value not present in saleforce then it will insert the value.


Sunday, 10 February 2013

CAMPAIGNS


Integration between Cast Iron and Microsoft SQL Server 2005

Connecting Cast Iron with Salesforce:
 
Inserting data from Cast Iron to Salesforce:

Inserting data from Cast Iron to Microsoft SQL Server 2005:

Inserting data from Microsoft SQL Server 2005 to Salesforce:

Inserting data from Salesforce to Microsoft SQL Server 2005:



Sunday, 3 February 2013

Difference between Interface and Abstract Class


Interface
Abstract Class
Declare with keyword Interface
Declare with keyword Abstract
It will not contain constructor
It may or may not contain constructor
By default all methods are public abstract methods.
It contains abstract methods and non abstract methods.
It contains only final variables
It contains final variables and instance variables
We can implement multiple interfaces
We can inherit only one abstract class

Labels