Forum Replies Created

Page 1 of 12
  • Hi,

    ou are using "List" just add your email address to the list so you will also get one copy of that mail.
    Please check below code (below skeleton for your reference):

    Messaging.MassEmailMessage massEmail = new Messaging.MassEmailMessage();
    massEmail.setTargetObjectIds(userIds);
    massEmail.setSaveAsActivity(false);
    massEmail.setTemplateId(templateId);
    List<Messaging.Email> emails = new List<Messaging.Email>{massEmail};
    emails.add('your email id');
    Messaging.SendEmailResult[] results = Messaging.sendEmail(emails, false);

    You can change user emailid and you can provide your email id. But your user will get notification about emailid change

  • Hi,

    Here is an example that will explain how to write a unit tests for a wrapper class.

    wrapper:

    public class submitPsOSimpleServiceDetailWrapper{
    public string providerId{get;set;}
    public string patientId{get;set;}
    public string productId{get;set;}
    public PsOSimpleWrapper.PaitentInformationWrapper patientDetails{get;set;}

    }

    public class PsOSimpleWrapper{
    public class PaitentInformationWrapper{
    public string PatientfirstName {get;set;}
    public string PatientMI {get;set;}
    public string PatientlastName {get;set;}

    }
    }

    test class code:

    public static testmethod void Test_1(){

    string psosimplejson='{"providerId":"","patientId":"","productId":"","patientDetails":[patientDetails: {"PatientfirstName":"","PatientMI":"","PatientlastName":"","PatientdateOfBirth":""}]}';

    string str= PsOSimpleServiceController.savePaitentInformation(psosimplejson);
    //have covered all the wrappers in test class

    }

  • Nikita

    Member
    December 4, 2019 at 10:33 am in reply to: what is the use case of application event in Salesforce lightning?

    Hi ,

    Here’s a simple use case of using an application event to update an attribute in another component.

    • A user clicks a button in the notifier component, aeNotifier.cmp.
    • The client-side controller for aeNotifier.cmp sets a message in a component event and fires the event.
    • The handler component, aeHandler.cmp, handles the fired event.
    • The client-side controller for aeHandler.cmp sets an attribute in aeHandler.cmp based on the data sent in the event.

    for more detail ,you may refer https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_application_example.htm

  • Nikita

    Member
    December 4, 2019 at 10:30 am in reply to: what is the use of a case component event in Salesforce lightning?

    Hi ,

    Here’s a simple use case of using a component event to update an attribute in another component.

    • A user clicks a button in the notifier component, ceNotifier.cmp.
    • The client-side controller for ceNotifier.cmp sets a message in a component event and fires the event.
    • The handler component, ceHandler.cmp, contains the notifier component, and handles the fired event.
    • The client-side controller for ceHandler.cmp sets an attribute in ceHandler.cmp based on the data sent in the event.

    for more detail you can refer https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/events_component_example.htm

  • Hi,

    Lightning Experience brings an all new user interface to your Salesforce organization, but that doesn’t mean your Visualforce apps stop working. Visualforce pages work in Lightning Experience, many without any revisions. Things have moved around, though, and there are some chores you’ll want to complete to make sure your Visualforce pages work the way you expect as your users switch between Lightning Experience and Salesforce Classic. And there are a very few features that, alas, don’t work in Lightning Experience.

  • Hi,

    Yes, we can include the external Library into Lightning Component in Salesforce. To reference a JavaScript library, upload it as a static resource and use a <ltng:require> tag in your .cmp or .app markup.
    The framework’s content security policy mandates that external JavaScript libraries must be uploaded to Salesforce static resources.

  • Nikita

    Member
    December 4, 2019 at 7:56 am in reply to: When we can not use LDS in Lightning Component in salesforce?

    Hi Piyush,

    Lightning Data Service can only be used in Lightning Experience and Salesforce app. It cannot be used in Lightning components for Visualforce pages or other containers.

  • Hi Prachi,

    You can refer https://developer.salesforce.com/forums/?id=906F0000000BancIAC

    may it will help you.

  • Nikita

    Member
    November 29, 2019 at 1:30 pm in reply to: What are the use cases of slds-hide and slds-show classes in Salesforce?

    Hi,

    To hide any type of element from view and from screen readers, use the .slds-hide class. Once hidden, you can display the content by using JavaScript to swap .slds-hide with .slds-show; This class will set the display property to block. If you need to display your hidden element as inline or inline-block, you can use the .slds-show_inline or .slds-show_inline-block classes, respectively.

    Note that .slds-hide and any of the .slds-show-* utility classes should not be used together at the same time on the same element; doing so will cause your element to remain hidden.

  • Hi,

    Wrapper Class in Apex Salesforce: A wrapper or container class is a class, a data structure, or an abstract data type which contains different objects or collection of objects as its members.

    A wrapper class is a custom object defined by a programmer wherein he defines the wrapper class properties. Consider a custom object in salesforce, what do you have in it? fields right? different fields of different data types. Similarly wrapper class is a custom class that has different data types or properties as per requirement. We can wrap different object types or any other types in a wrapper class.

    In the Visualforce most important use case is to display a table of records with a checkbox and then process only the records that are selected. In this example, we are displaying list of accounts with checkbox. End user can select account and then click on the Show Selected accounts button. Then selected account will be displayed in table.

  • Nikita

    Member
    November 29, 2019 at 6:28 am in reply to: Explain the use of custom settings in Salesforce?

    Hi Piyush,

    Custom settings are similar to custom objects. Application developers can create custom sets of data and associate custom data for an organization, profile, or specific user. All custom settings data is exposed in the application cache, which enables efficient access without the cost of repeated queries to the database. Formula fields, validation rules, flows, Apex, and SOAP API can then use this data.

    There are two types of custom settings.

    • List Custom Settings
    • Hierarchy Custom Settings

    The following examples illustrate how you can use custom settings.

    • A shipping application requires users to fill in the country codes for international deliveries. By creating a list setting of all country codes, users have quick access to this data without needing to query the database.
    • An application displays a map of account locations, the best route to take, and traffic conditions. This information is useful for sales reps, but account executives only want to see account locations. By creating a hierarchy setting with custom checkbox fields for route and traffic, you can enable this data for just the “Sales Rep” profile.
  • Hi,

    Even without communities licenses, external users have some access to your communities. Purchase Community Cloud licenses to allow members to log in or give access to Salesforce objects based on your business needs.If you intend to use your community as a public knowledge base for unauthenticated (or guest) users, you don’t have to purchase communities licenses. For example, guest users can access publicly available community pages to read content, review knowledge articles, and perform tasks that don’t require them to log in (such as creating cases).

  • Nikita

    Member
    November 28, 2019 at 2:30 pm in reply to: Can internal user licenses be used for external users in Salesforce?

    Hi,

    Salesforce highly discourages the use of internal licenses for external use cases. Obviously, you can use internal licenses for employee community use cases or to give your employees access to a community or portal that is external-facing. However, purchasing and using internal licenses for external users carries high-security risks.

  • Nikita

    Member
    November 28, 2019 at 2:26 pm in reply to: What are the different types of Communities User Licenses in Salesforce?

    Hi,

    Each community license can be either a member-based license or a login-based license, totaling nine different community licenses:

    MEMBER-BASED COMMUNITY LICENSES

    • Customer Community
    • Customer Community Plus
    • Partner Community
    • Lightning External Apps Plus
    • Lightning External Apps Starter

    LOGIN-BASED COMMUNITY LICENSES

    • Customer Community Login License
    • Customer Community Plus Login License
    • Partner Community Login License
    • Lightning External Apps Plus Login License
    • Lightning External Apps Starter Login License

    A Community member-based license works like a standard Salesforce internal license: external users with a member-based license are able to access a community as many times as they want. The only difference is that external users do not have access to internal org. Login-based licenses are a bit different.

  • Hi,

    In Enterprise, Performance, and Unlimited orgs, you can create up to 100 communities without buying communities licenses. However, to create communities using the Partner Central template, you must purchase at least one Partner Community license. Purchasing a community license also allows you to create external profiles (beyond the guest user profile) to access your communities.

  • Nikita

    Member
    November 28, 2019 at 2:20 pm in reply to: How to implement process indicator in Salesforce lightning component?

    Hi,

    A lightning:progressIndicator component displays a horizontal list of steps in a process, indicating the number of steps in a given process, the current step, as well as prior steps completed. For example, Sales Path uses a progress indicator to guide sales reps through the stages of the sales process.

    <aura:component>
        <lightning:progressIndicator currentStep="3" type="base" hasError="true" variant="base">
            <lightning:progressStep label="Step 1" value="1"/>
            <lightning:progressStep label="Step 2" value="2"/>
            <lightning:progressStep label="Step 3" value="3"/>
            <lightning:progressStep label="Step 4" value="4"/>
        </lightning:progressIndicator>
    </aura:component>
    

     

  • Hi Piyush,

    A custom report type can contain up to 60 object references. For example, if you select the maximum limit of four object relationships for a report type, then you could select fields via lookup from an additional 56 objects.

  • Nikita

    Member
    November 27, 2019 at 6:42 am in reply to: When to Use Chatter REST API in salesforce?

    Hi Piyush,

    Use Chatter REST API to:

    • Build a mobile app.
    • Integrate a third-party web application with Salesforce so it can notify groups of users about events.
    • Display a feed on an external system, such as an intranet site, after users are authenticated.
    • Make feeds actionable and integrated with third-party sites. For example, an app that posts a Chatter item to Twitter whenever the post includes #tweet hashtag.
    • Create simple games that interact with the feed for notifications.
    • Creating a custom, branded skin for Chatter for your organization.
  • Nikita

    Member
    November 27, 2019 at 6:40 am in reply to: What are possible Ways to Integrate with Salesforce Force.com?

    Hi Piyush

    Speaking further on the different layers and integration features available at each level for an enterprise-level application, we have:

    • User Interface
    • Business Logic
    • Data

    User Interface Integration is one great way to surface various applications inside Salesforce with little redesign of each individual app. It provides your users a single point of entry into multiple applications. The most relevant example is Facebook Apps, which appears to be in the Facebook instance but in reality, the content is served from different application vendors.

    Business Logic Integration uses Apex Web Services for Inbound and Apex Callouts for Outbound. It typically handles a scenario where business logic is spread across several applications to implement the complete end-to-end business process. An example would be building complex logic on the data received before committing it into Salesforce.

    Data Integration uses SOAP APIs and REST APIs. It typically handles data synchronization requirements, where one application in an enterprise acts as the primary source for a particular business object, like Account. It requires no coding in Salesforce, which is an advantage, but then it cannot implement any custom logic.

     

  • Nikita

    Member
    November 27, 2019 at 6:37 am in reply to: What is webservices in salesforce?

    Hi Piyush,

    A Web Service is can be defined by following ways:

    • Is a client server application or application component for communication.
    • Method of communication between two devices over network.
    • Is a software system for interoperable machine to machine communication.
    • Is a collection of standards or protocols for exchanging information between two devices or application.

    There are mainly two types of web services.

    • SOAP web services.
    • RESTful web services.
  • Nikita

    Member
    November 26, 2019 at 2:42 pm in reply to: What is User Role Hierarchy in salesforce?

    Hi Deepak,

    Salesforce offers a user role hierarchy that you can use with sharing settings to determine the levels of access that users have to your Salesforce org’s data. Roles within the hierarchy affect access on key components such as records and reports

  • Nikita

    Member
    November 26, 2019 at 2:40 pm in reply to: How many roles can I create in Salesforce org?

    Hi Deepak,

    You can create up to 500 roles for your organization.

  • Hi Yogesh,

    Add Multiple Users. You can quickly add up to 10 users at a time to your organization.

  • Hi,

    TO navigate you do not need to create any custom Event "force:navigateToSObject " will do the trick.

    var navEvt = $A.get("e.force:navigateToSObject");
        navEvt.setParams({
          "recordId": "Pass the Record Id of budget record Here",
          "slideDevName": "related"
        });
        navEvt.fire();

    for more detail, you can refer https://developer.salesforce.com/docs/component-library/bundle/force:navigateToSObject/documentation

  • Nikita

    Member
    November 25, 2019 at 11:45 am in reply to: How can I allow a user to create a campaign in Salesforce?

    Hi Prachi,

    Create Permission set to give access to the Campaign records,

    Goto yourName-->setup-->Administration setup-->Manage users-->Permission sets
    Then click new to create new permission set, give full right for the campaign object in the permission set and then assign it to the user.

    Hopes this will help to resolve this issue.

Page 1 of 12