Category Archives: Technical

HOw to: WordPress MultiSite with Multi TOP level Domain (TLD)

The most powerful feature of WordPress Multisite is the ability to have multiple sites under one parent WordPress environment. This tutorial will help you add new sites to your WordPress Multisite environment and map a custom domain to the new site.

A lot of article focuses on multisite of WordPress on subdomains but this article will focus on have multisite with Top Level Domain (TLD).

Enabling Multisite on WordPress

For this section, you will need FTP access or SSH access.
Locate the following file, “wp-config.php”, this should in the following location, /var/www/wordpress/

Now you need to locate the following line of text within the file.

“/* That’s all, stop editing! Happy publishing. */”

Add the following line above it.

“define(‘WP_ALLOW_MULTISITE’,true);”

Save and head back to the wp_admin console.

Installing Multi Site.

Head over to Tools -> Network Setup and hit Install

Multi Site-Network Setup

Head back to wp-config.php and paste the following code and edit .htaccess as per instruction.

Network Access (Domain Mapping)

Now when we log in, you can see the Network Access.
You can now create different sites but we want to have a different domain for each site. You can mess around with the .htaccess file but lets use an easier way.

Install the following WordPress plugin, https://wordpress.org/plugins/wp-multi-network/

You should see the following screen, this allow you to easily access it and map the domain.

Platform Developer CErtification I – Learn What’s New for Platform Developers in Spring ’19

LEARN WHAT’S NEW FOR PLATFORM DEVELOPERS IN SPRING ’19

Which Apex interface can be implemented to allow My Domain users to log in with something other than their username and password?

A. Auth.AuthToken
B. Auth.VerificationMethod
C. Auth.LoginDiscoveryHandler
D.Auth.MyDomainLoginDiscoveryHandler

Answer: D

With Spring ’19, which method returns a list of OrgLimit instances used to investigate limits and their names, current value, and maximum value?

A. getAll() from the System.OrgLimit Class
B. getAll() from the System.OrgLimits Class
C. getInstances() from the System.OrgLimit Class
D. getInstances() from the System.OrgLimits Class

Answer: B

With Spring ’19, which properties of an unhandled Apex exception are available in Event Monitoring log files?

A. Static variable state and stack trace
B. Exception type, name, and static variable state
C. Stack trace, user’s location, and exception type
D. Exception message, exception type name, and stack trace

Answer: D

Which field of the SandboxInfo object is a reference to the ID of the SandboxInfo that served as the source org for a cloned sandbox?

A. SourceId
B. TemplateId
C. SandboxName
D. SandboxInfoId

Answer: A

You created a custom metadata type to handle your company’s warranty policy. The custom metadata type’s label is WarrantyRule. For it, you created a custom field labeled Warranty and a metadata record labeled Gold. What is the correct syntax to reference the value stored in the Gold metadata record?

A. $WarrantyRule.Gold.Warranty__c
B. $WarrantyRule__mdt.Gold.Warranty
C. $CustomMetadata.WarrantyRule.Gold.Warranty
D. $CustomMetadata.WarrantyRule__mdt.Gold.Warranty__c

Answer: D

For the next section, visit the following link.

WORK WITH THE NEW APEX SECURITY SETTINGS (SPRING ’19)

PLATFORM DEVELOPER I Certification Maintenance – Work with the New Apex Security Settings (Spring ’19)

WORK WITH THE NEW APEX SECURITY SETTINGS (SPRING ’19)

You can complete this from the following trailhead link, https://trailhead.salesforce.com/help?article=Spring-19-Platform-Developer-I-Maintenance

What we need to achieve today

In this exercise, you’ll begin with a code that contains manual field- and object-level security checks before a SOQL query. You will then refactor the code into a simplified implementation that relies on WITH SECURITY_ENFORCED to handle field- and object-level security checks.

  • Create the Secret Key custom text field on the Contact object as specified in the Get Ready for the Hands-on Challenge section above.
  • Create a new Apex class named SecureApexRest.
  • Copy and paste the SecureApexRest code provided above. This code is already secured with the conventional field- and object-level access checks.
  • Add the WITH SECURITY_ENFORCED clause to the SOQL query on line 13 in the code provided. This will make the manual Schema.SObjectType checks are redundant.
  • Refactor the code to remove the redundant object and field level access checks.
  • Maintain existing behavior by ensuring that failing results are checked in a SecurityException, rather than any other type of exception. This will require catching the System.QueryException that WITH SECURITY_ENFORCED throws and throwing a new SecurityException.

Step 1. Create the Secret Key custom field on Contact Object.

Setup -> Object Manager -> Contact -> Fields & Relationships -> New

