Have you tried a future call to a method that does this? I have seen
problems with accessing User object from Account solve this. If this
is not a workable strategy, can you explain why because I have not
worked on territory management. If it is possible you can find
something about updating user from account (on the discussion boards
from sf). Either way, it would be nice to hear back on this.
On Nov 4, 11:27 am, naga krishna prabhakar chimakurthy
<
naga.chimakur...@gmail.com> wrote:
> hi charles,
>
> Thanks for the reply,i tried that before but whats happening is the the
> record on shadow object is deleting but not the territory record saying the
> DML operation on territory is not allowed. So its the issue with security
> settings for territory object by salesforce so now i catched up with
> different approach by disabling the standard delete button on the pagelayout
> and created a custom delete button which invokes javascript and calls a
> webservice method where i perform the deletion of territory . And on
> territory object i have written a after delete trigger which will update the
> field in shadow.
>
> cheers,
> prabhakar.
>
> On Wed, Nov 3, 2010 at 10:08 PM, charles ravikiran
> <
dude.char...@gmail.com>wrote:
>
> > Hi Prabhakar,
>
> > you need to write a trigger on the shadow object and use a SOQL to retrieve
> > the teritory obj record and perform delete op on the territory obj.
>