Hi,
I have a relationship defined between two item types say part and document
and the relationship options available on the form are "No related" and "Create Only"
I have a scenario such that when "no related" option is selected and I populate the property values, on onAfterAdd event of the relationship based on some conditions I want to attach a related item(creating from my code) to it.
however even though I am able to achieve this on the "on before update" event. I am unable to do it on onAfterAdd event.
is there any way to achieve this functionality from the onAfterAdd event??
also I would like to know why this.setProperty("related_id",idOfrelatedItem) is working on "onBeforeUpdate" and not on "onAfter/BeforeAdd" events.