Create a Custom Field, Name -> Secret Key and Length of 255

Click Next and Uncheck the visible for Standard Users.

Uncheck the option to make it visible for Standard Users.

Step 2. Create a new Apex Class -> SecureApexRest

Copy the following code into the class then Save and Check the challenge!

For the previous challenge, check the following link

LEARN WHAT’S NEW FOR PLATFORM DEVELOPERS IN SPRING ’19

Data Architecture and Management Designer Certification Maintenance (Spring ’19)

Data Architecture and Management Designer Certification Maintenance (Spring ’19)

After building a prediction in Einstein Prediction Builder, how can an Administrator understand the impact of each predictor in the model?

A. View the Scorecard on the Mode.

B. View the R-squared in Model Metrics.

C. Run the Einstein Insights report.

D. Configure the weekly Insights Summary email.

A customer has a requirement to track the changes to an object’s field. With Spring ’19, what is the recommended solution to retain the history of field changes for more than 24 months?

A. Field History Tracking

B. Change Data Capture

C. Field Audit Trail

D. Big Object Archive Trail

With Spring ’19, how can an Administrator create a Salesforce object that holds hundreds of millions, or even billions, of records?

A. Use the Tooling API to create the big object.

B. Configure big objects from the setup UI.

C. Deploy the Big Object Creator connected app.

D. Convert a custom object to a big object.

A Sales Manager would like to review the open Opportunity pipeline in order to gain an understanding of how to close more deals for the quarter. With Spring ’19, what feature can an Administrator configure to meet this need?

A. Lightning Reports Subscriptions

B. Einstein Analytics time series

C. Einstein Data Insights

D. Big Deal Alerts

How can an Administrator efficiently set the same default field value across multiple objects and fields?

A. Use Global Picklist Values.

B. Create a Before Trigger Handler to standardize values.

C. Use a Hierarchical custom setting.

D. Set up a custom Metadata Type and default formula reference.

Identity and Access Management Designer Certification Maintenance (Spring ’19)

Identity and Access Management Designer Certification Maintenance (Spring ’19)

A Community Manager would like users to log in with their phone number. What should be configured to meet this need?

A. Enable Login Discovery for the community.

B. Create a custom login page with Community Builder.

C. Enable External Identity and use a Single Sign-on provider for the community.

D. Create a login flow to look up the user based on the phone number.

How can a Consultant simplify the login process when half the users enter a username/password and the other half use an SSO solution?

A. Disable access to login.salesforce.com in the My Domain setup.

B. Require the use of Salesforce Authenticator with My Domain.

C. Create a custom page to display login instructions in the My Domain right-hand panel.

D. Create an Identity-First login page for My Domain Login Discovery.

How can an Administrator prevent users from using common, poor-quality passwords, such as “password”?

A. Create a login flow to validate passwords changes.

B. Add a password validation rule on the User Object.

C. No action is required; the password blacklist is automatically applied to the org.

D. Contact Customer Support to enable password-strength checking.

A user of a custom Heroku web application should be authenticated by Salesforce, but only created as a contact once becoming a qualified lead. With Spring ’19, which user license should an architect recommend to meet this requirement efficiently?

A. Identity Plus

B. Identity

C. External Identity

D. Company Community

An administrator is tasked with configuring an org with a user-authentication method that complies with the FedRAMP Digital Identity requirements. With Spring ’19, which new feature should the administrator use to meet this requirement?

A. Salesforce Identity Connect for certificate support

B. Certificate-based authentication

C. SMS method of identity verification

D. Allow log-ins only from IP addresses approved by the government

Integration Architecture Designer Certification Maintenance (Spring ’19)

Integration Architecture Designer Certification Maintenance (Spring ’19)

An Administrator has set up Lightning Data to update fields on accounts. Users have noticed that field values are not always up to date with the third- party system. What can an administrator configure to address the concern?

A. Change the field-level security to remove Edit access to the field.

B. Set up a Lightning Flow that refreshes the record information.

C. Create a Process Builder to pull the latest data after the record changes.

D. Update the Data Integration Rule to overwrite existing values.

Shipping information is stored in an external system and is available on Salesforce Order records with Salesforce Connect. How can an administrator send email notifications when shipping details change?

A. Create a Process Builder that executes when the external shipping data changes.

B. Set up Change Data Capture to be notified of the change.

C. Create a Platform Event that contains the shipping details.

D. Develop a custom Email Service to send shipping notifications.

How can a third-party order fulfillment system receive near real-time updates from Salesforce when Opportunities close?

A. Use the Bulk API 2.0 to export changes since the last execution.

B. Create a trigger that calls out to the system when changes occur.

