Forum Replies Created

Page 1 of 3
  • Hi Archit,

    Thanks, it was very much informative and helpful.

  • Hi Archit,

    Here what is the meaning of 'uniqueness', when we work on SOQL?

  • Hi Ankit,

    Is it necessary to have this kind of formatting?

  • Hi,

    You can't customize the standard button in Salesforce, you may achieve this through custom logic.

  • Hi,

    Clone(): When you clone an sObject in Apex, it copies all the fields populated in that Apex object, not necessarily all fields on the record. ... If you do the following, the clone will not have LeadSource and Status cloned from the original record. It will use the default values for Leads.

    DEEPCLONE(): If a list is DeepCloned, it duplicates and doesn’t have any reference.

     

    Parameters of DEEPCLONE:
    Boolean opt_preserve_id – Whether cloned sObjects records ids are maintained.

    Boolean opt_preserve_readonly_timestamps– Whether cloned sObjects records read only system fields like createdDate, LastModifiedDtate, etc are maintained.

    Boolean opt_preserve_autonumbe– Whether cloned sObjects records auto number fields are maintained.

  • Hi,

    Salesforce1 supports documents that are uploaded through the Files action OR through Chatter. Documents and any attachments uploaded through the Notes and Attachments section on a record list view aren't guaranteed to be accessible in Salesforce1. The content can still appear under the section, but Salesforce can't guarantee they will be viewable/downloadable in Salesforce1.

  • Hi,

    you may use the following code,

    trigger IPAapproved on Outbound_Sales_Order__c (after update) {

    // Only do work when the field has changed
    Map<Id, Outbound_Sales_Order__c> changed = new Map<Id, Outbound_Sales_Order__c>();
    for (Outbound_Sales_Order__c oso : Trigger.new) {
    Outbound_Sales_Order__c old = Trigger.oldMap.get(oso.Id);
    if (oso.Buyer_Approved__c != old.Buyer_Approved__c) {
    changed.put(oso.Id, oso);
    }
    }
    if (changed.size() > 0) {
    // Only update when the field has the wrong value
    List<SO_Detail__c> updates = new List<SO_Detail__c>();
    for (SO_Detail__c detail : [
    SELECT Id, Outbound_Sales_Order__c, Buyer_Approved_Flag__c
    FROM SO_Detail__c
    WHERE Outbound_Sales_Order__c IN :changed.keySet()
    ]) {
    Outbound_Sales_Order__c oso = changed.get(detail.Outbound_Sales_Order__c);
    Boolean requiredFlag = oso.Buyer_Approved__c != null;
    if (detail.Buyer_Approved_Flag__c != requiredFlag) {
    detail.Buyer_Approved_Flag__c = requiredFlag;
    updates.add(detail);
    }
    }
    update updates;
    }
    }

  • Hi Amresh,

    This is not a Lightning issue, but a browser compatibility issue. IE 9-11 does not support external resources for svgs (e.g. the use tag with an xlink:href), so writing this inline is the best option. There are some really nasty hacks available online, such as This,

    Note: SVG components are not visible to community users as well!
    I hope it helps you.

  • Adarsh

    Member
    March 30, 2018 at 5:47 am in reply to: Can we use mixed sobjects dml in one transaction?

    Hi Ankit,

    You can use external ID fields as foreign keys to create parent and child records of different sObject types in a single step instead of creating the parent record first, querying its ID, and then creating the child record.

    ...

    You can create related records that are up to 10 levels deep. Also, the related records created in a single call must have different sObject types. For more information, see Creating Records for Different Object Types in the SOAP API Developer's Guide.

  • Adarsh

    Member
    March 30, 2018 at 5:41 am in reply to: How is schedule apex different from batch apex?

    Hi Ankit,

    To use batch Apex, write an Apex class that implements the Salesforce-provided interface Database.Batchable and then invoke the class programmatically.To monitor or stop the execution of the batch Apex job, from Setup, enter Apex Jobs in the Quick Find box, then select Apex Jobs.

    Salesforce schedules the class for execution at the specified time. Actual execution may be delayed based on service availability.You can only have 100 scheduled Apex jobs at one time. You can evaluate your current count by viewing the Scheduled Jobs page in Salesforce and creating a custom view with a type filter equal to “Scheduled Apex”. You can also programmatically query the CronTrigger and CronJobDetail objects to get the count of Apex scheduled jobs.

     

  • Adarsh

    Member
    March 30, 2018 at 5:37 am in reply to: What is the role of Scope parameter in Salesforce Batch Apex

    Hi Ankit,

    Batch Apex
    A Batch class allows you to define a single job that can be broken up into manageable chunks that will be processed separately.

    When to use Batch Apex
    One example is if you need to make a field update to every Account in your organization. If you have 10,001 Account records in your org, this is impossible without some way of breaking it up. So in the start() method, you define the query you're going to use in this batch context: 'select Id from Account'. Then the execute() method runs, but only receives a relatively short list of records (default 200). Within the execute(), everything runs in its own transactional context, which means almost all of the governor limits only apply to that block. Thus each time execute() is run, you are allowed 150 queries and 50,000 DML rows and so on. When that execute() is complete, a new one is instantiated with the next group of 200 Accounts, with a brand new set of governor limits. Finally the finish() method wraps up any loose ends as necessary, like sending a status email.

    Sample Batch Apex
    1) Start method is automatically called at the beginning of the apex job. This method will collect record or objects on which the operation should be performed. These record are divided into subtasks & passes those to execute method.

    2) Execute Method performs operation which we want to perform on the records fetched from start method.

    3) Finish method executes after all batches are processed. Use this method to send confirmation email notifications.

  • Hi neha,

    Only in webmerge you can use a merge field for 'Send Email From' to make it dynamic.

  • here all Output type Options available in following document generated system.

    Nintex-  PDF or Same as a template

    Conga - Default-PDF, Can modify with Parameters

    Webmerge - PDF, MS Word, MS Excel, HTML, Email, JPEG Image

  • Adarsh

    Member
    March 29, 2018 at 12:27 pm in reply to: what are system objects in salesforce?

    Hi,

    Standard objects are objects that are included with Salesforce. Common business objects like Account, Contact, Lead, and Opportunity are all standard objects.

  • Adarsh

    Member
    March 29, 2018 at 11:16 am in reply to: what is Salesforce Architecture ?

    The architecture of Salesforce can be put into layers for better understanding. The purpose and function of each layer is described below −

    Trusted Multitenant Cloud
    Here multiple instances of one or multiple applications operate independently in a shared environment. The instances are referred as tenants and they logically separate from each other while physically remaining in the same hardware. It is called trusted because of both its robust nature and high security.

    Scalable Metadata Platform
    The metadata-driven platform makes it easy for customization and scaling up as the amount of data or concurrent user instances increase.

    Enterprise Ecosystem
    The Enterprise Ecosystem of Sales is very large as a large number of partners contribute by creating and maintaining applications in this platform.

    CRM and Related Functionality
    Salesforce includes all aspects of CRM in its list of features and also extends it by providing features for creation of apps and integrating analytics, etc.

    APIs
    Salesforce provides a powerful suite of APIs. This helps to develop and customize the Salesforce1 Mobile App.

  • Adarsh

    Member
    March 29, 2018 at 6:51 am in reply to: Is it possible to create community user through Salesforce Apex?

    Hi Neha,

    Yes, you may use this method to accomplish it.

    public List<string> generateAliasAndNickName(string strToBeGenerated){
    if(strToBeGenerated !='' && strToBeGenerated.contains('.')){
    String[] arrSplitText = strToBeGenerated.split('\\.');
    return arrSplitText;
    }else if(strToBeGenerated !='' && !strToBeGenerated.contains('.')){
    return new List<String>{strToBeGenerated};
    }else{
    return null;
    }
    }
    public boolean validateIsDuplicateNickName(String strNickname){
    List<User> lstExistingUser = new List<User>();
    if(strNickname != null && strNickname != ''){
    lstExistingUser = [select id,communityNickname from User where communityNickname =:strNickname];
    }
    if(lstExistingUser != null && !lstExistingUser.isEmpty()){
    return true;
    }
    else
    return false;
    }

    and whenever it found a duplicate, concatenate the Nickname string with +1 increment.

    hope it helps 🙂

  • Hi Neha,

    Yes, we can not overwrite this standard functionality.

  • Adarsh

    Member
    March 29, 2018 at 6:06 am in reply to: URL Not hitting endpoint in SOAP Callout

    Hi Ankit,

    The unauthorized endpoint may be returned from the API callout you are doing and not because of Remote site settings.

    Note: For Apex code that is executed asynchronously, such as @future methods, Batch Apex jobs, or scheduled Apex jobs, getSessionId returns null.

    Hope it helps 🙂

  • Hi Ankit,

    You may go through with This link for better understanding.

    hope it helps 🙂

  • Adarsh

    Member
    March 29, 2018 at 5:58 am in reply to: What is call back URL in the connected app?

    Hi Ankit,

    Depending on which OAuth flow you use, Callback URL is typically the URL that a user’s browser is redirected to after successful authentication.

    Hope it helps 🙂

  • Hi All,

    I got my answer, thanks to all.

  • Hi Archit,

    In my question am asking about 'functional difference', not the structural difference. means what was the things are available or not available in lightning in comparison to salesforce classic.

  • Hi Archit,

    Pranav already gave the same answer, and am well satisfied with that.

    Thank you.

  • Adarsh

    Member
    March 28, 2018 at 11:09 am in reply to: Is it possible to create community user through Salesforce Apex?

    Yes afcouse,

    if (contact.Account.Owner.Role != null) {
    // Do your stuff u.firstName = '';

    User u = new User();
    u.lastName = 'Lstname';
    u.ContactId = contactLookup[0].Id;
    u.Username = 'username';
    u.Email = 'email';
    u.CommunityNickname = 'nickname';
    u.Alias = '';
    u.TimeZoneSidKey = 'America/Phoenix'; // Required
    u.LocaleSidKey = 'en_US'; // Required
    u.EmailEncodingKey = 'ISO-8859-1'; // Required
    u.LanguageLocaleKey = 'en_US'; // Required
    }

    Hope it helps 🙂

  • Adarsh

    Member
    March 28, 2018 at 11:05 am in reply to: Is it possible to create community user through Salesforce Apex?

    Hi Ankit,

    Yes, definitely it is possible through the apex.

Page 1 of 3