Forum Replies Created

Page 10 of 24
  • Shweta

    Member
    August 20, 2020 at 3:50 pm in reply to: How do I query an external object in Salesforce?

    Soql of external object: select Id, Name__c, AirDate__c FROM Advertisements__x WHERE Name__c LIKE '%Early%'here Advertisements__x is an External object.

  • Shweta

    Member
    August 20, 2020 at 3:47 pm in reply to: What is the use of aura:set in Lightning Component in Salesforce?

    <aura:set>: this lightning component is used in markup to set the value of an attribute inherited from a component or event. e.g.:
    <div><div><aura:component>

    <div><div> <ui:button label="Save">

    <div><div> <aura:set attribute="buttonTitle" value="Click" to=" save="" the="" record=""></aura:set>

    <div><div> </ui:button>

    <div><div></aura:component>

    </div></div></div></div></div></div></div></div></div></div>

  • <div><font face="georgia, serif">Contains(): This function returns true if and only if the string that called the method contains the specified sequence of characters in the substring. </font>
    <font color="#333333" face="georgia, serif">Equals():</font><font color="#333333" face="DSCDefaultFontRegular"> </font><font color="#333333" face="georgia, serif">This method is used to perform case sensitive comparisons. In contrast, the == operator performs case sensitive string comparisons to match apex semantics.</font>
    <div>

    </div></div>

    • This reply was modified 4 years, 3 months ago by  Shweta.
  • Shweta

    Member
    August 19, 2020 at 5:49 pm in reply to: What is IdeaStandardController in Apex?

    IdeaStandardController: These objects offer ideas-specific functionality in addition to what is provided by the standard controller and the method in this IdeaStandardController object is called by & operated on a particular instance of an IdeaStandardController.

  • isAvailable(): In session class, If it returns true, it means the cache is available for use. The session cache is not available when an active session is not present.

  • Shweta

    Member
    August 19, 2020 at 5:22 pm in reply to: What is DataSource Namespace in Salesforce ?

    DataSource Namespace: It provides the classes for the Apex connector framework. By Using the Apex connector framework, We can develop a custom adapter for Salesforce Connect. After this Connect your Salesforce organization to any data anywhere via the Salesforce connect custom adapter.

  • Shweta

    Member
    August 17, 2020 at 6:19 am in reply to: What is the difference between process and workflow?

    <div>Process: It is a sequence of tasks. In this, Not every process is automated. the process is the way a team coordinates and communicates to deliver the result. It can exist without the workflow.<div>
    <div>Workflow: It is a way to make the sequence more productive and efficient. It can help to do achieve the result in the best way. It is the consequence of the existence of the process. so it can not exist without the corresponding process.
    <div>

    </div></div></div></div>

  • Shweta

    Member
    August 17, 2020 at 5:33 am in reply to: What is apex manage sharing in Salesforce?

    <div>Apex Manage Sharing: It allows you to use apex code to build a sophisticated and dynamic sharing setting that is not otherwise possible. it provides developers with the ability to support an application's particular sharing requirements programmatically through apex or the SOAP API. it is similar to force.com managed sharing.</div>

  • Shweta

    Member
    August 17, 2020 at 5:27 am in reply to: What is feed item in Salesforce?

    FeedItem: It represents the entry in the feed, such as includes text posts, link posts, content posts, and changes in a record. It is a type of feed element.

  • Shweta

    Member
    August 14, 2020 at 3:38 pm in reply to: What is CLI command for Heroku in Salesforce?

    <div>The Heroku CLI command is an essential part of using Heroku. Use it to perform nearly any Heroku-related task right from your terminal.</div>

  • Shweta

    Member
    August 14, 2020 at 3:34 pm in reply to: How to create an app with Heroku in Salesforce?

    To create an app with Heroku by following these steps:
    1. From your browser, navigate to the Heroku dashboard, https://id.heroku.com.
    2. Click on New.
    3. Select Create new app.
    4. Click on Create app.
    5. Once your app is created you are redirected to the Heroku dashboard. Click Open App.

  • Shweta

    Member
    August 14, 2020 at 3:26 pm in reply to: What is Apex code similar to?

    <div>Apex is more similar to Java then Javascript. </div>

  • Shweta

    Member
    August 13, 2020 at 4:51 pm in reply to: How to call apex class in Processbuilder?

    <div>We can call apex class in process builder by following these steps:</div>1. Enter a name for this action.
    2. Choose an Apex class by entering the name of the class to filter results or select a class from the drop-down list.
    3. If the class includes an invocable variable, you can manually enter values or reference field values from a related record.

    • To set values for sObject variables and sObject list values, reference an object’s related records, for example, all child contact records associated with the Account object that started the process.
    • To set a value for a primitive list variable (String, Integer, Time, and so on), select the String value type and enter a value in the text input field. You can’t pass multiple values to lists.

    4. Click on the Save button.

  • Shweta

    Member
    August 13, 2020 at 4:46 pm in reply to: how many process builder per object in salesforce ?

    We have just one process builder per object in Salesforce.

  • Shweta

    Member
    August 13, 2020 at 4:44 pm in reply to: How many flows can create in salesforce ?

    We can create 5 flow in each Salesforce org.

  • autolaunched:

    • Flow with No Flow Trigger: Doesn’t require user interaction. This flow type doesn’t support screens, local actions, choices, or choice sets.
    • Flow with a Schedule Trigger: Runs only from a schedule. This flow type doesn’t support user interaction, screens, local actions, choices, or choice sets.

    Screen flow: Requires user interaction because it includes screens, local actions, steps, choices, or dynamic choices. Screen flows don’t support Pause elements.

  • Shweta

    Member
    August 12, 2020 at 4:24 pm in reply to: How to write a test class for a Queueable apex?

    Queueable Apex Class:
    public class AddPrimaryContact implements Queueable{ private Contact c; private String state; public AddPrimaryContact(Contact c,String state){ this.c = c; this.state = state; } public void execute(QueueableContext context){ List<Account> acctlist=[Select id,name,(Select id,firstname,lastname from Contacts) from Account where BillingState =:state limit 200]; List<Contact> conlist = new List<Contact>(); for(Account acc :acctlist){ Contact con = c.clone(false,false,false,false); con.AccountId = acc.Id; conlist.add(con); } if(conlist.size()>0){ insert conlist; } }}Queueable Apex test Class:@isTestpublic class AddPrimaryContactTest { @isTest static void TestList() { List<Account> Teste = new List <Account>(); for(Integer i=0;i<50;i++) { Teste.add(new Account(BillingState = 'CA', name = 'Test'+i)); } for(Integer j=0;j<50;j++) { Teste.add(new Account(BillingState = 'NY', name = 'Test'+j)); } insert Teste; Contact co = new Contact(); co.FirstName='demo'; co.LastName ='demo'; insert co; String state = 'CA'; AddPrimaryContact apc = new AddPrimaryContact(co, state); Test.startTest(); System.enqueueJob(apc); Test.stopTest(); } }

  • Shweta

    Member
    August 12, 2020 at 4:22 pm in reply to: Can we call Queueable from trigger in Apex?

    We can call a Queueable class from Trigger simply place use “System.enqueueJob(new ClassName())”.

  • Shweta

    Member
    August 11, 2020 at 12:32 pm in reply to: What are the difference between a Role and Profile?

    <div>Role: It controls the data level access and also decides which type of data can be viewed by which user. it maintains the record level access in the org.</div>Profile: It controls the object level access. We can control which field a user can see by enabling the Field Level Security in Profile settings. We can assign different Record Types and Page Layouts to a Profile to decide which fields the user with a particular profile can access.

  • Shweta

    Member
    August 11, 2020 at 11:43 am in reply to: How do I enable locker services in Salesforce?

    To enable the locker service for a component, set the API version to 40.0. We can disable LockerService for a component by setting the API version lower than 40.0 for the component.

  • Shweta

    Member
    August 11, 2020 at 11:35 am in reply to: Can you use SQL in Salesforce?

    Yes, We can use SQL to join Salesforce data with product data.

  • Shweta

    Member
    August 10, 2020 at 2:50 pm in reply to: What are share groups in salesforce?

    <div>Share Group: It allows you to share records owned by high volume community and portal users with internal and external users. It applies across communities or portals and associated with sharing sets.</div>

  • Custom Label: It is a custom text value that can be translated into any language that Salesforce supports. if you want to access the custom labels in aura components, you can use a $Label global value provider. It enables developers to create multilingual applications by automatically presenting information in a user's native language.
    Custom Setting: It is stored in the application cache, which enables efficient access without the cost of multiple repeated queries to the database. So we can avoid governor limits by using this. It allows us to store a set of data and access it without querying it from the apex.
    <div>
    </div>

  • Shweta

    Member
    August 10, 2020 at 2:37 pm in reply to: How to make custom label in Salesforce?

    <div>Follow these steps to create a custom label:</div>1. Go to SetUp -> Enter Custom Label in the Quick Find box -> Select Custom Labels
    2. Click on the New Custom Label.
    3. In the Short Description text box, Enter an easily recognizable term to identify this custom label. This description is used in merge fields.
    4. Enter the name the label uses and this value is used in Apex and Visualforce pages to reference the custom label.
    5. If you want custom label as protected: check protected component.
    6. For Categories, enter text to categorize the label. This field can be used in filter criteria when creating custom label list views. Separate each category with a comma. The total number of characters allowed in the Categories text box is 255.
    7. In the Value text box, enter text up to 1,000 characters. This value can be translated into any language that Salesforce supports.
    8. Click on the Save.

  • When the model quality is too high, we usually suspect hindsight bias. Einstein detects and removes any fields susceptible to hindsight bias, but it’s always good to double-check your dataset for other fields that should be removed.

Page 10 of 24