You need to sign in to do that
Don't have an account?

populate hierarchy field parent account on account object
Hi,
I have a requirement to populate "parent account" on Account based on a custom field value. I tried to achieve it through a trigger.
In bulk upsert,if the child account is inserted before the parent account,parent account on child is not getting assigned.
Accounts data will be upserted to salesforce through a scheduled pentaho job from another application on dailiy basis.
Could some one please advise me how to resolve the issue?
Thanks in advance.
BR,
BB
I have a requirement to populate "parent account" on Account based on a custom field value. I tried to achieve it through a trigger.
In bulk upsert,if the child account is inserted before the parent account,parent account on child is not getting assigned.
Accounts data will be upserted to salesforce through a scheduled pentaho job from another application on dailiy basis.
Could some one please advise me how to resolve the issue?
Thanks in advance.
BR,
BB
Here child records contains the parent color code so that it can be liked to parent records.
If it solves your problem, please mark it as solved or best answer.
All Answers
You will never able to poplate parent account field if there is no parent available. So , before inserting account you have to insert parent account if you want to do this via trigger.
You can write a schedule batch which is scheduled for daily after the data is upserted into the org.Assuming your scheduled pentaho job from another application is scheduled for a fix time.
Yes Our pentaho job is scheduled at fix time. can you please explian me how the scheduled batch helps here.
Thanks in advance.
BR,
Bhargavi
Here child records contains the parent color code so that it can be liked to parent records.
If it solves your problem, please mark it as solved or best answer.
BR,
BB