Forum Replies Created

Page 1 of 7
  • Hi,

    With Sharing - Enforce the sharing rules that apply to current user.

    Without Sharing - Doesn't enforce the sharing rules. If a class is not declared as either with or without sharing, the current sharing rules remain in effect.

    Thanks.

  • Prachi

    Member
    December 12, 2019 at 7:03 am in reply to: What is inherited sharing in Salesforce?

    Hi,

    Inherited sharing keyword to define apex class as Inheritedsharing is available with the Salesforce winter’19 release in both Salesforce classing and lighting versions.

    – If the class is declared as inherited sharing, it runs in the sharing mode of the class that called it.
    – The keyword ‘inherited sharing’ is used to define an Apex class as Inherited sharing class.
    – If a class declared as inherited sharing, it runs as with sharing by default.
    – A class defined as Inherited sharing will only run in without sharing mode when it specifically called from an already established without sharing context.

    Thanks.

    • This reply was modified 4 years, 11 months ago by  Prachi.
  • Prachi

    Member
    December 12, 2019 at 7:00 am in reply to: What is with sharing and without sharing in salesforce?

    Hi,

    With Sharing-  Enforce the sharing rules that apply to current user
    The with sharing keyword allows you to specify that the sharing rules for the current user are considered for the class. You have to explicitly set this keyword for the class because Apex code runs in system context. In system context, Apex code has access to all objects and fields— object permissions, field-level security, sharing rules aren’t applied for the current user. This strategy ensures that code doesn’t fail to run because of hidden fields or objects for a user. The only exceptions to this rule are Apex code that is executed with the executeAnonymous call and Chatter in Apex.executeAnonymous always executes using the full permissions of the current user. For more information on executeAnonymous, see Anonymous Blocks.

    Use the with sharing keywords when declaring a class to enforce the sharing rules that apply to the current user. For example:

    public with sharing class sharingClass {
    
    // Code here
    
    }

    Without Sharing - Doesn't enforce the sharing rules

    Use the without sharing keywords when declaring a class to ensure that the sharing rules for the current user are notenforced. For example, you can explicitly turn off sharing rule enforcement when a class is called from another class that is declared using with sharing.

    public without sharing class noSharing {
    
    // Code here
    
    }

    Thanks.

  • Hi,

    No, you cannot edit, delete manage package components in the org.So for this you need to uninstall the package and then do necessary changes in previous org and again create package and install it into second org.

    Thanks.

  • Prachi

    Member
    December 6, 2019 at 2:17 am in reply to: What is profile wizard in salesforce?

    Hi Deepak,

    The Profile Wizard(flow Template) is a multi step process which guides users to complete profile information.It modify the steps,fields amd imagery to meet specific needs.It  has a progress indicator to display both current and remaining steps, and a progress bar to show completion percentage based on required user fields.

    Thanks.

  • Hi Deepak,

    You can take help from below guide to deploy a retrieved packaged using ant migration tool-

    https://www.forcetalks.com/salesforce-topic/how-to-retrieve-package-using-ant-migration-tool-from-a-sandbox/#post-66095

    After that you have to run ant.deployUnpackaged command in open terminal window.

    Thanks.

  • Hi Deepak-

    You can take help from below guide-

    https://blog.bessereau.eu/assets/pdfs/salesforce_migration_guide.pdf

    Thanks.

  • Hi,

    180 days worth of changes to settings  you can download.

    Thanks.

  • Hi Yogesh,

    To achieve this, follow these steps:-

    1.Define aura:id of the child component in parent.
    2.Define <aura:method> in child component and it will link to method of child controller.
    3.Define a lightning:button on parent component and on click of this button get the reference of the child component as mentioned in step 1 and call aura:method as mentioned in step 2.

    For further details you can take help from below link-

    https://devops4solutions.com/calling-child-method-from-parent-component-in-lightning-components/#:~:targetText=Define%20aura%3Aid%20of%20the,as%20mentioned%20in%20step%202.

    Thanks

  • Prachi

    Member
    December 3, 2019 at 11:24 am in reply to: How to display serial number with records in vf page in salesforce?

    Hi Deepak,

    There's a couple of options:

    (1) Use the record id as the serial number
    (2) Create an autonumber field on the record - you may need to update existing instances with this

    Thanks.

  • Prachi

    Member
    November 29, 2019 at 4:22 pm in reply to: What is External Org-Wide Defaults in salesforce?

    Hi Deepak,

    External organization-wide defaults provide separate organization-wide defaults for internal and external users. They simplify your sharing rules configuration and improve recalculation performance. Additionally, you can easily see which information is being shared to portals and other external users.

    Thanks.

  • Prachi

    Member
    November 29, 2019 at 2:11 pm in reply to: What is a Junction object in Salesforce?

    Hi,

    In Salesforce, a Junction Object is a custom object with two master-detail relationships to two different record types. It is used to represent a many-to-many relationship in which several junction objects can link one instance of a record to many children, and each child can equally be linked to many parents.

    Thanks.

  • Prachi

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

    Hi Yogesh,

    You can take help from below link-

    https://www.lightningdesignsystem.com/utilities/visibility/

    Thanks.

  • Prachi

    Member
    November 28, 2019 at 4:31 pm in reply to: What settings controlled by user profile in Salesforce?

    Hi Piyush,

    A profile controls “Object permissions, Field permissions, User permissions, Tab settings,App settings, Apex class access, Visualforce page access, Page layouts, Record Types, Login hours & Login IP ranges.

    Thanks.

  • Prachi

    Member
    November 27, 2019 at 6:09 pm in reply to: How to enable partner account and create a partner users in Salesforce?

    Hi Deepak,

    To create a partner user:
    1.View the partner account for which you want to create a partner user.
    2.Create a new contact for the partner user. Choose New from the Contacts related list. ...
    3On the contact detail page, click Manage External User and choose Enable Partner User.
    4Edit the user record for this partner.
    5.Click Save.

    Thanks.

  • Prachi

    Member
    November 27, 2019 at 6:06 pm in reply to: What is benefits of partner users in Salesforce?

    Hi Deepak,

    The Salesforce Partner Program offers a robust set of resources enabling partners to develop expertise around specific business functions, product areas, and industries to best serve customers, differentiate practices, and grow a profitable business.

    Thanks

  • Prachi

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

    Hi Deepak,

    Role hierarchy is a mechanism to control the data access to the records on a salesforce object based on the job role of a user. For example, a manager needs to have access to all the data pertaining to the employees who report to him, but the employees have no access to the data that is only owned by their manager. In this manner, the access model looks similar to the org chart in an organization but it need not be exactly same as the Org chart.

    The role hierarchy automatically grants record access to users above the record owner in the hierarchy. This option is enabled for all objects by default. To change this, we take help of custom objects and manual acess grants.

    Thanks.

  • Prachi

    Member
    November 26, 2019 at 10:17 am in reply to: How to convert a comma separated string into an array in Salesforce?

    Hi Yogesh,

    Use the split() Method
    You can use the JavaScript split() method to split a string using a specific separator such as comma ( , ), space, etc. If separator is an empty string, the string is converted to an array of characters.

    Thanks.

    • This reply was modified 5 years ago by  Prachi.
  • Hi Yogesh,

    10 users can be created at a time in a org using mutiple user creation functionality.

    Thanks.

  • Hi,

    Enable Chat Agent and Communities
    1.Click the setup cog and select Service Setup.
    2.Enter Communities in Quick Find, then select Communities Settings.
    3.Select Enable Communities.
    4.Enter a unique value to be used as your domain name and click Check Availability. Note: Keep in mind that you can't change the domain name after you save it. ...
    5.Click Save.
    6.Click OK.

    Create a Chat Agent Skill
    1.Enter Skills in Quick Find, then select Skills.
    2.Click New.
    3.In the Basic Information section, enter these details.. Name: Web Support. Developer Name: Web_Support.
    4.In the Assign Profiles section, add Custom: Support Profile, Standard User, and System Administrator.
    5.Click Save.

    Thanks.

  • Prachi

    Member
    November 25, 2019 at 3:31 pm in reply to: How to create knowledge article in salesforce org?

    Hi Deepak,

    1.From Setup, enter Knowledge Article Types in the Quick Find box, then select Knowledge Article Types.

    2.Click New Article Type or edit an existing article type.

    3.Enter the article types details.

    4.Save.

    Thanks.

     

  • Prachi

    Member
    November 25, 2019 at 12:26 pm in reply to: What is the maximum length of 'Opportunity Name' field in salesforce?

    Hi Nikita,

    The maximum length of ‘Opportunity Name’ field in salesforce is 120.

    Thanks.

  • Hi,

    Let's consider the scenario that we would like to establish a One to One relationship between Accounts and Contacts..

    Step 1:

    Create a custom field on the Contact object. Make the field unique. This field would be used to hold the ID of the associated Account.

    Step 2:

    Create a Workflow rule on Contact. Update the custom field with the value of the associated Account ID.

    Done!! you have established a one to one relationship between Account and Contacts...

    When you try to add a second contact to the Account, the "unique" constraint would be violated and an error would be thrown.

    Thanks.

    • This reply was modified 5 years ago by  Prachi.
  • Prachi

    Member
    November 25, 2019 at 7:13 am in reply to: How is access granted through the Role Hierarchy in salesforce?

    Hi Piyush,

    The role hierarchy automatically grants record access to users above the record owner in the hierarchy. By default, the Grant Access Using Hierarchiesoption is enabled for all objects, and it can only be changed for custom objects.

    Thanks.

Page 1 of 7