-
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 4 years, 11 months ago by
Angela Wright.
-
This discussion was modified 4 years, 11 months ago by
Angela Wright.
-
This discussion was modified 4 years, 11 months ago by
Log In to reply.
Popular Salesforce Blogs
Salesforce Automation for Small Businesses: The Essential Guide
What if you are a successful business owner, and your outstanding salespersons have to waste their time on repetitions? Sound familiar? Small business ownership entails…
Easily Migrate to Lightning Knowledge from Classic Knowledge with This Strategy Guide
Your support reps can spend hours just juggling interfaces if your Service Cloud is in Lightning but Knowledge continues to be in Classic. This switching…
Popular Salesforce Videos
What is Salesforce
Discover Salesforce, the world’s leading CRM platform! Learn how it helps businesses manage customer relationships, automate workflows, and grow. We’ll explore its ecosystem—Sales Cloud, Service…
Allies Unite at Dreamforce 2019! Datafam march to trailblazers, Drumrolls!
mid laughter and boisterous conversations at Dreamforest, Datafam - the Tableau workforce - turned all heads with a remarkable entry marked with riotous sounds and…
TOP 20 Salesforce Integration Interview Questions and Answers 2019 | Salesforce Integration
In this video, Wisdom Jobs and Tutorials explains the 20 most popular questions asked during Salesforce Integration interviews. These questions cover topics like what web…
Popular Salesforce Infographics
Salesforce Agentforce - The AI assistant for business growth
This infographic highlights Salesforce Agentforce, an AI-powered assistant designed to enhance business growth through automation, insights, and intelligent task management. It explains how Agentforce transforms…
How Customer Experience Is Rewriting the Rules of Business Success
Your guide to customer experience - Customers expectations are changing. And as they change, businesses face sky high standards for delivering customer experience that's a…
The Role of a Salesforce Administrator
Identify the latest Salesforce Administrator trends from the Salesforce Usage Report 2017 using data from over 1,200 Salesforce respondents. Publisher : Ebsta Limited