You need to sign in to do that
Don't have an account?
FastSnail
After Insert BULK Trigger using the Id of the newly created records to populate a field?
Hello everyone,
I am strugling with the following. I want to populate a URL field that will include the Id of the inserted record through a Trigger.
It has to be an AFTER Insert trigger as it uses the Id of the inserted object.
I need this trigger to run in BULK (more tne 200 at a time), so I cannot use SOQL inside the trigger
How do you achieve this?
Thanks in advance for your herp.
Jerome
I am strugling with the following. I want to populate a URL field that will include the Id of the inserted record through a Trigger.
It has to be an AFTER Insert trigger as it uses the Id of the inserted object.
I need this trigger to run in BULK (more tne 200 at a time), so I cannot use SOQL inside the trigger
How do you achieve this?
Thanks in advance for your herp.
Jerome
Check http://help.salesforce.com/HTViewHelpDoc?id=customize_functions_a_h.htm&language=en_US (http://help.salesforce.com/HTViewHelpDoc?id=customize_functions_a_h.htm&language=en_US)
and search on HYPERLINK for how to use the HYPERLINK function in a text formula field. Assuming there's a reasonably finite number of urls, you should be able to craft a formula field to create the URL and not have to hastle trying how to do it via an after trigger
All Answers
Check http://help.salesforce.com/HTViewHelpDoc?id=customize_functions_a_h.htm&language=en_US (http://help.salesforce.com/HTViewHelpDoc?id=customize_functions_a_h.htm&language=en_US)
and search on HYPERLINK for how to use the HYPERLINK function in a text formula field. Assuming there's a reasonably finite number of urls, you should be able to craft a formula field to create the URL and not have to hastle trying how to do it via an after trigger