C. Use Change Data Capture to synchronize records to the system.

D. Set up Lightning Data to update the system upon record changes.

When is a High-Volume Platform Event published to consumers?

A. On schedule, every 10 seconds.

B. Asynchronously as part of the original transaction.

C. Immediately after the request is enqueued.

D. Asynchronously from the queue when resources are available.

With Spring ’19, how can you register a new OAuth connected client app and ensure the client will check the current state of access and refresh tokens for the app and its child apps?

A. Set the OAuth scope to full access and create a web service to be consumed.

B. Send a request to the dynamic client registration endpoint to automatically register a new child OAuth 2.0 connected client app.

C. Use JSON web tokens (JWT) and set the OAuth flow to be dynamically refreshed.

D. Set up up the connected app using OAuth, and a separated connected app to manage the current state of access, refreshing tokens dynamically.

Administrator Certification Maintenance (Winter ’19)

On which object can users assign a new owner to multiple records at one time from a Lightning Experience list view?

A. Leads

How can a user place the cursor in the list view search field without navigating to it with the tab button or the cursor?

C. Keyboard shortcut g+f

Which Forecast Type should the System Administrator configure to make territory forecasts available to the sales team?

C. Opportunity Revenue by Territory

How many decimal places can the user choose to display when creating a dashboard component?

D. Up to 5

What will display in the search results when a user uses the quick search on the reports tab?

D. The reports or folders displayed are based on what is selected on the side menu

The customer community manager wants to gamify the community by recognizing members’ specific accomplishments. What can the System Administrator configure to accomplish this goal?

A. Recognition Badges

What has to be enabled to allow users to save Chatter posts before they appear in the feed?

C. Allow draft posts

How can a standard user adjust the page layout to display more fields in the same amount of space?

D. Change the density from comfy to compact

Platform App Builder Certification Maintenance (Winter ’19)

Which behavior is true when using the ‘Deploy processes and flows as active’ feature?

A. Apex tests must cover 75% of all active Processes and autolaunched Flows.

How should an App Builder ensure that Users are able to see Survey responses?

C. Grant access to the Survey object then direct users to the Survey Invitations related list

How can a user share the contents of a Salesforce Folder with customers in Lightning?

B. Create a public link to a Shared Folder.

How can an App Builder configure a Guided Action to be mandatory on a record?

CSet the Is Mandatory field in a Process that launches the Flow.

Platform Developer I Certification Maintenance (Winter ’19) Work with the Lightning Map Component and Apex Inherited Sharing

TowerMapUtilClass.apxc

public inherited sharing class TowerMapUtilClass {
public static List queryObjects(String theObject, List theFields, String theFilter, String sortField, String sortOrder) {
String theQuery = ‘SELECT ‘ + string.join(theFields, ‘,’);
theQuery += ‘ FROM ‘ + theObject;
if(!String.isEmpty(theFilter)) {
theQuery += ‘ WHERE ‘ + theFilter;
}
if(!String.isEmpty(sortField)) {
theQuery += ‘ ORDER BY ‘ + sortField;
if(!String.isEmpty(sortOrder)) {
theQuery += ‘ ‘ + sortOrder;
}
}
return database.query(theQuery);
}
}

TowerMapControllerClass.apxc

public inherited sharing class TowerMapControllerClass {
@AuraEnabled
public static List getAllTowers() {
String theObject = ‘Tower__c’;
List theFields = new List{‘Id’, ‘Name’, ‘State__r.Name’, ‘Tower_Location__Latitude__s’, ‘Tower_Location__Longitude__s’};
String theFilter = ”;
String sortField = ‘Name’;
String sortOrder = ‘ASC’;
List allTowers = TowerMapUtilClass.queryObjects(theObject, theFields, theFilter, sortField, sortOrder);
return allTowers;
}
}

Towermap.cmp

Platform Developer I Certification Maintenance (Winter ’19)

Which method of the DescribeSObjectResult class allows you to access record types by their developer name?

D. getRecordTypeInfosByDeveloperName()

Which Apex class includes new methods to verify digital and HMAC signatures?

B. System.Crypto

Your org has My Domain enabled. What is the most efficient method to obtain a valid session ID to make an HTTP callout from asynchronous Apex code to Salesforce APIs?

B. Use System.UserInfo.getSessionId().

Which annotation allows a developer to make the result of an Apex method storable for Lightning components?

D. @AuraEnabled(cacheable=true)

Which merge field allows you to isolate untrusted third-party content with <apex:iframe> tag in Visualforce?

C. $IFrameResource

Prior to installing an unlocked package, which object should a developer query using the Tooling API to list the packages it depends on?

D. SubscriberPackageVersion