Forum Discussion
Hi Angelalp,
thanks for the code. I agree this should be a standard API function. Indeed, we also get customers requests to make some important action visible in the history, which not necessarily is a standard action.
Best regards,
Raoul
BTW, in your code you push the type name (getType()) into the itemtype_id which obviously does not work. Luckily, you don't need the type to get the history container (id should be unique). So when you just omit this in the search, the code works.
- AngelaIp7 years agoIdeator I
Hi Raoul,
thanks for the hint! You´re right, with the itemtype_id. The above query isn´t perfect. I noticed that I use two AML queries. I use a get/add combination. it would be better to unify these two into an edit/add query.
But is the config_id really unique over all ItemTypes? Or just within one table?