C
cohezive
Guest
That's not possible without a lot of work since I've already changed the application. So let's try this: Create Object A with Name, Ref No, and, Parent Ref No. (Ref No must be unique). Create a Hierarchical Relationship on A with "Parent A" and "Child A" - and add them to the New, View and Edit Pages. Edit the "All Record View" to show the Parent in the Record List. Write an After Create Trigger to "Attach Related Record" with the script finding the Parent record via query and returning an array containing the ID found to the Hierarchical Relationship. Import records into A with the three fields - make sure the records are sorted according to Ref No. Import should kick off the Run the After Create Trigger. What you should see in the View is each record has the parent name in Record List. However, when you go into the View Object Page, the field for the Parent relationship is empty. After validating that - now create a replacement After Create Trigger to "Updated Field Value" using the same script as above. The field to be updated is the Parent field in the relationship. Repeat the View List and View Object and this time, it appears in both. If you still don't understand or cannot duplicate the issue, let me know and I'll work on screenshots.
Continue reading...
Continue reading...