Posts

Showing posts with the label Error

The page does not bind to the record ID value (in order to link to the record detail page)

Image
Trailmix ==> Visualforce Basics >> Use Standard List Controllers Challenge ==> Create a Visualforce page which shows a list of Accounts linked to their record pages Using a Standard List Controller, create a Visualforce page which displays a list of Accounts with links to their respective record detail pages. Challenge Requirements The page must be named AccountList It must reference the Account standard controller It must have a recordSetVar attribute equal to accounts It must have a Visualforce apex:repeat component, with the following: Use the var attribute set to a Use the <li> HTML list tag Use the apex:outputLink component to link to the respective record detail page HINT: Record detail pages can be reached by placing a record ID at the root of the URL (e.g. <record id> ) Error ==> The page does not bind to the record ID value (in order to link to the record detail page) Code ==> <apex:page standardController="Account" recordSetVar=...

Your Apex code still appears to be vulnerable to SOQL injection. Please check your code again.

Image
Trailmix ==> Injection Vulnerability Prevention >> Prevent SOQL Injection in Your Code Challenge ==> Prevent a SOQL injection attack For this challenge, write code that isn't vulnerable to SOQL injection. Navigate to the Prevent SOQL Injection Challenge tab within the SOQL Injection application. You will see multiple search boxes with Perform Search buttons. The Prevent_SOQL_Injection_Challenge Apex controller includes three methods containing dynamic queries: stringSearchOne(), stringSearchTwo(), and numberSearchOne(). Modify the stringSearchOne() and stringSearchTwo() queries to prevent SOQL injection using the escapesinglequotes method. Modify the numberSearchOne() query to prevent SOQL injection using the typecasting method. Error ==> Your Apex code still appears to be vulnerable to SOQL injection. Please check your code again. Solution ==> public class Prevent_SOQL_Injection_Challenge {     public string textOne {get; set;}     public string te...

Can't assign permission set to user. The user license doesn't allow the permission: Configure Messaging

Image
You may see this error while setting up Messaging Channels . While setting up the LiveMessage if you below the above issue then follow the steps. This error can be faced by the admin or any other user with a different profile. The error is self-explanatory, but the cause can be multiple depending on your profile, permission sets, or app permissions. “Can't assign the permission set Messaging Permission Set to user Pritish. The user license doesn't allow the permission: Configure Messaging” Do follow the steps to resolve this error.  1. From Setup, enter Users in the Quick Find box, and select Users. 2. Select the name of the user. 3. Click Permission Set License Assignments. 4. Click Edit Assignments.  5. In the Permission Set License Assignments Edit page, Select Messaging User, Service User (As per requirement). 6. Click Save. Resources: Create a Messaging Permission Set https://help.salesforce.com/articleView?id=messaging_create_permission_set.htm&type=0 Assign the Perm...

The "Customer Community User" for the contact "Edna Frank" is not created properly.

Image
Trailmix ==> Expand Your Reach with Communities >> Community Rollout Strategy >> Create Community Users and a Sharing Set. Challenge ==> Set up a communities user and a sharing set In this challenge, you set up the external sharing model, create a sharing set, and create a customer community user. First, set up the external sharing model with Case set to private. Then, enable Customer Portal settings, and create a sharing set titled Share cases with customers for the Customer Community User Profile. In this sharing set, grant customer community users read and write access to the case object for all cases associated with their account. Ensure that your DE org user has a role assigned. Create a customer community user from Edna Frank's contact record. (Your DE org should already have a contact record for Edna Frank. If it doesn't, create a new contact with first name Edna and last name Frank.) Ensure that the account associated with Edna Frank has cases ass...