Innovator inn = this.getInnovator(); Item workflow = inn.getItemById("Workflow Map","AAE3732B971C4397917669FC46576DC8"); string id = getNewID(); // Create new instance of Relationship ItemType Item newWMA = inn.newItem("Workflow Map Activity","add"); newWMA.setProperty("source_id", "AAE3732B971C4397917669FC46576DC8"); Item relatedItem = newItem("Activity Template","add"); newWMA.setRelatedItem(relatedItem); workflow.addRelationship(newWMA); relatedItem.apply(); return this;Unfortunately the execution always results in the following error code:
Dependent Activity Template cannot be create: source item not found.The ItemType Activity Template is set to "dependent". I assume that the error is related to this. Many thanks for the help in advance. Greetings Rik