Forum Discussion

Breton's avatar
Breton
Ideator III
5 years ago

unable to get ID on avtivity2 in server event OnAfterPromote

Hello, I try in Server method to get ID on current activity2 when this is promoted to completed (On project ITEM)

See project management

I write an server method cCharp triggered on OnAfterPromote event, but impossible to get ID and results are :

this.getID() = blank

this.getType() = "Activity2"

the conteny of this  are <Item type="Activity2" idlist="337DD3BC4A814E3883B2EC9488EFBE24" />

I try : string idCurr = this.getProperty("idlist", "pb") ==> Blanck too !

An idea ??

Thanks

1 Reply

  • idlist is not a property, idlist is an attribute. Try this.getAttribute("idlist").

    But be aware, as it is used "idlist" it can contain multiple values separated by commas.