+ Start a Discussion
Avik Mukherjee 16Avik Mukherjee 16 

Redirect to a different url if the user is partner.

Hi All,

I have a requirement where if the user is a partner user then on button click it should redirect to different url and for internal users a different url.

{!
IF( $User.License_Type__c =='Gold Partner',
/philipspartnercommunity/setup/ui/recordtypeselect.jsp?ent=Opportunity&retURL=%2Fphilipspartnercommunity%2F001d000001y1zTy&save_new_url=%2Fphilipspartnercommunity%2F006%2Fe%3FretURL%3D%252Fphilipspartnercommunity%252F001d000001y1zTy%26accid%3D001d000001y1zTy  , 
/setup/ui/recordtypeselect.jsp?ent=Opportunity&retURL=%2F{!Account.Id}&save_new_url=%2F006%2Fe%3FretURL%3D%252F{!Account.Id}%26accid%3D{!Account.Id} 
&00Nd00000076VtL="{!Account.Market__c}"
)}

but this does not work,can any one help.