Forum Discussion
I think you would need a Method on the Parts workflow that searched for any attached Documents and activated the workflow on them.
- Florian127 years agoIdeator I
wouldn't it be possible to put the relationship 'Parts-document' as the itemtype in Promotions?
- Meismart7 years agoIdeator I
I think you are getting confused by the ItemType on the workflow (as I did once).
The ItemType used during a workflow promotion is the ItemType of the Item being voted on, defining the document at this stage:
WILL NOT automatically promote the Document relationships.
WILL allow you to re-use the Workflow on the Document ItemType.i.e. if you had a simple Lifecycle and workflow, you could re-use these multiple times by defining a separate promotion for each ItemType you planned to use it on.
In order to affect the relationship items, you need a method that uses the context item to find the related items and perform a promotion.
I.e. use AML to get the Document Items based on the Part-Document relationship, then call the Action "Promote" on each Document in turn.
Many thanks,
Martin.- Florian127 years agoIdeator I
Hello Martin,
Thank you very much for your quick reply and solution! I'll get into the AML code then in order to get the document items through the relationship.
Best regards,
Florian