• Euclid
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 7
    Replies

It may sound really stupid, but I had this doubt while customizing a report.

 

Question: Is there any way we can customize the date range (From & To) in report 'Standard Filters' to show past & future dates as we want?

 

I know the page section header says its Standard Filter and provides an indication that it is set by default by Salesforce.com, but we know it is possible to modify the Range (by changing Fiscal Period definitions). So, here goes my question again, is the date range something customizable in Salesforce.com?

 

Thanks a lot for your replies!

 

Regards,

Euclid

  • August 27, 2013
  • Like
  • 0

Hi Guyz,

 

Facing one issue with web service call from a java code. 

Here is the exception we are receiving in the logs:

 

[Security:090504]Certificate chain received from cs1.salesforce.com - 204.14.234.** failed hostname verification check. Certificate contained *.salesforce.com but check expected cs1.salesforce.com

 

Any idea why we are getting this? 

 

Thanks in advance!

Hi,

 

I have been working on a page to have a mass update of owner in Salesforce.com for Leads & Opportunities. 

Based on the input(csv file) from user the code is supposed to update the Lead & Opportunity object with appropriate Owners.

 

However, I m getting the following error when trying to update the owner information. 

 

 

 

System.DmlException: Update failed. First exception on row 0 with id 006Q000000BKaeIIAT; first error: INVALID_CROSS_REFERENCE_KEY, Owner ID: owner cannot be blank: [OwnerId]

 

Following is the method which is being called:

 

public Pagereference ReadFile()
{
nameFile=contentFile.toString();
filelines = nameFile.split('\n');
system.debug('file lines: '+filelines);
system.debug('file line size: '+filelines.size());
OpptyTaskTransfer_CTE o = new OpptyTaskTransfer_CTE();
opptytoupdate = new List<Opportunity>();
try
{

for (Integer i=1;i<filelines.size();i++)
{
List<String> inputvalues=filelines[i].split(',');
if(o.isValidId(inputvalues[0].trim()))
{
listOppty.add(inputvalues[0].trim());
listUser.add(inputvalues[1].trim());
mapOpptyOwner.put(inputvalues[1].trim(),inputvalues[0].trim());
}
else
{
ApexPages.Message errormsg = new ApexPages.Message(ApexPages.severity.ERROR,'Please check the Lead Id: '+inputvalues[0].trim());
ApexPages.addMessage(errormsg);
}

}

Set<String> setUsers = new Set<String>();
setUsers.addAll(listUser);

for(String uname: setUsers)
{
if([select Id, Name,Username from User where username=:uname and isActive=true limit 1].size()!=1)
{
ApexPages.Message errormsg = new ApexPages.Message(ApexPages.severity.ERROR,'Please check the Username: '+uname);
ApexPages.addMessage(errormsg);
}
}


allUsers = [select Id,Name,Username from User where Username IN: setUsers and isActive=true];

for (String username : setUsers)
{
for(User u : allUsers)
{
if(username ==u.Username)
{
mapUser.put(u.username,u.Id);
}
}
}

for(String uName : mapOpptyOwner.keySet())
{
mapOpptyOwnerId.put(mapOpptyOwner.get(uname),mapUser.get(uname));
}

allOppty = [select Id,OwnerId from Opportunity where Id IN: listOppty];

for(Id i : listOppty)
{
for(Opportunity op : allOppty)
{
if(i==op.Id)
{
op.OwnerId=mapOpptyOwnerId.get(i);
opptyToUpdate.add(op);
}
}
}

if(!opptytoupdate.isEmpty())
{
update opptytoupdate;
ApexPages.Message succmsg = new ApexPages.Message(ApexPages.severity.INFO,'Updated '+opptytoupdate.size()+' record(s) successfully.');
ApexPages.addMessage(succmsg);
}
}
catch (Exception e)
{
ApexPages.Message errormsg = new ApexPages.Message(ApexPages.severity.ERROR,'An error has occured. Please check the file uploaded or try again later');
ApexPages.addMessage(errormsg);
}
return null;
}

 

I am unable to figure out the issue here. Can some one please help?

 

Thanks...

Hi,

 

Is there any way to find out which server SFDC uses to send email? I looked for this information uder Email Administration but couldn't find any relevant details. 

 

Please help!

 

Thanks,

Euclid

  • April 10, 2013
  • Like
  • 0

Hi,

 

In case the email used for creating a user record gets decommissioned, is there any impact on authentication?

 

Example:

 A user record has email as example@domain.com

 

Now, if the 'domain.com' domain is decommissioned, how will it affect our authentication in Salesforce.com?

 

Thanks,

Euclid

  • February 21, 2013
  • Like
  • 0

Hi,

 

Apologies for a lazy title. I came accross an issue where the emails sent out to a particular email address is getting errored out and ultimately not reaching the receipent's inbox. The emails sent from Salesforce.com is through Workflow-Email Alert. When checked the email logs, I found the following error for these emails being sent:

550 #5.1.0 Address rejected.


I did some digging on this but was unable to find a particular solution for this. Since, we use default Salesforce.com email server for email messages, not sure if this has to do with server configuration.

Can anyone advise as to how can we go about resolving this issue?

 

Thanks.

 

  • September 21, 2012
  • Like
  • 0

Hi,

 

Is there any way to import email templates from an external website to Salesforce.com? I am familiar to the approach where we can insert new templates through Data Loader, but how can the templates in .html be formatted to be uploaded as a .csv file?

 

Also, it will be helpful if there is any suggestion on a more dymanic approach to acheive this.

 

