Forum Discussion
wouldn't it be possible to put the relationship 'Parts-document' as the itemtype in Promotions?
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
- Florian127 years agoIdeator I
Hello again Martin,
I tried coding the method as you said. I wrote it for the relationship Parts-Document. Basically if I do a revision of my part i want to promote my document back to 'In work' in order to trigger the workflow.
I wrote following method:
I assigned it in the RelationshipType Parts_Document and selected 'OnSelectRow'.
However, I get following error message every time I click on the document in my Parts form:
Do you have any idea where that comes from?
Kind regards,
Florian