How to create Task using Apex in Salesforce?
Sample Code: Task T = new Task(); T.Type = 'Email'; T.Description = ''; //string T.OwnerId = ''; //user id T.WhatId = ''; //record id insert T; Cheers!!!
Sample Code: Task T = new Task(); T.Type = 'Email'; T.Description = ''; //string T.OwnerId = ''; //user id T.WhatId = ''; //record id insert T; Cheers!!!
Sample Code: System.debug('Current Year is ' + Date.Today().Year()); System.debug('Current Month is ' + Date.Today().Month()); System.debug('Current Day is ....
A "Connected App" is an application that can connect to salesforce.com over Identity and Data APIs. Connected Apps use the standard OAuth 2.0 protocol to authenticate, provide Single Sign-On, and ....
Use <apex:outputField/> to show the currency symbol, instead of using <apex:outputText/>. Sample Code: Visualforce page: <apex:page controller="Sample"> <apex:pageblock > <apex:pageBlockTable value="{!OpptyList}" var="O"> <apex:column value="{!O.Name}"/> <apex:column > <apex:outputField value="{!O.Amount}"/> </apex:column> </apex:pageBlockTable> ....
These objects doesn't support DML operations from Apex, but it supports SOQL(Querying) AccountTerritoryAssignmentRule AccountTerritoryAssignmentRuleItem ApexComponent ApexPage BusinessHours BusinessProcess CategoryNode CurrencyType DatedConversionRate ProcessInstance Profile RecordType SelfServiceUser StaticResource UserAccountTeamMember UserTerritory WebLink
With the Winter '12 release, Salesforce.com support APEX SOQL only (not DML) across the Assignment and Permission set objects which includes User Permisions :( To know other standard objects which ....
Sample Code: List<Group> TempPGList = new List<Group>(); String SOQL = 'SELECT Id, Name FROM Group WHERE Type = 'Regular'';TempPGList = Database.Query(SOQL);
Sample Code: Visualforce page: <apex:page controller="Sample"> <apex:pageblock > <apex:pageBlockTable value="{!MembList}" var="M"> <apex:column value="{!M.Name}"/> <apex:column > <apex:outputText value="{! IF((M.Age__c == null), 'NA', M.Age__c) }"/> </apex:column> </apex:pageBlockTable> </apex:pageblock></apex:page> Apex Controller: public class ....
Sample Code: Visualforce page: <apex:page controller="Sample"> <apex:pageblock > <apex:pageBlockTable value="{!MembList}" var="M"> <apex:column value="{!M.Name}"/> <apex:column > <apex:outputText value="{! IF((M.Age__c == null), 'NA', M.Age__c) }"/> </apex:column> </apex:pageBlockTable> </apex:pageblock> </apex:page> Apex Controller: public ....
1. Go to Setup --> Build --> Customize --> Opportunity --> Opportunity Team. 2. Enable Team Selling. 3. Select the Page Layouts. 4. Go to Setup --> Build --> Customize ....