It seems to me that this use of при is only used when talking in general terms about an action. I'm not sure you if you can say я получил ожог при работе с электричеством... at least it sounds a bit strange to me.
Another fairly common expression is при наличии, meaning "if/ when something exists/ is available/ present".