• David Gorsline
  • NEWBIE
  • 5 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 12
    Replies
Code:
<link href="https://na1.salesforce.com/dCSS/Theme2/default/common.css" type="text/css" media="handheld,print,projection,screen,tty,tv" rel="stylesheet" />

 
We're using Salesforce.com's style sheets in the setup pages for our composite app, so that the UI look and feel is maintained.  (Our setup pages are served from our own server, within the S/F-provided frame.)  Is there a recommended way to write a URL for a sheet that eliminates the dependency on a particular S/F server and on a particular skin (S/F vs. S/F Classic)?  In other words, what's a better way of writing the <link> tag than the above?
 
 
I'm building a composite application (Salesforce.com custom objects, reports, and dashboards; along with our own web services, Windows services, and web pages) with three other team members (two developers, one QA guy, one project manager).

At the moment, the master copy of our Salesforce.com custom objects resides in the developer account of a specifically designated team member. When we do a beta release, we publish to AppExchange from that designated account, then download to the other accounts. We use Perforce to store all of our .NET source code.

What strategies do other developers use to accomplish the following:

-- to capture the Salesforce.com customizations in a configuration management/source code control tool like Perforce, Visual SourceSafe, or Rational ClearCase?

-- to avoid designating a particular Salesforce.com account as the master? If any one of us four finds a misspelling or report formatting error, it would be convenient to check out the customizations and make the correction directly.
Hi All,

I want to fetch all the field of Lead object without specified column name like

e.g.
Lead l = select name, city from lead where id=xxxxxxxxxx; [ not want ]

I want some thing like

Lead I = select * from lead where id =xxxxxxxxxxxxxxxxxx

Please help me .

Thanks in advance
Deepak Pansari
Hi,
 
Is there a way to capture the windows login "username" into salesforce.com when user logs in to salesforce?
 
Any feedback is greatly appreciated.
 
Regards
Rasu
I have recently taken over administration of Salesforce from another user and am still quite new to the system.  We have created a few custom tabs which are simply a redirection to another web site and I have been able to figure out how to add new tabs pointing to other web sites.
 
Our Marketing Manager has now requested that a new tab be displayed which will only be visible if certain users (branch managers) log into the system.  Is there a way to set security on a tab so that only specific users can access it??
 
Assistance is appreciated...
I need to know what Timezone all of my Contacts are in for when my reps call them.  Is there any code that can take the area code from the phone number or the zipcode from the address and then process it and push back what Timezone the Contact is onto the page in a field I create?
  • January 08, 2008
  • Like
  • 1
Hi,

We have recently developed an integration for our online application with the Salesforce.com. The application requires user's Salesforce.com username and password for the integration. However, recently Salesforce has introduced Security Token which is absolutely not user friandly especially for new users who register for a free trial with our tool.

So the question is, is it possible to get the IP addresses of the servers where our application runs whitelisted to the Salesforce.com, so when the new users want to try out our integration with Salesforce they won't need to go through the annoying procedure of obtaining a security token? Is there a some sort of a partner program that allows doing that?

Any help would be greatly appreciated.
Does this error mean that the ip address is not whitelisted ? 
 
Thanks,
 
Bill
forceAmp.com
Hi,

Im new to SalesForce.com, so please need ur advice:

Im trying to create a Event in SalesForce.com passing dates thru API.

1. For Instance Im passing 04 December 2007 5PM
2. Then its creating event as: 04 December 2007 11:30AM

So means exactly 5:30 hours behind. (India is 5:30 hours behind the GMT )

Now if I check the organization Timezone its GMT-8:00 (Pacific Standard Time)

So what I want is : When I pass this "04 December 2007 5PM " then Event should be created for this time "04 December 2007 5PM "

Can anyone please advice.

Regards


Is there any way to define a custom global variable (or re-purpose an existing global variable)?  The issue we have is that we have a large number of reports (c. 40) that refer to a certain date.  That date needs to be changed each week after we have done some manual data loading using data loader.  Our current process is that one of our users manually goes into each report, changes the date and saves the report.  This is a time consuming process and error prone.
 
A better solution would be to have a global variable defined that is referenced by the reports and then each week they simply need to change the value of that global variable.
 
Has anyone come across this sort of requirement before or have any ideas how this could be achived?  The date is actually referenced in both the filter criteria and the timerame criteria of the reports.  However, even if the solution fixed one of those that would be very helpful.
 
I look forward to any advice you can offer.
 
Thanks!
Gordon.
Hello,

We enable single sign-on to our application using C# which follows the example given in this tech note.

