-
Can I do a right pad in a Select Statement
Hello, I need to do a RPAD on the following statement, but it does not seem to work in a the Select or Where Clause. Can a RightPad be use in the following way?
Hello, I need to do a RPAD on the following statement, but it does not seem to work in a the Select or Where Clause.
Can a RightPad be use in the following way?
v_year = '2024';for (Candidate_Recs__c firstAssign : recsToProcess) {
for (Contact seqAssign : [ Select MIN(lastName.RightPad(40, ' ') +
firstName.RightPad(40, ' ') +
middleName.RightPad(40, ' ') )
, MIN(contact.pre_code)
FROM
Contact
WHERE
lastName.RightPad(40, ' ') +
firstName.RightPad(40, ' ') +
middleName.RightPad(40, ' ') +
>
firstAssign.lastName.RightPad(40, ' ') +
firstAssign.firstName.RightPad(40, ' ') +
firstAssign.MiddleNameRightPad(40, ' ') +
AND Contact.status IN ('AX', 'TQ', 'RO')
AND Contact.class_started = :v_class_yr
AND Contact.pre_code IS NOT NULL
AND Contact.employee_nbr IS NOT NULL]) {//Do Something
}
}
Thanks for any help in advance.-
This discussion was modified 5 years, 6 months ago by
Angela Wright.
-
This discussion was modified 5 years, 6 months ago by
Angela Wright.
-
This discussion was modified 5 years, 6 months ago by
Log In to reply.
Popular Salesforce Blogs
The Sales Cloud: All You Need to Know
Unleashing Growth with Salesforce Sales Cloud: Revolutionizing Customer Engagement In the digital age, where customers are more empowered and discerning than ever before, businesses must…
Salesforce Data Migration - Guide to the Best Practices
Movement is a one-time action; when the information is stacked into the Salesforce organization, the relocation task is finished. So it is critical to keep…
Agentforce Commerce (formerly Commerce Cloud): A Complete Guide for Modern E-Commerce Businesses
E-commerce is evolving rapidly. Customers expect personalized shopping experiences, faster product discovery, seamless checkout, and consistent interactions across digital channels. At the same time, businesses…
Popular Salesforce Videos
How to Set Up Web Chat in Salesforce Service Cloud SFDC - Learn Salesforce Series with Algoworks
In this video, you will get to know what the webchat feature in Salesforce Service Cloud is all about. Learn how to - 1. Introduction…
How to Create a File Location in Salesforce Marketing Cloud
Cameron Robert shows how to use PuttyGen to generate and create an SSH Key for SFTP usage in Salesforce Marketing Cloud, then how to create…
Handle Events in Lightning Web Components | Salesforce Tutorial
Watch this video and learn about the following: Create an app that includes multiple components. Describe the file structure of a complex component. Handle events.
Popular Salesforce Infographics
Salesforce CPQ, AI for Smart Selling
Sales teams embracing AI are seeing an expansion in leads and arrangements of over half, cost decreases of 40%–60%, and call time decreases of 60%–70%,…
Salesforce for Sales Development Success
Customer Relationship Management tools like Salesforce help sales teams juggle the hundreds of leads, tasks, and activities they need to complete each day. Modern sales is often…
Salesforce Admin Certification Path
This infographic helps you to understand the complete certification path to become Salesforce Administrator which includes accreditation body, pre-requisites, eligibility criteria, examination format and career…