• Michael S
  • NEWBIE
  • 0 Points
  • Member since 2003

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 36
    Questions
  • 35
    Replies

This is a second problem that I'm having while attempting to create a new Opportunity.

I am populating the RecordTypeId property with the following line:

opp.RecordTypeId = SalesForceDataProvider.GetRecordType(order.Channel).Id;

...where the order.Channel will either be "Wholesale" or "Retail Sale". The code for GetRecordType is:

public static RecordType GetRecordType(string channel)
{
QueryResult qr =
null;
try
{
qr = salesForce.query(
string.Format("select Id from RecordType where (Name = '{0}')", channel));
}
...

The code is retrieving a valid id from the RecordType object. What's odd is that when order.Channel = "Retail Sale", I do not get this error. It only occurs when order.Channel = "WholeSale". Clearly, I'm pulling the right record because the value in the error message indicates a valid value was returned (0123000000004MgAAI). So, what could be the problem here???

Thanks,

-- Tom

I know this is a little out of sforce's scope, but i'm trying to improve code efficiency.

Is it possible to convert/cast the sObject's XmlElement array into an MSXML parser object or some similar construct so that the nodes are accessible via XPath strings?  I'm unsure of any other way of locating nodes in sObjects beyond looping through the names which is very messy.  I'm using C#.

thanks

aj

Are saved views and reports accessible through the api?

If not are there any plans for this in the future?

Thanks.

I want to derive a general purpose JavaScript script that uses for example the URL for /secur/frontdoor.jsp, but I don't want to assume that it will aways start with https://na1.salesforce.com.

Can I safely assume that all of the URLs available via scontrol merge fields (Scontrol_URL, API_Enterprise_Server_URL_25, API_Enterprise_Server_URL_30, Scontrol_JavaCodebase, and Scontrol_JavaArchive) will always start with the same base for any customer session? If not, which one will be the right one to use for this purpose?

My preference is to use Scontrol_URL, extract it's base URL, and then assume that this is good enough to build up URLs for /secur/frontdoor, /servlet/servlet.SoapApi, and also to redirect the user to an object page (such as by appending Opportunity_ID to the base URL).

Nick

using the 2.5 API, when I use my adminstrator account, I see the Partner object using the describe api.  Using a standard account, I do not see the Partner Object.  When I try to query in the Partner table using the standard account, I get an error:

select Id, AccountFromId, AccountToId, Role, IsPrimary from Partner where AccountFromId='00130000000sWB5AAM'
msxml4.dll error 0x80004005:
Salesforce.com 2.5
INVALID_TYPE: sObject type 'Partner' is not supported.

Message Edited by Michael S on 04-22-2004 02:11 PM

I have many features working using MS Soap 3.0, but having difficulty with update.

I have tried many different SOAP messages, but never get success.  I believe the issue is related to the <sObjects> portion.  I essentially send:

 

<update xmlns="urn:enterprise.soap.sforce.com">

 

I know a similar question like this has been posted, but I did not see a final answer.

We are trying to integrate SalesForce.com and a Lotus Notes Application.  The simplest way for us to do this appears to be SOAP using the MS Soap 3.0 client.  However, I am running into issues with the login.

1)  If I reference our enterprise WSDL file, I get errors

2) If I reference the WSDL on your servers, no errors importing the WSDL but I get 1 of 2 different errors:

                  a)  Error 1112 that the username or password is incorrect (thought it is)

                  b)  An error that says login must be Boolean.

I really need help on this.  New to the whole sForce API.

Mike Kinder

Message Edited by mjkstk on 03-12-2004 12:45 PM

Hi,

I'm expecting the answer to be "no", but is there any easy way to get all the Accounts in the hierarchy that an Account belongs to?  I'm trying to avoid doing the brute force approach of retrieving the Account and then making successive queries to retrieve other Accounts that are related to it up, down, and sideways in the tree -- This is quite inefficient.

 

 

Using sforce 2.5, I understand how to create instances of custom objects once they are defined, but is it possible to create the actual classes with their fields using the sforce 2.5 API?  I know that I can create custom classes and fields for those classes using the sforce UI, but it is definitely not scalable to require all users to do this.

I know that an individual user can manually upload a "document" to salesforce.com, but I really haven't found any automated options.

Options I'd like to consider are :

  • load an html document via a webservice
  • C# - Upload the document
  • Java - Upload the document

The salesforce.com help describe a "document" from the API standpoint, but that appears to be after it's been uploaded.

So in other words, I'm looking for example code for all 3 options.

Thanks,
Jason

 

Is it possible to set up Account Teams with the developer edition of SForce?

I don't see the option in my Customize...Accounts.

Michael S. Scherotter

Mindjet LLC

Hello. I have browsed through this board and have found that there is no support for displaying custom objects in readily-available reporting templates available through the sForce UI. My question is what is the preferred way of accomplishing so, if it is at all possible.

Abbas.

I am using version 2.5 of the SForce API. I was wondering what exactly does GetFieldsToNull API does. Can you provide more details on it.? Is it a way to get all the fields in a Object returned in QueryResult, without knowing the names of the fields.

Thanks

fruser