It's been working great for most of our clients, however with one client we always get an INVALID_SESSION_ID error.

I've noticed that this customer is on https://ssl.salesforce.com, whereas most of our other customers are on the NA servers (https://na2.salesforce.com, https://na3.salesforce.com).

We are setting the "server" argument in our code (just like in the tech note), and I've verified that the "server" argument passed to the  login page does match the client's server (ssl.salesforce.com)

Could this be the reason?  Has anyone else had this problem?  Is this a known issue?

Given that the code works for so many of our clients, and it's a copy of Salesforce's own tech note, I'm not sure what to do to troubleshoot.

  • October 24, 2007
  • Like
  • 0
Hi,
Can anyone please tell me what is wrong with the piece of code?  I am trying to pull assets that have been updated since yesterday...
 

DateTime endTime = sfdc.getServerTimestamp().timestamp;

DateTime startTime = endTime.Subtract(new System.TimeSpan(1, 0, 0, 0, 0));

sforce.QueryResult qr = sfdc.query("Select Id from Asset Where SystemModstamp > " + startTime);

The error is:

System.Web.Services.Protocols.SoapException was unhandled
  Message="MALFORMED_QUERY: \nAsset Where SystemModstamp > 11/27/2006 8:59:45 PM\n                            

   ^\nERROR at Row:1:Column:47\nunexpected char: '/'"

Code:
while (stopLooping == false) { 

for (var i=0;i<_qrCases.records.length;i++) { 
var row; 
docContents += "<tr class=\"letraGris\">"; 



case = _qrCases.records[i];
var contactname=case.get("ContactId");
var idcase = case.get("Id");

docContents += "<td align='left'><a href = '/"+idcase+"' target=_parent> "+ case.get("Type")+"</a></td>";

docContents += "<td bgcolor=\"#F3F3EC\" width=1 nowrap><img src=\"https://na1.salesforce.com/s.gif\"></td>";

docContents += "<td align='left'><a href = '/"+idcase+"' target=_parent> "+ case.get("CaseNumber")+"</a></td>";

docContents += "<td bgcolor=\"#F3F3EC\" width=1 nowrap><img src=\"https://na1.salesforce.com/s.gif\"></td>";

//The next it's slow

if(contactname !=''){
var contactquery = sforceClient.Query("Select FirstName, LastName from Contact where Id='"+contactname+"'");
docContents += "<td align='left'><a href = '/"+contactname+"' target=_parent>"+contactquery.records[0].get("FirstName")+" "+contactquery.records[0].get("LastName")+"</a></td>";
docContents += "<td bgcolor=\"#F3F3EC\" width=1 nowrap><img src=\"https://na1.salesforce.com/s.gif\"></td>";}
else{
docContents += "<td align='left'></td>";
docContents += "<td bgcolor=\"#F3F3EC\" width=1 nowrap><img src=\"https://na1.salesforce.com/s.gif\"></td>";}

//***************

docContents += "<td align='left'><a href = '/"+idcase+"' target=_parent> "+case.get("Status")+"</a></td>";

docContents += "<td bgcolor=\"#F3F3EC\" width=1 nowrap><img src=\"https://na1.salesforce.com/s.gif\"></td>";

docContents += "<td align='left'><a href = '/"+idcase+"' target=_parent> "+case.get("LastModifiedById")+"</a></td>";

docContents += "<td bgcolor=\"#F3F3EC\" width=1 nowrap><img src=\"https://na1.salesforce.com/s.gif\"></td>";

docContents += "</tr>"; 
docContents += "<tr height='5'><td>&nbsp;</td></tr>";
_cases[case.get("Id")] = case; 
} //for

if (_qrCases.done == true) { 
stopLooping = true; 
} else { 
_qrCases = sforceClient.QueryMore(_qrCases.queryLocator); 
}
 
hello!
 
I have a problem because the previous code it's more slow, Somebody Knows how I can optimize the code?
 
Thanks!!
 
 
Code:
<link href="https://na1.salesforce.com/dCSS/Theme2/default/common.css" type="text/css" media="handheld,print,projection,screen,tty,tv" rel="stylesheet" />

 
We're using Salesforce.com's style sheets in the setup pages for our composite app, so that the UI look and feel is maintained.  (Our setup pages are served from our own server, within the S/F-provided frame.)  Is there a recommended way to write a URL for a sheet that eliminates the dependency on a particular S/F server and on a particular skin (S/F vs. S/F Classic)?  In other words, what's a better way of writing the <link> tag than the above?