4

Can we capture the PublishTransaction TCM URI in custom Resolver while publishing?

4
  • Yes you can. TOM.NET API provides this capability. Commented Sep 14, 2015 at 11:08
  • would you please elaborate more info...
    – USER1287
    Commented Sep 14, 2015 at 11:17
  • Have a look at the Tom.net API docs. Otherwise share what you've read/tried to solve this and specifically where you got stuck. Commented Sep 14, 2015 at 15:07
  • Tridion.ContentManager.Publishing.PublishTransaction PT = new PublishTransaction(item.Id, context.Session);
    – USER1287
    Commented Sep 15, 2015 at 12:08

1 Answer 1

2

It's not possible. The resolver doesn't know/care about the concept of Publish Transactions. To elaborate on this, the method signature Resolve has 4 parameters, none of which you can use to somehow trace back the ID you are searching for. Also, take the following scenario for example, when in the Publish dialog you click Show items to publish the resolver gets triggered, but there is no Publish Transaction yet because a Publish action is not yet saved. The Id is assigned upon saving.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.