salesforce

Changing Probabilty Values if Stahe Name changes

I hve created the custom Opportunity page. How can i bind Probability with Stage Name. I have used Ajax but it is not working ...

SQL Query in Informatica Cloud

I am trying to integrate a MySQL database with Salesforce but am having trouble with part of the query logic. I enter this query: SELECT occupation_name FROM skillsmatch_skillsprofile GROUP BY time_updated ORDER BY time_updated DESC LIMIT 0,5 But get this error: <> missing operator... SELECT>>>> <<< Any idea where I might be going w...

.NET MVC and SalesForce drop down list issue

I built a form in sales force and added it to my site. The whole goal of this is that the form on my site submits to sales force. I want to add server-side validation to my form like I have on other forms on my site. Sales force uses a weird name for drop down lists that often starts with a number. In my case, the drop down list inp...

Salesforce SoftPhone - Relate Call to Records in Two Different Objects

Hello, I am trying to relate phone calls to multiple records in Salesforce. The records are in two different custom objects, but you can think of the records like a Lead or an Opportunity. Our salespeople call multiple people (Leads) for given Opportunities, and I'd like to capture both pieces of information. Is this possible in Sale...

Salesforce.com Visualforce Google Maps

Hi, I need some help and I think this post would help me but I am very new to Google maps and Visualforce. answered by eyescream see post http://stackoverflow.com/questions/3122038/how-do-i-integrate-salesforce-with-google-maps. My problem is very similar but I don't need to search for the records to plot they are available as a relate...

Is there a way automatically deal with xxxSpecified when setting values in web service?

(I assume anyone out there using SalesForce web services from c# has also seen this. If there's a way around this - obviously I'd rather know that.) Whenever I set, say, the value of a field on a wsdl.exe generated web service like this: campaignStat.Clicks__c = ToDouble(Stat.clicks); campaignStat.Clicks__cSpecified = true; Can anyo...

Security context in a trigger

I'll start of by saying that I'm a .net guy having to play in a salesforce.com world right now. My question is this; Within the context of an pre-update/insert trigger can I set the value of a field that the user (the user that is updating the object when the trigger fires) does NOT have on their page layout? ...

multiselect picklist having garbage value __

Hi, i have multipicklist field in my object (Dependent in dependent picklist) with default value None. it's showing some garbage value __ in detail page. ...

Flex SFDC integration

Dear friends, I have downloaded 'Adobe Flash builder for Force.com' from Salesforce site and trying to get some hands on. If any one has tried it before request you to please share your experience. Rt now I am referring to Salesforce documentations available at 'http://developer.force.com/flashbuilder' which is pretty good. But, if ther...

Jquery form validation problem: Salesforce field id starts with digit

I have been supplied a form by Salesforce.com for which I need to do client side validation. I am using the Jquery validation plug-in. The form contains a dropdown list which like this: <select id="00N2000002pPvP" name="00N2000002pPvP" title="Region"> I have been informed by Salesforce that they cannot change it. My problem is that...

Salesforce.com - Visualforce and ActiveX

Hi, I have a Visualforce page through which I am trying to access a SDK. It is done using ActiveX control. The VB + JS script that I have runs fine when it is a normal HTML page residing on my desktop. However the same code when incorporated in Visualforce does not work. Does running ActiveX control require uploading any kind of files t...

Salesforce (VisualForce): How to test for no records returned in 'apex:repeat' statement?

I am trying to figure out how to test fields (included within a apex:repeat) to see if they are blank, or null, and if so display some alternate text (Ex: No records to display) in the table instead of a blank table. Existing code snippet below: <apex:repeat var="auditList" value="{!relatedTo.Site_Audit__r}"> <tr> <td> <apex...

How to add a new lead and update an existing lead in Salesforce

I am new to Apex development and I'm starting to work on my project in Apex. I would like to do following: using an email service //I figured this part get emailAddress from an email //know how to do this if there is already exisiting lead or contact with the same emailAddress update his information else create new lead I would...

AJAX toolkit -- problem with webservice execute

I'm having a hard time understanding what is going on here. I am trying to code up some onClick javascript for a button on a Force.com list view for a custom object. Here's the JS. {!REQUIRESCRIPT("/soap/ajax/15.0/apex.js")} {!REQUIRESCRIPT("/soap/ajax/15.0/connection.js")} var myURL = sforce.apex.execute("MyWebServices", "myUrl", {})...

Invalid foreign key relationship when I try to add a new custom object to an exsting lead

Hi there, I have a Lead and a custom object called Social Account (API Name = Social_Account__c). I have set a relationship as follows: Lead is a parent of Social Accounts. so a lead has many social accounts. In the Social Account, I made a custom field named Lead (Data Type: Lookup) to make the relationship. and here is a lookup deta...

a spring bean to wrap salesforce web service calls

I am trying to figure out how to create a stateless spring bean that wraps a group of calls to salesforce web service API. My understanding is that the process for calling salesforce is something like this: Call the login service to Log into salesforce Make a series of service calls Call the logout To have a stateless wrapper it see...

CANNOT_UPDATE_CONVERTED_LEAD, cannot reference converted lead: [Lead__c]

Hi there, I am getting an error message when I try to instert a custom object into an exisiting lead object. List<Lead> leads =[select Id from Lead where Email =:lead.Email ]; if(leads.size()>0) { Lead existing_lead = new Lead(Id = leads[0].id); social_account.Lead__c = existing_lead.Id; //social_account is a custom object that ...

Adobe Air Salesforce get details using id field

Hi I am having a problem using Adobe Air to get contact information. If I import the contacts from Saleforce all I get is the Id of the Account to which they belong. How do I convert this Id to the Account Name. There are similar problems with other objects like Cases, Opportunities, etc where key fields like Owner, Account, etc just...

Visualforce load apex components via ajax on page load

Hi, Can someone tell me how to use ajax to load an apex pageBlockTable via ajax on page load? I've seen examples showing how to use an apex actionFunction, but the samples are usually simple (e.g. - returning a string from the controller and putting it on the page. My controller returns a list of sObjects and i'm just not quite sure ho...

field.up("fieldset") not picking up text area

Hi All, i have a validation problem, where my code is refusing to pick up a textarea. Error on var "fieldset = field.up("fieldset");" line: this.showErrorMessageForMissingFields = function (missingFields) { var missingFieldPlaceHolder = $("missing-fields"); var listOfFields = ""; var fieldsets = {}; for (var i = 0; i...