-
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 3 years, 7 months ago by Angela Wright.
- This discussion was modified 3 years, 7 months ago by Angela Wright.
Log In to reply.
Popular Salesforce Blogs
Interaction Studio: Salesforce's Next-Level Marketing App
In this day and age, having a next-level marketing tool is crucial if you want to stay ahead of the competition. To do that, you…
What is Multi-factor Authentication (MFA)? When and How to Use it? | Salesforce Developer Guide
What is Multi-factor Authentication (MFA)? Multi-factor authentication (MFA) is a secure authentication method that requires users to prove their identity by supplying two or more…
Salesforce Territory Management: Overview, Features, Pros and Cons
If being territorial can help your business, why not adopt it? Well, just the way being territorial can help you have a clear vision of…
Popular Salesforce Videos
What is APEX Trigger in Salesforce? | Salesforce Learning
Apex can be invoked by using triggers. Apex triggers enable you to perform custom actions before or after changes to Salesforce records, such as insertions,…
Salesforce - How to Create and Debug Process Builders
Check out this video on how to debug Process Builders. Once you really get into building processes in Salesforce in can be confusing as to…
How Does SFCC (Headless Commerce) Different From Its Competitors and Why Is It Better? | Salesforce
Let's have look at which one is better SFCC, Shopify, Magento, or Woocommerce. Which one you should choose? Have a glance at this extract from…
Popular Salesforce Infographics
Boost Sales and Marketing with Salesforce Einstein 1
Salesforce Einstein 1 is a suite of artificial intelligence (AI) tools designed to enhance business efficiency and decision-making. Around 80% of customers expect companies to…
Future of Salesforce CPQ
Salesforce CPQ is a highly dependable tool that provides an accurate pricing strategy by configuring, pricing, and quoting the products of each company based on…
Salesforce Marketing Automation: Sales or Marketing Tool? [infographic]
Marketing automation has a hidden talent. Despite being marketed for years as a tool for, well, marketers, automation is changing the shape of the modern…