You need to sign in to do that
Don't have an account?
micwa
Partner Portal --> Contact Id
Is there a way how to find out which contact the currently logged in user from a partner portal is? Something like a contactId on the user object or a partnerId field on the contact object?
As I thought, there is a User.ContactId field but it wasn't shown in the eclipse schema.
All Answers
As I thought, there is a User.ContactId field but it wasn't shown in the eclipse schema.
Try using SOQL Queries on Profile and User like this :
Profile p = [select name from profile where name = 'Partner staff Profile']
User usr = [Select id,ContactId, Profile.name from User where id=:UserInfo.getUserId()];
system.debug('-----Create Contact id of loggegedin user----' + usr.contactid);
Hope this helps.