Skip to main content
deleted 1 character in body
Source Link
Marko Milic
  • 8.9k
  • 3
  • 24
  • 60

We currently have part of our event system, that on the creation of content on a specific schema, a new component is created, taking values from the original. I have set this up so that the auto-created component automatically completes the first step in workflow, which then sends the workflow down a path to exit workflow.

The problem I now have is that this only works when the user doing the original creation is a system admin, with workflow priveledgesprivileges. When they are not, the item stays in workflow.

I think I can get around this by doing the auto-creation by impersonating the system account, which then would have the priveledges, but can't work out how to write it. Event code is in VB.Net, using Tridion 2009 SP1

We currently have part of our event system, that on the creation of content on a specific schema, a new component is created, taking values from the original. I have set this up so that the auto-created component automatically completes the first step in workflow, which then sends the workflow down a path to exit workflow.

The problem I now have is that this only works when the user doing the original creation is a system admin, with workflow priveledges. When they are not, the item stays in workflow.

I think I can get around this by doing the auto-creation by impersonating the system account, which then would have the priveledges, but can't work out how to write it. Event code is in VB.Net, using Tridion 2009 SP1

We currently have part of our event system, that on the creation of content on a specific schema, a new component is created, taking values from the original. I have set this up so that the auto-created component automatically completes the first step in workflow, which then sends the workflow down a path to exit workflow.

The problem I now have is that this only works when the user doing the original creation is a system admin, with workflow privileges. When they are not, the item stays in workflow.

I think I can get around this by doing the auto-creation by impersonating the system account, which then would have the priveledges, but can't work out how to write it. Event code is in VB.Net, using Tridion 2009 SP1

Tweeted twitter.com/#!/StackTridion/status/349178121565650944
Source Link

Using impersonation in VB.Net 2009 Event System

We currently have part of our event system, that on the creation of content on a specific schema, a new component is created, taking values from the original. I have set this up so that the auto-created component automatically completes the first step in workflow, which then sends the workflow down a path to exit workflow.

The problem I now have is that this only works when the user doing the original creation is a system admin, with workflow priveledges. When they are not, the item stays in workflow.

I think I can get around this by doing the auto-creation by impersonating the system account, which then would have the priveledges, but can't work out how to write it. Event code is in VB.Net, using Tridion 2009 SP1