add getForeignId for postings