-
ChatterFeed
-
1Best Answers
-
0Likes Received
-
0Likes Given
-
20Questions
-
18Replies
SSO and Customer Portal
Hello,
I have a question and am a little confused after reading the documentation.
I want to use SSO for the customer portal. My users are authenticated on a custom app. From the custom app when they click on a link, I need to then forward them to the Customer Portal and do not want them to login again.
Questions -
1. Do I need to use federated authentication or can I use delegated authentication and what is the preferred way?
2. If while logging in, If I find that a user does not exist in Salesforce, can I then create a user by using the api and then log them in?
Thanks
Rohit
-
- rohit.mehta
- June 02, 2010
- Like
- 0
- Continue reading or reply
Content Link not working from Visual force page
Hello,
I have a VF page which has a link to a content within salesforce. A content url is normally like
/sfc/#version?selectedDocumentId=069Q00000004Elt
When I put a relative url on the Visualforce Page, the link renders as
https://cs3.visual.force.com/sfc/#version?selectedDocumentId=069Q00000004Elt
This works fine in Mozilla and Chrome but IE is not able to render this url.
IE forwards it to
https://cs3.salesforce.com/sfc/#search
Any suggestions?
Thanks
-
- rohit.mehta
- May 04, 2010
- Like
- 0
- Continue reading or reply
Authenticated Web Site User
Hello,
I understand that I can give access to Authenticated Web Site User for a object based on a lookup field to Account/Contact.
I have a many to one scenario where my object has a related list of Contacts.
Is there any way I can give access to this object to based on the Contact having a lookup to this object?
If not, what is the best recommended solution.
Thanks
Ro
-
- rohit.mehta
- April 14, 2010
- Like
- 0
- Continue reading or reply
Not able to login as Authenticated Web Site User
Hello,
1. I created a Customer Portal, enabled login/self registration. Set the Default New User License to "Platform Portal" and the Default New User Profile to "Authenticated Website".
2. Created a Site and enabled login with the Customer Portal.
3. I am able to register a new user through the SiteRegister VF page but am not able to login. I have tried resetting password/ creating new users but cannot login. I get the following error -
"Your login attempt has failed. Make sure the username and password are correct".
I checked the user created from self registration and it all looks fine.
4. I then tried to login into the Customer Portal by using the login url of the Customer Portal. I get the following error -
"The maximum number of logins has been exceeded. Please contact your administrator for more information."
I tried to reset the password and try again but the same issue.
5. The only place I can login in from is the Contact record - "Login As Portal User"
Can someone help me with why I am not able to login from Sites.
Thanks
Ro
-
- rohit.mehta
- April 08, 2010
- Like
- 0
- Continue reading or reply
Managed Packages with Static Resources
I am creating a managed package which has a Static Resource. The static resource has few stylesheets.
I wanted to give the customer the flexibility to edit the style sheets.
If I make the resource as part of the stylesheet, the end user cannot edit it. What is the best way to handle this?
Thanks
Rohit
-
- rohit.mehta
- March 21, 2010
- Like
- 0
- Continue reading or reply
OpportunityTeamMember
Hello,
I have a requirement where on convert of a lead I want to add the original owner of the lead on the Opportunity Sales Team.
I am able to create a OpportunityTeamMember record but I am not able to set the access level. Compilation throws an error - "Field is not writeable"
Any ideas how can I set the access level?
//This works
OpportunityTeamMember tm = new OpportunityTeamMember(UserId = myId, OpportunityId = l.ConvertedOpportunityId, TeamMemberRole = role );
//this does not work
OpportunityTeamMember tm = new OpportunityTeamMember(UserId = myId, OpportunityId = l.ConvertedOpportunityId, TeamMemberRole = role, OpportunityAccessLevel = 'Read');
//throws error - field is not writeable
Thanks,
Rohit
-
- rohit.mehta
- March 05, 2009
- Like
- 0
- Continue reading or reply
"With Sharing" keyword has no effect
Hello,
I have a custom VF page and controller. The controller is declared as
public with sharing class MyCustomController {
The user accessing this page is a Partner user and does not have "Edit" Permissions on Leads but is still able to assign leads to other users.
I also tried assigning leads to a user who does not have "Read" permission on leads and that also surprising worked.
As per my understanding if I declare the class with the "with sharing" keyword, it should take into account the user permission.
Can someone explain why the "with sharing" is not having any effect.
Thanks,
Rohit
-
- rohit.mehta
- February 13, 2009
- Like
- 0
- Continue reading or reply
Multi Lingual visualforce Email templates
Hello,
I have a requirement where on certain workflow rules I want to send out an email in the contacts preferred language.
Is there a way to create multi lingual visual force email templates ?
If not what is the best approach to acheive this?
Thanks,
Rohit
-
- rohit.mehta
- February 02, 2009
- Like
- 0
- Continue reading or reply
Territory Assignment Rules
I have territory assignment rules for Account.
When I update the Account from my apex code, these rules dont seem to run.
When I go into an account within Salesforce and click edit and save, the rules run.
Is there any way to ensure that the rules run when an account is updated from apex code.
Thanks,
Rohit
-
- rohit.mehta
- December 30, 2009
- Like
- 0
- Continue reading or reply
Access Reports Metadata from Apex code
I want to able to retrieve the Id for a Custom Report by name. I have the name of the report and also the folder name of where the report is saved.
Basically what I want to do is
Select Id from Report where name = 'MyReportName';
Since the Report object is not available I am not able to do the above query.
I also have an option of calling it from a SControl.
Thanks,
Rohit
-
- rohit.mehta
- December 12, 2008
- Like
- 0
- Continue reading or reply
Query Reports
Is it possible to query Reports and retrieve its Id. Something like...
Select Id from Report where name='MyReportName';
Thanks,
Rohit
-
- rohit.mehta
- December 12, 2008
- Like
- 0
- Continue reading or reply
Trigger oldMap
I have an after update trigger on opportunity.
I wanted to know what fields are available on an object when I retrieve it from the Trigger.oldMap ?
What I observed is that all fields are not available on the object retrieved from the oldMap and wanted to understand the logic.
Thanks,
Rohit
-
- rohit.mehta
- December 06, 2008
- Like
- 0
- Continue reading or reply
Attempt to de-reference a null object
I have a PRM enabled org. I have an afterUpdate trigger on Opportunity. In the code, I am doing this -
//get the opp fields
Set<Id> oppIds = new Set<Id>();
for (Opportunity opp : Trigger.new) {
oppIds.add(opp.Id);
}
Map<Id, Opportunity> opportunityMap = new Map<Id, Opportunity>(
[Select Id, partnerAccountId, isClosed, isWon, Partner_Amount__c,
closeDate from Opportunity where Id In :oppIds]);
Now when I do this
for (Opportunity o : Trigger.new) {
Opportunity opp = opportunityMap.get(o.Id);
if (opp.partnerAccountId != null) {
It works fine when I do this within Salesforce, but we have a quoting tool - QuoteWerks, which also updates opportunities. This tool throws a Null pointer exception - Attempt to de-reference a null object on this line -
opp.partnerAccountId != null
Any ideas why this would happen.
Thanks,
Rohit
-
- rohit.mehta
- December 04, 2008
- Like
- 0
- Continue reading or reply
Schema.SObjectType.Opportunity.fields.getMap() Returns Empty Map
I want to be able to get all the fields for the Opportunity. I am writing custom code for cloning an opportunity.
I had the following piece of code which was working but suddenly has stopped working.
Map<String, Schema.SObjectField> m = Schema.SObjectType.Opportunity.fields.getMap(); System.debug('isEmpty = ' + m.isEmpty());
This now returns an empty map.
Any ideas why this call would return an empty map.
Thanks,
Rohit
-
- rohit.mehta
- October 13, 2008
- Like
- 0
- Continue reading or reply
My Personal Email Templates
-
- rohit.mehta
- August 12, 2008
- Like
- 0
- Continue reading or reply
Use Letterhead in send mail
-
- rohit.mehta
- July 10, 2008
- Like
- 0
- Continue reading or reply
NEXT_N_DAYS Query
Integer mydays = 20; Select Id from Opportunity where CloseDate = NEXT_N_DAYS:mydays
NEXT_N_DAYS::mydays NEXT_N_DAYS:mydays NEXT_N_DAYS: =:mydays
How do I do this?
Thanks,
-
- rohit.mehta
- June 03, 2008
- Like
- 0
- Continue reading or reply
SOAPAction HTTP header missing
-
- rohit.mehta
- March 19, 2008
- Like
- 0
- Continue reading or reply
SOAPAction HTTP header missing
The error message is
{faultcode:'soapenv:Client', faultstring:'SOAPAction HTTP header missing',}
I am using the 10.0 api.
Any help is appreciated.
Thanks
Rohit
-
- rohit.mehta
- December 29, 2007
- Like
- 0
- Continue reading or reply
Approve Custom Object in SControl
request.action = "Approve";
request.workitemId = "{!MyObject__c.Id}";
request.comment = "Automated approval.";
var processRes = sforce.connection.process([request]);
This is giving an error -
"invalid cross reference id"
Any help?
-
- rohit.mehta
- July 31, 2007
- Like
- 0
- Continue reading or reply
Not able to login as Authenticated Web Site User
Hello,
1. I created a Customer Portal, enabled login/self registration. Set the Default New User License to "Platform Portal" and the Default New User Profile to "Authenticated Website".
2. Created a Site and enabled login with the Customer Portal.
3. I am able to register a new user through the SiteRegister VF page but am not able to login. I have tried resetting password/ creating new users but cannot login. I get the following error -
"Your login attempt has failed. Make sure the username and password are correct".
I checked the user created from self registration and it all looks fine.
4. I then tried to login into the Customer Portal by using the login url of the Customer Portal. I get the following error -
"The maximum number of logins has been exceeded. Please contact your administrator for more information."
I tried to reset the password and try again but the same issue.
5. The only place I can login in from is the Contact record - "Login As Portal User"
Can someone help me with why I am not able to login from Sites.
Thanks
Ro
- rohit.mehta
- April 08, 2010
- Like
- 0
- Continue reading or reply
"With Sharing" keyword has no effect
Hello,
I have a custom VF page and controller. The controller is declared as
public with sharing class MyCustomController {
The user accessing this page is a Partner user and does not have "Edit" Permissions on Leads but is still able to assign leads to other users.
I also tried assigning leads to a user who does not have "Read" permission on leads and that also surprising worked.
As per my understanding if I declare the class with the "with sharing" keyword, it should take into account the user permission.
Can someone explain why the "with sharing" is not having any effect.
Thanks,
Rohit
- rohit.mehta
- February 13, 2009
- Like
- 0
- Continue reading or reply
Multi Lingual visualforce Email templates
Hello,
I have a requirement where on certain workflow rules I want to send out an email in the contacts preferred language.
Is there a way to create multi lingual visual force email templates ?
If not what is the best approach to acheive this?
Thanks,
Rohit
- rohit.mehta
- February 02, 2009
- Like
- 0
- Continue reading or reply
How to dynamically display SObject in a VF page?
I'd like to dynamically render an Sobject to a VF page.
Here is my controller:
private list<SObject> obj;
public void setobj(list<SObject> s){obj=s;} public list<Sobject> getobj(){return obj;}
public PageReference init() {
obj=[select Name from Account limit 10]; return null; }
Here my VF Page:
<apex:page Controller="Test" action="{!init}"> <apex:form> <apex:repeat value="{!obj}" var="field"> <apex:inputField value="{!field.Name}"/> </apex:repeat> </apex:form> </apex:page>
I've got this error message :
Read access not found for null.I've also tried with outputText, inputText with no success.The only field I've managed to retrieve is the ID.
Any Idea ?
- Yonathan
- December 28, 2009
- Like
- 0
- Continue reading or reply
Query Reports
Is it possible to query Reports and retrieve its Id. Something like...
Select Id from Report where name='MyReportName';
Thanks,
Rohit
- rohit.mehta
- December 12, 2008
- Like
- 0
- Continue reading or reply
Attempt to de-reference a null object
I have a PRM enabled org. I have an afterUpdate trigger on Opportunity. In the code, I am doing this -
//get the opp fields
Set<Id> oppIds = new Set<Id>();
for (Opportunity opp : Trigger.new) {
oppIds.add(opp.Id);
}
Map<Id, Opportunity> opportunityMap = new Map<Id, Opportunity>(
[Select Id, partnerAccountId, isClosed, isWon, Partner_Amount__c,
closeDate from Opportunity where Id In :oppIds]);
Now when I do this
for (Opportunity o : Trigger.new) {
Opportunity opp = opportunityMap.get(o.Id);
if (opp.partnerAccountId != null) {
It works fine when I do this within Salesforce, but we have a quoting tool - QuoteWerks, which also updates opportunities. This tool throws a Null pointer exception - Attempt to de-reference a null object on this line -
opp.partnerAccountId != null
Any ideas why this would happen.
Thanks,
Rohit
- rohit.mehta
- December 04, 2008
- Like
- 0
- Continue reading or reply
Customer Portal and Single Sign On
- jazzieb
- October 29, 2008
- Like
- 0
- Continue reading or reply
Schema.SObjectType.Opportunity.fields.getMap() Returns Empty Map
I want to be able to get all the fields for the Opportunity. I am writing custom code for cloning an opportunity.
I had the following piece of code which was working but suddenly has stopped working.
Map<String, Schema.SObjectField> m = Schema.SObjectType.Opportunity.fields.getMap(); System.debug('isEmpty = ' + m.isEmpty());
This now returns an empty map.
Any ideas why this call would return an empty map.
Thanks,
Rohit
- rohit.mehta
- October 13, 2008
- Like
- 0
- Continue reading or reply
SOQL and Too Many Query Rows
Also, if all I'm doing is an SOQL count() .. how can I count all the records if it exceeds 10k? Example please. Thanks.
- dkorba2k5
- October 06, 2008
- Like
- 0
- Continue reading or reply
My Personal Email Templates
- rohit.mehta
- August 12, 2008
- Like
- 0
- Continue reading or reply
Use Letterhead in send mail
- rohit.mehta
- July 10, 2008
- Like
- 0
- Continue reading or reply
How to display exception message
I used try and catch statements in Controller extension to catch DML errors.
How can I disply the error message ? I know that I can get the message from e.getMessage() where "e" is the exception.
But how do I display it on the current page . I tried using ApexPages but cud not succeed.
Thanks in advance!
Sirisha
- SirishaM
- June 20, 2008
- Like
- 0
- Continue reading or reply
NEXT_N_DAYS Query
Integer mydays = 20; Select Id from Opportunity where CloseDate = NEXT_N_DAYS:mydays
NEXT_N_DAYS::mydays NEXT_N_DAYS:mydays NEXT_N_DAYS: =:mydays
How do I do this?
Thanks,
- rohit.mehta
- June 03, 2008
- Like
- 0
- Continue reading or reply
SOAPAction HTTP header missing
- rohit.mehta
- March 19, 2008
- Like
- 0
- Continue reading or reply
SOAPAction HTTP header missing
The error message is
{faultcode:'soapenv:Client', faultstring:'SOAPAction HTTP header missing',}
I am using the 10.0 api.
Any help is appreciated.
Thanks
Rohit
- rohit.mehta
- December 29, 2007
- Like
- 0
- Continue reading or reply