Thanks!! 

 

 

  • September 12, 2012
  • Like
  • 0

Hi,

 

I am very new to Salesforce.com development and wanted to know about data loading process in Salesforce.com. As far as I know, when it comes to mass data loading into one of the Salesforce.com objects, Apex Data Loader is the best tool to be used. Apart from that there is also sforce Connector plugin available for Excel users.

 

Now, I wanted to know if this can be done in any other way. I mean, not using Data Loader or sforce Connector , can we do a mass data upload into Salesforce.com?

 

Thanks in advance!

 

 

  • February 14, 2012
  • Like
  • 0

Hi Guyz,

 

Facing one issue with web service call from a java code. 

Here is the exception we are receiving in the logs:

 

[Security:090504]Certificate chain received from cs1.salesforce.com - 204.14.234.** failed hostname verification check. Certificate contained *.salesforce.com but check expected cs1.salesforce.com

 

Any idea why we are getting this? 

 

Thanks in advance!

Hi,

 

I have been working on a page to have a mass update of owner in Salesforce.com for Leads & Opportunities. 

Based on the input(csv file) from user the code is supposed to update the Lead & Opportunity object with appropriate Owners.

 

However, I m getting the following error when trying to update the owner information. 

 

 

 

System.DmlException: Update failed. First exception on row 0 with id 006Q000000BKaeIIAT; first error: INVALID_CROSS_REFERENCE_KEY, Owner ID: owner cannot be blank: [OwnerId]

 

Following is the method which is being called:

 

public Pagereference ReadFile()
{
nameFile=contentFile.toString();
filelines = nameFile.split('\n');
system.debug('file lines: '+filelines);
system.debug('file line size: '+filelines.size());
OpptyTaskTransfer_CTE o = new OpptyTaskTransfer_CTE();
opptytoupdate = new List<Opportunity>();
try
{

for (Integer i=1;i<filelines.size();i++)
{
List<String> inputvalues=filelines[i].split(',');
if(o.isValidId(inputvalues[0].trim()))
{
listOppty.add(inputvalues[0].trim());
listUser.add(inputvalues[1].trim());
mapOpptyOwner.put(inputvalues[1].trim(),inputvalues[0].trim());
}
else
{
ApexPages.Message errormsg = new ApexPages.Message(ApexPages.severity.ERROR,'Please check the Lead Id: '+inputvalues[0].trim());
ApexPages.addMessage(errormsg);
}

}

Set<String> setUsers = new Set<String>();
setUsers.addAll(listUser);

for(String uname: setUsers)
{
if([select Id, Name,Username from User where username=:uname and isActive=true limit 1].size()!=1)
{
ApexPages.Message errormsg = new ApexPages.Message(ApexPages.severity.ERROR,'Please check the Username: '+uname);
ApexPages.addMessage(errormsg);
}
}


allUsers = [select Id,Name,Username from User where Username IN: setUsers and isActive=true];

for (String username : setUsers)
{
for(User u : allUsers)
{
if(username ==u.Username)
{
mapUser.put(u.username,u.Id);
}
}
}

for(String uName : mapOpptyOwner.keySet())
{
mapOpptyOwnerId.put(mapOpptyOwner.get(uname),mapUser.get(uname));
}

allOppty = [select Id,OwnerId from Opportunity where Id IN: listOppty];

for(Id i : listOppty)
{
for(Opportunity op : allOppty)
{
if(i==op.Id)
{
op.OwnerId=mapOpptyOwnerId.get(i);
opptyToUpdate.add(op);
}
}
}

if(!opptytoupdate.isEmpty())
{
update opptytoupdate;
ApexPages.Message succmsg = new ApexPages.Message(ApexPages.severity.INFO,'Updated '+opptytoupdate.size()+' record(s) successfully.');
ApexPages.addMessage(succmsg);
}
}
catch (Exception e)
{
ApexPages.Message errormsg = new ApexPages.Message(ApexPages.severity.ERROR,'An error has occured. Please check the file uploaded or try again later');
ApexPages.addMessage(errormsg);
}
return null;
}

 

I am unable to figure out the issue here. Can some one please help?

 

Thanks...

Hi,

 

In case the email used for creating a user record gets decommissioned, is there any impact on authentication?

 

Example:

 A user record has email as example@domain.com

 

Now, if the 'domain.com' domain is decommissioned, how will it affect our authentication in Salesforce.com?

 

Thanks,

Euclid

  • February 21, 2013
  • Like
  • 0

Hi all,

 

I have some 5 record types on the case, Not able to see the stadard picklist field 'Status' on the record types.

Please give some solution, I need to edit the picklist value so that reassign the existing picklist value to the record types.

Hi,

 

I am very new to Salesforce.com development and wanted to know about data loading process in Salesforce.com. As far as I know, when it comes to mass data loading into one of the Salesforce.com objects, Apex Data Loader is the best tool to be used. Apart from that there is also sforce Connector plugin available for Excel users.

 

Now, I wanted to know if this can be done in any other way. I mean, not using Data Loader or sforce Connector , can we do a mass data upload into Salesforce.com?

 

Thanks in advance!

 

 

  • February 14, 2012
  • Like
  • 0

Can we rename the AccountName Standard Field label for Name of Account to any other value(Ex:MyName).

I am able to rename the custom object name as an edit link is placed before the object name field.

But i am not able to see any edit button or link before the account name.

 

Please let me know if it is possible. Your Help is appreciated.....

 

Thanks

shaan