Return document id on successful save and open