Forum Replies Created

Page 4 of 7
  • Suraj

    Member
    April 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

    Member
    April 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.

  • Hi Saurabh,

    No,we can't control the sequence in which Triggers and Automation rules run in Salesforce.

  • Hi Saurabh,

    As of now there is no such functionality exists in Salesforce.

  • Suraj

    Member
    April 13, 2017 at 1:30 pm in reply to: Why users can't be deleted from salesforce.com?

    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

    Member
    April 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

    Member
    April 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

    Member
    April 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.

  • Suraj

    Member
    April 12, 2017 at 1:41 pm in reply to: What are available portals in Salesforce?

    Hi Manpreet,

    In Salesforce we have 3 Types of Portals

    • Customer Portal
    • Partner Portal
    • Self Service Portal
  • Suraj

    Member
    April 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.

  • 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.

  • Suraj

    Member
    April 12, 2017 at 7:47 am in reply to: STANDARD_PRICE_NOT_DEFINED Exception?

    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

    Member
    April 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.

  • Suraj

    Member
    April 11, 2017 at 1:44 pm in reply to: MIXED_DML_OPERATIOn Exception?

    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.

     

  • Hi Manpreet,

    No. This is default and cannot be changed.

  • Hi 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

  • Suraj

    Member
    April 11, 2017 at 1:24 pm in reply to: How sales force is useful in tracking sales?

    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

  • Hi Saurabh,

    Lookup record will return only first matching record where as Fast Look will return all matching record.

  • Suraj

    Member
    April 11, 2017 at 1:03 pm in reply to: How we can Recursive trigger in salesforce?

    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

    Member
    April 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.

  • 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

     

  • Suraj

    Member
    April 10, 2017 at 1:49 pm in reply to: Data Loss in Salesforce?

    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
  • 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.

  • Suraj

    Member
    April 10, 2017 at 9:55 am in reply to: What is Support process in salesforce?

    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.

  • 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.

Page 4 of 7