Suraj Bisht
IndividualForum Replies Created
-
Suraj
MemberApril 18, 2017 at 1:45 pm in reply to: How to avoid recursive trigger calls in Salesforce?Hi Manpreet,
In order to avoid the situation of recursive call, make sure your trigger is getting executed only one time. To do so, you can create a class with a static boolean variable with default value true.
In the trigger, before executing your code keep a check that the variable is true or not.
Once you check, make the variable false.
-
Suraj
MemberApril 18, 2017 at 11:01 am in reply to: How import wizard does not allow duplicate values in salesforce?Hi Saurabh,
Import Wizard uses external id of records to differentiate the records.
-
Suraj
MemberApril 13, 2017 at 1:39 pm in reply to: Can we control the sequence in which Triggers and Automation rules run in Salesforce?Hi Saurabh,
No,we can't control the sequence in which Triggers and Automation rules run in Salesforce.
-
Suraj
MemberApril 13, 2017 at 1:38 pm in reply to: Can we mass delete reports using Apex (Anonymous Apex) in Salesforce?Hi Saurabh,
As of now there is no such functionality exists in Salesforce.
-
Hi Saurabh,
You cannot delete users from Salesforce. You can remove their license or deactivate them to remove access to the system, but because they may still own records, they cannot be deleted.
-
Suraj
MemberApril 13, 2017 at 1:28 pm in reply to: On which objects can we create Queues in salesforce?Hi Saurabh,
You can create Queue on Case,Order,lead, Knowledge article version and custom object.
-
Suraj
MemberApril 13, 2017 at 9:59 am in reply to: Adding Products to Opportunity Line items in salesforce?Hi Manpreet,
Try this,
public class ProductEntry {
public static void CustomProductadd(){
Product2 pro=new Product2(name ='ProductName',IsActive=true);
insert pro;
PriceBook2 customprice=new PriceBook2(name='CustomPriceBook',IsActive=true);
insert customprice;
PriceBook2 standardPb=[select id from Pricebook2 where isStandard=true];
PriceBookEntry pbeStandard=new PriceBookEntry(Product2Id=pro.Id,PriceBook2Id=standardPb.Id,isActive=true,UnitPrice=1);
insert pbeStandard;
PricebookEntry pbe=new PriceBookEntry(Product2Id=pro.Id,PriceBook2Id=customprice.Id,isActive=true,UnitPrice=1);
insert pbe;
OpportunityLineItem lineitem=new OpportunityLineItem(OpportunityId='OPPID',PriceBookEntryId=pbe.Id,Quantity=1,Unitprice=1);
insert lineitem;
}
} -
Suraj
MemberApril 13, 2017 at 4:59 am in reply to: How to get Ip Address of User in Salesforce Apex?Hi Saurabh,
You can use this,
String ipAddress = ApexPages.currentPage().getHeaders().get('X-Salesforce-SIP');
'True-Client-IP' - when the request is coming via the caching integration.
'X-Salesforce-SIP' - when the request is not via caching integration (sandbox, developer edition orgs) or via the secure url.
-
Hi Manpreet,
In Salesforce we have 3 Types of Portals
- Customer Portal
- Partner Portal
- Self Service Portal
-
Suraj
MemberApril 12, 2017 at 1:31 pm in reply to: Login Hours and Login IP Ranges at Org and Profile level?Hi Manpreet,
Login IP ranges :Login IP ranges control login access for a user profile. Users with profile login IPs can only log in from IP addresses within the range; otherwise, they’re denied access to Salesforce. Login IP ranges are typically used to restrict login IPs at a granular level.
Login Hours :Login Hours Sets the hours when users with a particular profile can use the system.
-
Suraj
MemberApril 12, 2017 at 8:06 am in reply to: Can we change encrypted datatype field into any other datatype field in salesforce?if yes then how?Hi Saurabh,
No,Neither we can't change the field type of Encrypted Type field to other Fields nor existing custom fields cannot be converted into encrypted fields.
-
Hi Manpreet,
While creating custom PriceBook You need to
- first add the Standard PriceBook in PricebookEntry by passing Standard PriceBookId in the required PriceBook2Id within PricebookEntry.
- Then add your custom PriceBook to PriceBookEntry.
Hope this will help you.
-
Suraj
MemberApril 12, 2017 at 6:45 am in reply to: What is maximum batch size of data loader in salesforce?Hi Saurabh,
The maximum value is 200 and The maximum value is 10,000 if the Use Bulk API option is selected.
-
Hi Manpreet,
This exception come when we perform DML operation on standard/custom object and global objects(User, UserRole, Group, GroupMember, Permission Set, etc...) in same transaction.
To avoid this exception, we should perform DML operation on standard/custom object records in a different transaction.
-
Suraj
MemberApril 11, 2017 at 1:39 pm in reply to: Is it possible to bypass Grant Access Using Hierarchies in case of standard objects in Salesforce?Hi Manpreet,
No. This is default and cannot be changed.
-
Suraj
MemberApril 11, 2017 at 1:34 pm in reply to: Write a query: I have 1 parent(account) and 1 child(contact),how will you get F.name,L.name from child and email from the account when Organization name in accHi Manpreet,
You can use this query
select name, (select firstname,lastname from contacts) from Account where name='CTS'
You can change the fields to the Required Fields according to your need
-
Hi Manpreet,
Sales force records all the basic details like the number of customers served daily, daily sales volume, sales manager detailed reports, sales numbers in each month or quarter. Also, it keeps a track on the repeat customer, which is key to success for any sales organization
-
Suraj
MemberApril 11, 2017 at 1:12 pm in reply to: What are difference between lookup and fast lookup data elements in flow in salesforce?Hi Saurabh,
Lookup record will return only first matching record where as Fast Look will return all matching record.
-
Hi Saurabh,
You can use a method which returns a Boolean to check whether the trigger is running first or again (recursive).
trigger updateTrigger on anyObject(after update) {
if(checkRecursive.runOnce())
{
//write your code here
}}
runOnce is the method inside CheckRecursive Class which return Boolean.
public Class checkRecursive{
private static boolean run = true;
public static boolean runOnce(){
if(run){
run=false;
return true;
}else{
return run;
}
}
} -
Suraj
MemberApril 11, 2017 at 9:46 am in reply to: can reports be deleted using data loader in salesforce?Hi Saurabh,
No,It is not possible to delete reports using dataloader, you can only extract reports data through Dataloader. The report object is a ReadOnly object if accessed by Dataloader or any other api tool.
You can use the inbuilt Mass Delete Report option from the setup menu or use either eclipse or some other IDE's to delete the reports in mass.
-
Suraj
MemberApril 10, 2017 at 1:52 pm in reply to: How to give permissions to two fields for different users who belongs to different profiles in Salesforce?Hi Manpreet,
You can use Permission Sets.Users can have only one profile but, depending on the Salesforce edition, they can have multiple permission sets. You can assign permission sets to various types of users, regardless of their profiles. For Further Use this link
-
Hi Manpreet,
Data loss may cause due to following reasons
- Changing data and date-time
- Altering to percent, number and currency from other data types
- Changing from multi-select picklist, checkbox, auto number to other types
- Altering to multi-select picklist from any type except picklist
- Changing to auto-number except from text
- Changing from text-area to e-mail, phone, URL and text
-
Suraj
MemberApril 10, 2017 at 10:17 am in reply to: There are two id's 15 digit and 18 digit can anyone explain difference between these two in Salesforce?Hi Saurabh,
A 15 digit Salesforce ID is case sensitive. Ex: 00571541001ZwTi and 00571541001ZWTI are different.
A 18 digit Salesforce ID is case in-sensitive. Ex: 00571541001ZwTiSUZ and 00571541001ZWTISUZ are same. -
Hi Saurabh,
Support Process is only for the "Status" picklist, as you might know. The picklist values available in the status of a case record type determine a support process. It is only a business relevant feature as the status field is the most process-specific field on a case. The status field cannot be customized on a record type, it can only be customized in a support process.
-
Suraj
MemberApril 10, 2017 at 9:51 am in reply to: Maximum number of controllers can be used for a Salesforce Visualforce Page?Hi Bhanu,
You can have a standard object controller or a custom object controller and multiple controller extensions. there is no upper limit on the extensions.