Thursday, October 5, 2017

User Records

  • User record is required to login.
  • 1 Person = 1 User = 1 User License
  • User record can not be deleted, but can be deactivated.
  • Records in SF can be assigned to:
    • Active user
    • Queue

image

image

  • Freeze User –
    • To prevent user to login, but the user is still active. Best to freeze user to perform maintenance when you don’t want user to login temporary.
    • Someone left the company, need to deactivate user, but can’t deactivate due to the user is tied to some workflow rules/other rules. Best to freeze the user to prevent login immediately, delete the rules/sort out other things, then deactivate the user.

image

Tuesday, September 5, 2017

Data Security

Org, Object, Record, Field, Folder Security

Profile

  • A profile is a collection of permissions and settings that is instrumental in determining a user’s functional access (apps, tabs, object-level permissions), how information is displayed to the user (page layouts, record types, field-level security), and a wide range of other permissions. 
  • Each user must be assigned one profile.
  • Standard profile – limited changes can be made. Can’t be deleted.
  • Custom profile – fully customizable. Can be deleted.
  • It’s best to assign all users to custom profile.

Permission Sets

Roles

Groups

  • https://certifiedondemand.com/security-model/groups/
  • Group is comprised of users, roles and/or other groups.
  • Public Groups – created & maintained by admin, can be referenced in orq-wide configuration (e.g. sharing rules).
  • Personal Groups – created & maintained by users, can only be referenced in selected configurations (e.g. Outlook contact sync).
  • Common user cases:
    • Sharing access to records or folders with named users (this requires a public group) – User is not an option.
    • Sharing access to resources (folders, etc) to same collection of users within specified roles. e.g. sharing 3 folders with 2 roles.
  • Important:
    • There is no way to monitor where groups are referenced (e.g. you have to view each individual report folder, sharing rules, etc.).  For this reason, make sure to have a clear documentation and usage strategy for groups (or at a minimum, a very clear naming convention).
    • When groups are referenced in sharing rules, “Grant Access Using Hierarchies” can be extended to group access.

Manual Record Sharing & Auditing

  • https://certifiedondemand.com/how-to-verify-salesforce-record-access/
  • In general, if OWD of an object = Private or Public Read Only ==> sharing button will be displayed (if added to page layout).
  • Exception: Some objects (account) may have sharing button exposed, depending on the sharing setting.
  • Manual record sharing -  can share record with groups, roles, users.
  • Must have ‘Full Access’ to the record to do manual sharing.

Ref:

https://certifiedondemand.com/overview-of-salesforce-security-model

Thursday, August 17, 2017

Process Automation – Approval Process

Chart that shows an example approval process

  • Initial submission actions:
    • locks the record
    • Other submission actions include sending email alert, updating a field on a record, creating task, sending an outbound message.
  • Approval Step – assign users (approvers).
  • Final Approval Actions
    • These actions occur only a record is approved & no further approval needed.
    • Changes the record status to ‘Approved’, unlock the record, notify employee who submit the request of new position.

image

  • Approval process must be activated to make it available to the users.

image

Discount Approval Process – 2 Steps

image

Chatter is not available in Developer Org – so can’t set up Chatter message for approval updates.

Hands-on Training: Streamline Requests with Approval Processes https://www.youtube.com/watch?v=0u3L8JIJjbE

Wednesday, June 14, 2017

