Forum Replies Created

Page 10 of 16
  • MOHIT

    Member
    May 14, 2020 at 1:33 pm in reply to: How can we whitelist the IP address in Salesforce?

    Click on Setup within Salesforce > Enter the Network Access in Quick Find/Search Box and Click on Network Access > Create a New Trusted IP Range > Enter the Range, then Save and You are done.

  • Positive test Scenario
    Test to verify that the expected behaviour occurs through every expected permutation, that is, that the user filled out everything correctly and did not go past the limits.
    negative test Scenario
    There are likely limits to your applications, such as not being able to add a future date, not being able to specify a negative amount, and so on. You must test for the negative case and verify that the error messages are correctly produced as well as for the positive, within the limits cases.

  • MOHIT

    Member
    May 14, 2020 at 1:21 pm in reply to: What are the features of Schedulable class in Salesforce?

    The Apex Scheduler lets you delay execution so that you can run Apex classes at a specified time. This is ideal for daily or weekly maintenance tasks using Batch Apex. To take advantage of the scheduler, write an Apex class that implements the Schedulable interface, and then schedule it for execution on a specific schedule.
    You can only have 100 scheduled Apex jobs at one time and there are maximum number of scheduled Apex executions per a 24-hour period. See Execution Governors and Limits in the Resources section for details.
    Use extreme care if you’re planning to schedule a class from a trigger. You must be able to guarantee that the trigger won’t add more scheduled jobs than the limit.
    Synchronous Web service callouts are not supported from scheduled Apex. To be able to make callouts, make an asynchronous callout by placing the callout in a method annotated with @future(callout=true) and call this method from scheduled Apex. However, if your scheduled Apex executes a batch job, callouts are supported from the batch class.

  • MOHIT

    Member
    May 13, 2020 at 3:11 pm in reply to: How do we create a SOQL query in Salesforce?

    To use the Query Builder to query Salesforce data
    Select Tools | Query Builder | Query Builder.
    Drag tables (Salesforce objects) from the Object Explorer to the Diagram pane. Existing relationships display.
    Note: You cannot create new relationships when building a Salesforce SOQL query.
    If a pair of tables (objects) has more than one relationship, choose one relationship and remove the others.
    To add additional existing relationships, add multiple instances of a table.
    To restore a dropped relationship between tables, right-click the child table and select Restore FK.
    Select the columns (Salesforce fields) you want to add to the query. For more information, see Build Queries Visually.
    To use a SOQL date range function, select a date column and click in the Where field for that column. Then select a date range from the Date Range tab of the Where Condition dialog.
    Click Execute SQL to run the query.

  • Yes, we can include external JavaScript/CSS libraries in salesforce lightning components.

  • MOHIT

    Member
    May 13, 2020 at 2:57 pm in reply to: What is the Use of setHeader in Mock Class in Salesforce?
    • This reply was modified 4 years, 6 months ago by  MOHIT.
  • MOHIT

    Member
    May 13, 2020 at 2:51 pm in reply to: What are List of Global value providers in lightning?

    List of Global value providers :
    $globalID: returns globalId of a component.
    $Browser : returns information about hardware and operating system.
    $Label : allows to access labels outside your code.
    $Locale : returns information about user's preferred locale.
    $Resource : allows to refer JSP, stylesheets.

  • You can add global quick actions to almost any page that supports actions. Use global actions to let users log call details, create or update records, or send email, all without leaving the page they’re on. Global create actions enable users to create object records, but the new record has no direct relationship with other records.

  • MOHIT

    Member
    May 12, 2020 at 12:52 pm in reply to: What is Salesforce Standard Fields ?

    In Salesforce each standard object also comes with a set of pre-built fields known as standard fields. Identity, system, and name fields are standard on every object in Salesforce.

  • MOHIT

    Member
    May 12, 2020 at 12:52 pm in reply to: What is Salesforce Standard Fields?

    In Salesforce each standard object also comes with a set of pre-built fields known as standard fields. Identity, system, and name fields are standard on every object in Salesforce.

  • MOHIT

    Member
    May 11, 2020 at 2:36 pm in reply to: Prevent trigger from multiple time executions in Salesforce?

    To avoid these kind of situation we can use public class static variable.
    In StopRecursive class, we have a static variable which is set to true by default.
    public class StopRecursive {
    public static Boolean isFirstTime = true;
    }
    trigger SampleTrigger on Contact (after update){
    Set<String> accIdSet = new Set<String>();
    if(StopRecursive .isFirstTime){
    StopRecursive .isFirstTime = false;
    for(Contact conObj : Trigger.New){
    if(conObj.name != 'SFDC'){
    accIdSet.add(conObj.accountId);
    }
    }
    // Use accIdSet in some way
    }
    }
    Once this trigger fired the static variable value will set to false and trigger will not fire again.
    Hope this helps!

  • Test.startTest() and Test.stopTest() exist basically to permit you to reset as far as possible inside the setting of your test execution and to have the option to test nonconcurrent strategies. These two proclamations can't be called more than once inside a testMethod. They are not required to be utilized yet in certain circumstances might be basic. Offbeat (@future) calls made during the test are additionally finished when you call Test.stopTest() permitting you to test the aftereffects of nonconcurrent conduct in your code.
    Given a situation where you have to execute various questions and countless DML pushes so as to set up the information for the genuine code being tested, it may be inconceivable for you to run your test without these announcements.
    For example in this anecdotal situation, if during the arrangement of your test you expected to execute 99 SOQL questions and supplement 9,999 records to seed the organization with the information your code required for legitimate testing, if Salesforce didn't offer an instrument to reset as far as possible the code which you are testing would just have space for one more SOQL inquiry and one more record in a DML proclamation before it would hit one of those two cutoff points (100 inquiries and 10,000 records prepared by DML explanations separately) and toss an exemption.
    In the above situation, if you somehow managed to call Test.startTest() after your 99 inquiries were finished and your 9,999 columns were DML'd - as far as possible inside your test would have returned to zero and by then the code which you are testing would be running in a setting that all the more intently looks like a solitary exchange's cutoff points, all things considered. This component permits you to "overlook" the work that must be done to set up the test situation.

  • MOHIT

    Member
    May 11, 2020 at 2:25 pm in reply to: How To Convert 15 To 18 Digit Id Using Apex In Salesforce?

    String idSalesforce = 'a0D30000001n7Pi'; // change with your 15 chars ID
    if(idSalesforce.length() == 18){
    system.debug('Input Id is 18 char');
    }
    else if(idSalesforce.length() != 15){
    system.debug('Input Id error');
    }
    else{
    String suffix = '';
    String idOut= '';
    String InChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ012345';
    for(Integer i = 0; i<3; i++){
    Integer flags = 0;
    for(Integer j = 0; j<5; j++){
    String c = idSalesforce.substring(i*5+j, i*5+j+1);
    if((c.compareTo('A')>=0) && (c.compareTo('Z')<=0)){
    flags += 1 << j;
    }
    }
    suffix = suffix + InChars.substring(flags, flags+1);
    }
    idOut = idSalesforce + suffix;
    system.debug('Id Output 15: '+idSalesforce);
    system.debug('Id Output 18: '+idOut);
    }

  • MOHIT

    Member
    April 30, 2020 at 2:30 pm in reply to: What is CAN SPAM in Salesforce Marketing Cloud?

    The CAN-SPAM Act regulates commercial email messages sent in the United States. The acronym stands for Controlling the Assault of Non-Solicited Marketing.
    Here are seven easy ways to make sure you aren't spamming:
    Provide an unsubscribe option.
    Honor opt-outs within 10 business days.
    Use legitimate "from" email addresses.
    Don't use deceitful subject lines or headers.
    Display your mailing address.
    The message should contain at least one sentence.
    Monitor your messaging (especially if you contract this out).

  • MOHIT

    Member
    April 30, 2020 at 2:29 pm in reply to: What Does Identity Mean Anyway in Salesforce?

    Salesforce Identity lets you give the right people the right access to the right resources at the right time. You control who can access your orgs and who can use apps running on the Salesforce Platform, on-premises, in other clouds, and on mobile devices.
    You can probably see how controlling access helps you improve your org’s security. But did you know that you can increase security while also making it easier for your users to get to the apps and services they need to do their jobs? Well, you totally can!
    When users can sign in once to access all the apps that they need, everyone benefits.
    Users don’t have to remember lots of usernames and passwords.
    Admins spend less time dealing with user login woes.
    Developers build web and mobile applications that work seamlessly with existing business processes.
    CIOs strengthen security and trust while harnessing their authentication investment.
    Customers collaborate and get their questions answered without hassle.
    Partners integrate their solutions with your Salesforce org, making it a big win for everyone.
    With Salesforce Identity, you log in once to access many connected apps.

  • MOHIT

    Member
    April 29, 2020 at 2:39 pm in reply to: What are the Limitations of Meta Data API in Salesforce ?

    You can deploy or retrieve up to 10,000 files at once. AppExchange packages use different limits. In API version 43.0 and 44.0, AppExchange packages can contain up to 12,500 files. In API version 45.0, AppExchange packages can contain up to 17,500 files. In API version 46.0, AppExchange packages can contain up to 22,000 files. In API version 47.0 and later, AppExchange packages can contain up to 30,000 files. The maximum size of the deployed or retrieved .zip file is 39 MB. If the files are uncompressed in an unzipped folder, the size limit is 400 MB. Note the following:
    If using the Ant Migration Tool to deploy an unzipped folder, all files in the folder are compressed first. The maximum size of uncompressed components in an unzipped folder is 400 MB or less depending on the compression ratio. If the files have a high compression ratio, you can migrate a total of approximately 400 MB because the compressed size would be under 39 MB. However, if the components can't be compressed much, like binary static resources, you can migrate less than 400 MB.
    Metadata API base-64 encodes components after they’re compressed. The resulting .zip file can't exceed 50 MB, which is the limit for SOAP messages. Base-64 encoding increases the size of the payload, so your compressed payload can't exceed approximately 39 MB before encoding.
    You can perform a retrieve() call for a big object only if its index is defined. If a big object is created in Setup and doesn’t yet have an index defined, you can’t retrieve it.

  • MOHIT

    Member
    April 29, 2020 at 2:37 pm in reply to: What are the uses of debugs log in Salesforce?

    Use debug logs to track events that occur in your org. Debug logs are generated when you have active user-based trace flags, when you run Apex tests, and when executed code or API requests include debugging parameters or headers.
    A debug log can record database operations, system processes, and errors that occur when executing a transaction or running unit tests. Debug logs can contain information about:
    Database changes
    HTTP callouts
    Apex errors
    Resources used by Apex
    Automated workflow processes, such as:
    Workflow rules
    Assignment rules
    Approval processes
    Validation rules

  • MOHIT

    Member
    April 29, 2020 at 2:36 pm in reply to: How debug logs are set in Salesforce?

    To activate debug logging for users, Apex classes, and Apex triggers, configure trace flags and debug levels in the Developer Console or in Setup. Each trace flag includes a debug level, start time, end time, and log type. The trace flag’s log type specifies the entity you’re tracing.
    You can retain and manage debug logs for specific users, including yourself, and for classes and triggers. Setting class and trigger trace flags doesn’t cause logs to be generated or saved. Class and trigger trace flags override other logging levels, including logging levels set by user trace flags, but they don’t cause logging to occur. If logging is enabled when classes or triggers execute, logs are generated at the time of execution.
    Debug logs have the following limits.
    Each debug log must be 20 MB or smaller. Debug logs that are larger than 20 MB are reduced in size by removing older log lines, such as log lines for earlier System.debug statements. The log lines can be removed from any location, not just the start of the debug log.
    System debug logs are retained for 24 hours. Monitoring debug logs are retained for seven days.
    If you generate more than 1,000 MB of debug logs in a 15-minute window, your trace flags are disabled. We send an email to the users who last modified the trace flags, informing them that they can re-enable the trace flag in 15 minutes.
    When your org accumulates more than 1,000 MB of debug logs, we prevent users in the org from adding or editing trace flags. To add or edit trace flags so that you can generate more logs after you reach the limit, delete some debug logs.

  • tree, inspect component attributes, and profile component performance. The extension also helps you to understand the sequence of event firing and handling.
    The extension helps you to:
    Navigate the component tree in your app, inspect components and their associated DOM elements.
    Identify performance bottlenecks by looking at a graph of component creation time.
    Debug server interactions faster by monitoring and modifying responses.
    Test the fault tolerance of your app by simulating error conditions or dropped action responses.
    Track the sequence of event firing and handling for one or more actions.

  • MOHIT

    Member
    April 28, 2020 at 5:57 pm in reply to: What is the use of ANT tool in Salesforce?

    The Ant Migration Tool is a Java/Ant-based command-line utility for moving metadata between a local directory and a Salesforce organization. You can use the Ant Migration Tool to retrieve components, create scripted deployment, and repeat deployment patterns.

  • MOHIT

    Member
    April 28, 2020 at 5:40 pm in reply to: What is fieldset in Salesforce?

    A field set is a grouping of fields for an object. Creating field sets in Salesforce is an easy way to dynamically query fields and dynamically binding the fields to display field sets on your Visualforce pages which can save you a big chunk of time. Field set is an out of the box feature provided by Salesforce and you can create field sets for Standard as well as custom objects and supports the inclusion of custom and Standard fields.

  • MOHIT

    Member
    April 27, 2020 at 2:31 pm in reply to: What is Social Studio in Salesforce Marketing Cloud?

    Social Studio is a one-stop solution to manage, schedule, create, and monitor posts. You can organize posts by brand, region, or multiple teams and individuals in a unified interface. Social Studio offers powerful real-time publishing and engagement.
    Social Studio offers powerful real-time publishing and engagement platform for content marketers, plus the comprehensive content performance by social network and time frame. A single interface offers a fully customizable team-based collaboration platform that analyzes channel and content performance. Analyze current trends and recommend new content ideas.
    With Social Studio you can:
    Create and configure workspaces to quickly organize teams by region, either across the world, country, or down the street. Organize workspaces by brand or business function. You can use workspaces to promote collaboration for campaigns, content creation, and publishing.
    Use workspace calendars to create and design full preview content with full preview. You can manage your future and past content calendar with fully featured planning and scheduling tools designed for teams.
    Create content and schedule perfect social content tailored to specific social networks using our intelligent social network-centric platform beyond just a text entry box.
    Promote your content by buying Facebook ads right from Social Studio and integrating with Social.com Ad campaigns.
    Preview and approve content before going live using easy to create customized approval rules. Approval rules can protect your brand integrity and ensuring a consistent voice. Notifications for approvers appear in Social Studio, by email. If logged in and using Social Studio Mobile, notifications appear as push notifications.
    Engage and respond to your social audience and focus on the changing content. You can use shortcuts and bulk actions aligning objectives, teams, and permissions with other content goals.
    Automate common actions and processes to classify, report, and route content using Macros.
    Measure how content is performing (either in real-time or past performance) and view the analytics by post, subgroup, label, campaign, or particular target.

  • MOHIT

    Member
    April 27, 2020 at 2:30 pm in reply to: How do you add padding to the lightning component in Salesforce?

    Classes prefixed by slds-p- are used for adding padding. Classes prefixed in slds-m- are used for adding margin

  • MOHIT

    Member
    April 27, 2020 at 2:27 pm in reply to: What is SLDS truncate in Salesforce?

    Slds-truncate
    Usage: It can be applied to:- Any element
    Outcome:Creates truncated text
    Required:No, optional element or modifier
    Comments:Truncation will occur at the parent width if a width is not specified

  • MOHIT

    Member
    April 27, 2020 at 2:25 pm in reply to: In Salesforce, how Lightning user permission can be assigned?

    If your org has purchased Lightning Console permission set licenses, you can assign the licenses to users with Salesforce Platform licenses to add access to Lightning console apps.
    REQUIRED EDITIONS AND USER PERMISSIONS
    Available in: Lightning Experience
    Available for an extra cost in: Essentials, Professional, Enterprise, Performance, Unlimited, and Developer Editions
    USER PERMISSIONS NEEDED
    To create permission sets: Manage Profiles and Permission Sets
    To assign permission sets: Assign Permission Sets
    Each Salesforce Platform license user needs a Lightning Console permission set license to use Lightning console apps. Creating a Lightning Console permission set and assigning it to a user auto-assigns the Lightning Console permission set license to that user.

Page 10 of 16