You need to sign in to do that
Don't have an account?
Claudio D'Amico
Fill automatically parent account field
Hi All ,
I have to fill Parent Account field on the Child Account and the only information I've on the Child Account, that I receive through sync, is a number, of the Patent ACcountm stored in a picklist custom field named VENDOR. The same number is stored on the Parent Account as ACCOUNT NUMBER. Can some one suggest a solution on this?
Thanks
Claudio
I have to fill Parent Account field on the Child Account and the only information I've on the Child Account, that I receive through sync, is a number, of the Patent ACcountm stored in a picklist custom field named VENDOR. The same number is stored on the Parent Account as ACCOUNT NUMBER. Can some one suggest a solution on this?
Thanks
Claudio
If I understand your question properly you want to link a child Account to a parent Account using the same field value.
One option would be to modify the “sync” process to first query Salesforce to find the parent account using the Account Number/Vendor value. But let’s assume you can’t modify this and need to do this in Salesforce.
You could set up a Process Builder + Flow to query the parent Account record using the Account Number/Vendor and set the Account lookup field. However, this would not be the most efficient method due to Process Builder/flow not being fully bulkified.
The most efficient method would be to write a trigger - see a rough outline of the class that should be called from a before insert trigger context
Cheers,
Ricky