• Frederick Bunao
  • NEWBIE
  • 15 Points
  • Member since 2022

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
I am a new-ish Salesforce admin coming from PLSQL work.

I'm aware of using apex to query records, put in a list, use a for loop to change attributes, then update the records in the list.

In my previous life when we needed to do mass updates, we just do an update where statement. Is this possible in Salesforce? And if not, I'd like to know if there is a technical reason behind it. Purely so I can better understand the infrastructure too. I'm currently the only person in the team who has gotten into Salesforce and I'm trying to be able to communicate why we can't or shouldn't do certain things on the platform the same as we do with our custom database. (like have thousands of lines of database logic for automation)
Hello, I have no Apex experience or knowledge whatsoever, but I believe I may need some kind of Apex code for this.

Our org has a customer Product Object, which can have a Product Formula child object, and each Formula object will have Formula Items as a Junction Object between the Formula and Ingredient objects.

PRODUCT > FORMULA > FORMULA ITEM < INGREDIENT
        |_________________________|
We already have a Visualforce page that renders a PDF on the Product record that shows all the product details. It is easy and uses the standard controller. BUT I am now being asked to display all the Formula Items included in the formula for that product on the Visualforce Page. Even trickier, the grand child record needs to be based on a picklist value on the Product Record.

i.e.
Product X has Formula A, B, C
Product X's picklist says "Formula A"
Visualforce PDF page needs to look at Formula A and list every Formula Item in Formula A.
If someone changes the picklist to "Formula B" then Visualforce PDF page will show every Formula Item in Formula B.

If anyone can just show me a good, simple example that shows a Visualforce page, whether through custom Apex or not, that can conditionally display grandchild records on the grandparent record it would be an amazing start.
 
I am a new-ish Salesforce admin coming from PLSQL work.

I'm aware of using apex to query records, put in a list, use a for loop to change attributes, then update the records in the list.

In my previous life when we needed to do mass updates, we just do an update where statement. Is this possible in Salesforce? And if not, I'd like to know if there is a technical reason behind it. Purely so I can better understand the infrastructure too. I'm currently the only person in the team who has gotten into Salesforce and I'm trying to be able to communicate why we can't or shouldn't do certain things on the platform the same as we do with our custom database. (like have thousands of lines of database logic for automation)
I am a new-ish Salesforce admin coming from PLSQL work.

I'm aware of using apex to query records, put in a list, use a for loop to change attributes, then update the records in the list.

In my previous life when we needed to do mass updates, we just do an update where statement. Is this possible in Salesforce? And if not, I'd like to know if there is a technical reason behind it. Purely so I can better understand the infrastructure too. I'm currently the only person in the team who has gotten into Salesforce and I'm trying to be able to communicate why we can't or shouldn't do certain things on the platform the same as we do with our custom database. (like have thousands of lines of database logic for automation)