Process Automation - SalesForce Workflow Rule

  • Use Process Builder rather than Workflow, if possible.
  • A workflow rule is the main container for a set of workflow instructions. These instructions can always be summed up in an if/then statement.
  • Workflow rule example: If an account is created or updated and it’s located in Texas, you want Salesforce to automatically perform certain actions. Here’s how that if-statement breaks down into workflow rule criteria.
    • An account (object)
    • is created or updated (evaluation criteria) and
    • is located in Texas (rule criteria)
  • Every workflow rule is directly associated with one and only one object.

  • Action:
    • Immediate actions
    • Time-dependent actions (before or after)
  • If you selected “created or edited” for your evaluation criteria, you can’t add time-dependent actions. You can monitor and cancel pending time-dependent actions from Time-Based Workflow in Setup.
  • Time trigger:
    • trigger action before or after
    • Now = Rule Trigger Date (e.g. 7 days from now = 7 days after rule trigger date.
  • Workflow Action can be saved & reused:
    • Click Add Workflow Action | Select Existing Action.

What is Workflow?
Workflow automates the following types of actions based on your organization's processes:

  • bulletTasks—Assign a new task to a user, role, or record owner.
  • bulletEmail Alerts—Send an email to one or more recipients you specify.
  • bulletField Updates—Update the value of a field on a record.
  • bulletOutbound Messages—Send a secure, configurable API message (in XML format) to a designated listener.
For example, workflow can:
  • bulletAssign follow-up tasks to a support rep one week after a case is updated.
  • bulletSend sales management an email alert when a sales rep qualifies a large deal.
  • bulletChange the Owner field on a contract three days before it expires.
  • bulletTrigger an outbound API message to an external HR system to initiate the reimbursement process for an approved expense report.
Each workflow rule consists of:
  • bulletCriteria that cause the workflow rule to run.
  • bulletImmediate actions that execute when a record matches the criteria. For example, Salesforce can automatically send an email that notifies the account team when a new high-value opportunity is created.
  • bulletTime-dependent actions that queue when a record matches the criteria, and execute according to time triggers. For example, Salesforce can automatically send an email reminder to the account team if a high-value opportunity is still open ten days before the close date.

Wednesday, June 7, 2017

Process Automation

  • SF provides 4 automation tools:
    • Workflow
    • Process Builder
    • Visual Workflow – collect info
    • Approvals
  • The only thing you can do with workflow that you can’t do with processes is send outbound messages without code.
  • Cloud Flow Designer – for more complex workflow logics.
  • Can reorder criteria, but not action. Need to delete & recreate action to reorder.
  • Scheduled action – only if process starts with creating a record.
  • Automated process consist of:
    • Criteria
    • Actions – Immediate or scheduled

Process Builder

  • image
  • Click Advanced and select Yes (6).When you select this option, the process ignores record changes that aren’t relevant to your defined criteria. For example, if a user edits the record by adding a description, the process won’t execute the associated actions. Note: This setting isn’t available if:
    • Your process starts only when a record is created.
    • Your process starts when a record is created or edited and the criteria node doesn’t evaluate any criteria.
    • The criteria node evaluates a formula, but the formula doesn’t include a reference to the record that started the process.
    • Your process uses the Is changed operator in a filter condition.




Wednesday, May 31, 2017

Data Security I

Managing Users
  • It’s best to deactivate user than delete the user, to avoid orphan processes.
  • image_thumb11
  • If user can’t be deactivated due to above reason, to quickly remove user access, use Freeze user under user profile. Later, you can reassign new owner/default user/lead/etc, and deactivate the user.
  • image_thumb2
Control Access to Objects
  • 2 ways to set object permission - Profile & Permission Set.
  • Big picture of Profile: Profile controls - 
    • image
    • image_thumb31
    • System Administrator profile’s super powers – View all data & Modify all date -  overwrites all other sharing rules and settings. Use with caution.
  • Can set system permission in profile. System permissions apply across apps, e.g. create/edit/delete reports, edit Read Only fields.
  • Profile contains Apps & System sections. These 2 sections are also available from the Assigned Apps drop down list on the profile page.
    • image_thumb4
  • Even an app is hidden, but user might still see the records of the app in Reports/Dashboard/related list. It’s best to remove the read permission from the object permission.
  • Assign profile to user at Manage Users > Users > select user > Edit > select profile from drop down list.
  • Check who has this profile: Manage Users > Profiles > Assigned Users button on the top middle.

Thursday, May 18, 2017

Formulas & Validations

Creating a New Formula Field

You can create custom formula fields on any standard or custom object. To start, we’ll create a formula on the Account object. Follow these steps to navigate to the formula editor:

  1. Go to the Accounts page from setup.
  2. Create a new field.
  3. Select Formula and click Next.
  4. In Field Label, type My Formula Field. Notice that Field Name populates automatically.
  5. Select the type of data you expect your formula to return. For example, if you want to write a formula that calculates the commission a salesperson receives on a sale, you select Currency. For now, pick Text.
  6. Click Next. You’ve arrived at the formula editor! Time for our tour.

Monday, February 6, 2017

AgilePoint NX for SalesForce

To set up AgilePoint NX for SalesForce:

Enable Authentications

  1. Sign up a SalesForce developer account and an AgilePoint Trial App account.
  2. Log into SalesForce account, leave it open, in another tab, log into AgilePoint NX.
  3. Enable Authentication for SalesForce in AgilePoint NX: Settings > Admin Setting > choose SalesForce
    • image

Set up Global Access Token

  1. In AgilePoint NX, Manage > App Builder > Global Access Token > click the + sign to add a Global Access Token
    • image
  2. In SalesForce, ,<YourUserName> on the top right > Setup > type ‘App’ in the quick search box, select Apps > scroll down, click the new button of Connected Apps.
    • image
  3. Enter basic info (Connected App Name, API Name & Contact Email.
  4. Check the checkbox of Enable OAuth Settings. Copy the Redirect URL from AgilePoint NX Add Global Access Tokens window to the Callback URL field in the SalesForce UI. Then select Full access and ‘Perform requests on your behalf at any time (refresh_token, offline_access)’, and save.
    • image
    • image
  5. In the next screen, obtain the Consumer Key and Consumer Secret from SalesForce UI, then enter those values to Client ID and Client Secret ID fields on the ‘Add Global Access Tokens’ pop up window.
    • image
    • image
  6. Scroll down, click on the ‘Get OAuth2 Access Token’ button. If the textbox refreshes and displays values, that means the connection to SalesForce is successful.
    • image
  7. Select 2 hours for Renewal Rate to refresh the access token and check the checkbox of Encrypt. Click Done. By now, the Global Access Token shall be added.