You need to sign in to do that
Don't have an account?
Diane Royer
WorkFlow to Update Fields and Objects
Hello,
I am very new to setting up work flows in Salesforce. I have worked my way through a text book about the flows, but am having difficulty setting one up. I want to set up a work flow that I can schedule and have it update all of the records where a major is requested to be changed. We have a field called Program that houses the student's major and a field that is Change Major To if the student changes his or her mind before applying. I need the work flow to update the Program field to the value that is in the Change Major To field and then change the Program field in all corresponding Stage Histories. I got the flow to loop through all of the students, but I can't seem to get it to go through a second loop to update all of the students' stages. I have attached a snapshot of the flow for you to see.
Any help would be appreciated.
I am very new to setting up work flows in Salesforce. I have worked my way through a text book about the flows, but am having difficulty setting one up. I want to set up a work flow that I can schedule and have it update all of the records where a major is requested to be changed. We have a field called Program that houses the student's major and a field that is Change Major To if the student changes his or her mind before applying. I need the work flow to update the Program field to the value that is in the Change Major To field and then change the Program field in all corresponding Stage Histories. I got the flow to loop through all of the students, but I can't seem to get it to go through a second loop to update all of the students' stages. I have attached a snapshot of the flow for you to see.
Any help would be appreciated.
What is the need to update stage history?
You would have enabled field tracking on that object of that field but what is the need to change it in history?
Can you please explain the requirement so that i can help you better.
Cheers!!!
SELECT ParentId, OldValue, NewValue, Field, CreatedById, CreatedDate FROM Customer_History where parentId = <RECOrD_ID> and Field = <FIELD_NAME>
And then you can forward the result to the program with the new value.
Cheers!!!
The Loop element in flow iterates through each element its just you need to check whether all the records are queried and you are using fast lookup tor return collection of stage history.
Cheers!!!
You need to update the task status as 'Completed'.
Cheers!!!