• GrantM
  • NEWBIE
  • 5 Points
  • Member since 2005

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 29
    Questions
  • 41
    Replies
Hi,
 
I have an S-Control that is calling a description field into a textarea.
When this description field has a carriage return, it causes a Javascript error
 
S-Control Code:
Code:
output += "<input>{!Opportunity.Description}</input>";

 
Rendered as:
Code:
output += "<input>this is line 1
this is line 2</input>";

 What is the suggested way around this?
 
TIA
Hi
 
I am trying to retrieve the contact a logged in user is attached to.
When querying through the API Explorer, i can retrieve the details i require:
Select Id, ContactId From User WHERE Id = '[LOGGED_IN_ID]'
However, trying this in an s-Control returns a null queryResult
SearchString="Select Id, ContactId From User WHERE Id = {!$User.Id}";
var queryResult = sforceClient.Query(SearchString);
Removing ContactId out of that query fixes the issue.
 
How can i retrieve the ContactId attached to a user account that is currently logged in through an S-Control?
Hi,
 
I am trying to install the Apex Toolkit for eclipse.
I've been following the guidelines from:
I keep getting stuck at step 9:
9. In the following dialog, select the Apex Toolkit and then click “Select Required”
Here i am presented with the following error:
Apex Eclipse Toolkit (8.0.2002) requires plug-in "org.apache.axis"
I am working on Windows Vista Home Premium.
I am running Eclipse Version 3.2.2
I have installed the latest version of Java "Windows Platform - Java(TM) SE Development Kit 6 Update 1" from http://java.sun.com/javase/downloads/index.jsp
Hi
 
I am trying to create a person account but am receiving the following error:
bad field names on insert/update call: IsPersonAccount
What is causing this?
I am creating this just like any other object.
 
I am trying to follow your online api example:
But this doesn't seem to be to descriptive as to how to create a person object and states:
"For more information about person accounts, see the Salesforce online help"
Which i find quite strange cause i'm in the Salesforce online help and can't find any other articles reagarding this. (hyperlinking this kind nformation would also be very helpful)
 
Please supply some assistance.
Thank you very much
  • March 05, 2007
  • Like
  • 0
HI,
 
I am trying to create an OpporunityPartner object through the Salesforce api.
I am saving this object like i would any other (lead, account, contact).
 
However, when i try save this object i get the following error:
 
entity type cannot be inserted: Opportunity Partner
Why do i get this error?
And what does this mean?
 
Can i not save this OpporunityPartner Object?
Do i need to use the Partner Object?
 
Thanks for any help on this matter
  • February 05, 2007
  • Like
  • 0
Hi,
 
We have been using the emailauthor custom link to send mails from within saleforce.
 
This custom link looks like this:
This worked fine before the 07 release.
But now it does now populate the To: field anymore.
 
Please Help!
 
TIA
 
 
  • January 15, 2007
  • Like
  • 0
Hi
 
I have been asked if i can set the Lead's Campaign Lookup field through the API for lead assignment purposes.
Our sales team needs to route leads based on the campaign its attached to an would like to use the Leads Campaign lookup field.
 
Currently through the API I create a lead, and then create a campaign member to attach this lead to a Campaign.
 
I believe this bypasses our Assignment rules as these are called when the lead is created and at such time it does not belong to a Campaign.
Now when looking throught he API, i can use the Campaign lookup field to attach a lead to a Campaign as soon as the lead is created.
 
Is it possible to set the Lookup field through the API?
Or is this essentially doing the same thing i am throught he API?
 
TIA
Hi
 
Is it possible to send an email through the Api.
 
We are createing leads and attaching them to a Campaign.
We want to email an Email Template associated to the campaign
to the newly created lead from the Campaign Owner.
 
Is this possible, if so how?
 
Thanks in advance
 
Grant
  • April 04, 2006
  • Like
  • 0
Hi
 
I have an intranet site that uses domain authentication.
I have set all my self service portal users to the same password, and want to allow them to be auto logged in through the intranet.
 
Currently, this is done by redirecting the user to:
 
 
Now this works, but i hate passing in the password as clear text.
Is there another way around this?
 
I see the sforce Explorer passes an sid in the Url, i wanted to try this but am not sure how to retrieve a Self Service User session,
only a normal login session
 
Thanks In Advance

Message Edited by GrantM on 03-28-2006 01:55 AM

Message Edited by GrantM on 03-28-2006 02:05 AM

  • March 28, 2006
  • Like
  • 0
Hi
 
I am trying to create a selfservice user through the API.
I am having trouble with the restricted Pick Lists that are required.
 
If i don't specify these fields i get the error:
     Required fields are missing: [TimeZoneSidKey, LocaleSidKey, LanguageLocaleKey]
 
If i do specify them i get:
    TimeZoneSidKey: bad value for restricted picklist field: (GMT+00:00) Greenwich Mean Time (Europe/London)
 
That is a value i copied from the Drop Down options in the salesforce Front End.
 
How do i specify these fields values:
     TimeZoneSidKey,
     LocaleSidKey,
     LanguageLocaleKey
 
Thanks for any help in this matter
  • March 20, 2006
  • Like
  • 0
Is it possible to set a contacts password for a self service user through the API
 
I know you can reset the password through the front end,
but is it possible to set it to a value i create?
 
Thanks In Advance
  • March 14, 2006
  • Like
  • 0
Hi

1) Connection Advice

I want some advice on the best method to create a salesforce binding.
Both from a username and password, and from a given session.

I would also like to make a connection pool where by i have a set of sf bindings, and for each concurrent thread use one of these connections.

If i can be pointed to an article on this or given some sample code that would be great

2) Sandbox

Now that salesforce have released the sandbox, i would like to take advantage of this in my dev environment.
Now, the way i use the sandbox, is i download the WSDL from test.salesforce.com, and reference this in my project.
To make this live, i download the wsdl from www.salesforce.com and reference this in my project.

Ideally, i would like a setting in my web.config that specifies which instance we are using so i can swap much faster.
how can i achieve this?


Any help on these matters would be greatly appreciate

Regards

Grant Merwitz
  • February 09, 2006
  • Like
  • 1
hi

We have created a Workflow to email us when a lead is updated and meets a certain criteria.

This triggers fine when done through the Salesforce front-end, but not through the API.

Do workflows not trigger through the API, or is there something i need to specify like when using Assignment Rules

Regards and TIA

GrantM
  • December 13, 2005
  • Like
  • 0
Hi

I am currently pulling down a Users tasks using the API.
I would like to show the user details about what this task belongs to.

Now the Task contains a field called 'WhatId' which is the Id of that which the task is related to.
Now i would like to query information from that object with the 'WhatId' but i don't know which object to query.

Salesforce has a great machanism where the salesforce url followed by an Id will bring up any object type.
How is this done and can i do this through the Api?
From a given Id, determine which object this Id belongs to

Thanks and Kind Regards

GrantM
  • December 01, 2005
  • Like
  • 0

Hi

I am trying to update large amounts of data to salesforce.
Basicly, i pull down every account we have (26000 currently), reach some conclusion, and update all 26000 after.

Now, everything works fine untill i try update such a large quantity, then i get the Exception 'The operation has timed-out.'

To update this, i have created a method, where i pass an array of Salesforce objects.
I then break these down into sets of 200 and run the sforceservice.update on each batch.
Its this method which times out.
My Code looks something like this:

public static bool UpdateBatchLarge(sforce.sObject[] objecstosave)
{
 //Create a sforceservice
 sforce.SforceService sforceservice = new sforcecommon.security([MyUserName], [MyPassword]).SforceService;
   
 //break the array down into arrays of 200 (the limit)
 Utilities.ArraySplitter arrsplit = new utilities.ArraySplitter(objecstosave);
 sforce.sObject[] tempArray;
 bool SUCCESS = true;
 while((tempArray = arrsplit.GetsObjectRange(200)) != null && SUCCESS)
 {
  sforce.SaveResult[]  saveresult = sforceservice.update(tempArray);

  //Loop through the result set determining if all was successfull
  for(int i = 0; i < saveresult.Length; i++)
  {
   if(!saveresult[i].success)
    SUCCESS = false;
  }
 }

 //return the result
 return SUCCESS;
}

When i lower the amount of records i'm trying to update (say to half - 13000), this does work.
Its just when i try run this on all 26000 records that i have the time out.

Is there some way i can improve how i'm doing this, or a way to specify a longer time out.

I found an article on Microsoft.com that seemed to point me in the right direction:

http://support.microsoft.com/default.aspx?scid=kb;en-us;815209

Is this the problem, or can i change my code to fix this.

TIA

Grant Merwtz

Message Edited by GrantM on 09-30-2005 09:57 AM

Message Edited by GrantM on 09-30-2005 09:57 AM

  • September 30, 2005
  • Like
  • 0

Hi

I have a massive list of Account Id's for which i'm trying to retrieve there related Assets'

Now this list is too big to create a SOQL query string.

I thought of using the sforce.SforceService.retrieve feature, but this only takes a list of Id;s and cannot be passed a list of AccountId's (a different field from the Id field)

HOw would i do this type of query?

TIA

Grant Merwitz
Workshare Ltd.

  • September 26, 2005
  • Like
  • 0

Hi

I am trying to update 2000 Case objects in one batch.

Currently i am using the sforceservice.update(sObject[]) method to update these object.
As this is limited to 200 objects per update, i have to break down my array an update these 200 at a time.

This takes about 7 minutes to run.

Is there any better method i should be using, or is this the only way

TIA

GrantM

  • August 15, 2005
  • Like
  • 0

Hi

I am trying to retrieve a set of cases with about 5000 given Id;s

I posted last week (about 3 posts below this) and was advised to use the retrieve call.
But i seem to have reached the limit of Id's i can use.

A) What is this limit?
B) Is there a way to increase it? or will i have to do multiple calls?

Thanks in advance

  • August 08, 2005
  • Like
  • 0

Hi

I am trying to return a large set of Cases, for which i have an Array of over 5000 Id's

I tried creating an Ugly Query saying something like:

Select Id From Case WHERE Id = '1000000000xAAAAA' or Id = '1000000000xAAAAB' ... and so on for 5000 Id's

But i get the error:

Query cannot exceed 1000 characters.

Whats the best way of doing this?

TIA

  • August 05, 2005
  • Like
  • 0

Hi

I am currently trying to return a full table from SalesForce, and loop through this table to do some processing.
The table i pull down contains 5660 records.

I first pull the table down, the loop through it casting each record into its SForce Object do retrieve data.

However, after 1999 records, i get the error:

error: index '2000' out of bound for pointer/array

Why is this, and how can i get arround it?

TIA

 

Message Edited by GrantM on 08-04-2005 03:53 AM

  • August 04, 2005
  • Like
  • 0
Hi

1) Connection Advice

I want some advice on the best method to create a salesforce binding.
Both from a username and password, and from a given session.

I would also like to make a connection pool where by i have a set of sf bindings, and for each concurrent thread use one of these connections.

If i can be pointed to an article on this or given some sample code that would be great

2) Sandbox

Now that salesforce have released the sandbox, i would like to take advantage of this in my dev environment.
Now, the way i use the sandbox, is i download the WSDL from test.salesforce.com, and reference this in my project.
To make this live, i download the wsdl from www.salesforce.com and reference this in my project.

Ideally, i would like a setting in my web.config that specifies which instance we are using so i can swap much faster.
how can i achieve this?


Any help on these matters would be greatly appreciate

Regards

Grant Merwitz
  • February 09, 2006
  • Like
  • 1
Hi,
 
I have an S-Control that is calling a description field into a textarea.
When this description field has a carriage return, it causes a Javascript error
 
S-Control Code:
Code:
output += "<input>{!Opportunity.Description}</input>";

 
Rendered as:
Code:
output += "<input>this is line 1
this is line 2</input>";

 What is the suggested way around this?
 
TIA
Hi
 
I am trying to retrieve the contact a logged in user is attached to.
When querying through the API Explorer, i can retrieve the details i require:
Select Id, ContactId From User WHERE Id = '[LOGGED_IN_ID]'
However, trying this in an s-Control returns a null queryResult
SearchString="Select Id, ContactId From User WHERE Id = {!$User.Id}";
var queryResult = sforceClient.Query(SearchString);
Removing ContactId out of that query fixes the issue.
 
How can i retrieve the ContactId attached to a user account that is currently logged in through an S-Control?
Hi
 
I am trying to create a person account but am receiving the following error:
bad field names on insert/update call: IsPersonAccount
What is causing this?
I am creating this just like any other object.
 
I am trying to follow your online api example:
But this doesn't seem to be to descriptive as to how to create a person object and states:
"For more information about person accounts, see the Salesforce online help"
Which i find quite strange cause i'm in the Salesforce online help and can't find any other articles reagarding this. (hyperlinking this kind nformation would also be very helpful)
 
Please supply some assistance.
Thank you very much
  • March 05, 2007
  • Like
  • 0
HI,
 
I am trying to create an OpporunityPartner object through the Salesforce api.
I am saving this object like i would any other (lead, account, contact).
 
However, when i try save this object i get the following error:
 
entity type cannot be inserted: Opportunity Partner
Why do i get this error?
And what does this mean?
 
Can i not save this OpporunityPartner Object?
Do i need to use the Partner Object?
 
Thanks for any help on this matter
  • February 05, 2007
  • Like
  • 0
Hi,
 
We have been using the emailauthor custom link to send mails from within saleforce.
 
This custom link looks like this:
This worked fine before the 07 release.
But now it does now populate the To: field anymore.
 
Please Help!
 
TIA
 
 
  • January 15, 2007
  • Like
  • 0
Hi
 
I am trying to create a selfservice user through the API.
I am having trouble with the restricted Pick Lists that are required.
 
If i don't specify these fields i get the error:
     Required fields are missing: [TimeZoneSidKey, LocaleSidKey, LanguageLocaleKey]
 
If i do specify them i get:
    TimeZoneSidKey: bad value for restricted picklist field: (GMT+00:00) Greenwich Mean Time (Europe/London)
 
That is a value i copied from the Drop Down options in the salesforce Front End.
 
How do i specify these fields values:
     TimeZoneSidKey,
     LocaleSidKey,
     LanguageLocaleKey
 
Thanks for any help in this matter
  • March 20, 2006
  • Like
  • 0
Is it possible to set a contacts password for a self service user through the API
 
I know you can reset the password through the front end,
but is it possible to set it to a value i create?
 
Thanks In Advance
  • March 14, 2006
  • Like
  • 0
hi

We have created a Workflow to email us when a lead is updated and meets a certain criteria.

This triggers fine when done through the Salesforce front-end, but not through the API.

Do workflows not trigger through the API, or is there something i need to specify like when using Assignment Rules

Regards and TIA

GrantM
  • December 13, 2005
  • Like
  • 0
Hi

HOw to query the picklist values from API?
For example , Select Local_Name_for_xx__c from Contact gets all the records from contact rather than picklist field?

Also how can we add more items to this pick list through API?

Thanks in advance.
Hi

I am currently pulling down a Users tasks using the API.
I would like to show the user details about what this task belongs to.

Now the Task contains a field called 'WhatId' which is the Id of that which the task is related to.
Now i would like to query information from that object with the 'WhatId' but i don't know which object to query.

Salesforce has a great machanism where the salesforce url followed by an Id will bring up any object type.
How is this done and can i do this through the Api?
From a given Id, determine which object this Id belongs to

Thanks and Kind Regards

GrantM
  • December 01, 2005
  • Like
  • 0

Hi

I am trying to update large amounts of data to salesforce.
Basicly, i pull down every account we have (26000 currently), reach some conclusion, and update all 26000 after.

Now, everything works fine untill i try update such a large quantity, then i get the Exception 'The operation has timed-out.'

To update this, i have created a method, where i pass an array of Salesforce objects.
I then break these down into sets of 200 and run the sforceservice.update on each batch.
Its this method which times out.
My Code looks something like this:

public static bool UpdateBatchLarge(sforce.sObject[] objecstosave)
{
 //Create a sforceservice
 sforce.SforceService sforceservice = new sforcecommon.security([MyUserName], [MyPassword]).SforceService;
   
 //break the array down into arrays of 200 (the limit)
 Utilities.ArraySplitter arrsplit = new utilities.ArraySplitter(objecstosave);
 sforce.sObject[] tempArray;
 bool SUCCESS = true;
 while((tempArray = arrsplit.GetsObjectRange(200)) != null && SUCCESS)
 {
  sforce.SaveResult[]  saveresult = sforceservice.update(tempArray);

  //Loop through the result set determining if all was successfull
  for(int i = 0; i < saveresult.Length; i++)
  {
   if(!saveresult[i].success)
    SUCCESS = false;
  }
 }

 //return the result
 return SUCCESS;
}

When i lower the amount of records i'm trying to update (say to half - 13000), this does work.
Its just when i try run this on all 26000 records that i have the time out.

Is there some way i can improve how i'm doing this, or a way to specify a longer time out.

I found an article on Microsoft.com that seemed to point me in the right direction:

http://support.microsoft.com/default.aspx?scid=kb;en-us;815209

Is this the problem, or can i change my code to fix this.

TIA

Grant Merwtz

Message Edited by GrantM on 09-30-2005 09:57 AM

Message Edited by GrantM on 09-30-2005 09:57 AM

  • September 30, 2005
  • Like
  • 0

Hi

I have a massive list of Account Id's for which i'm trying to retrieve there related Assets'

Now this list is too big to create a SOQL query string.

I thought of using the sforce.SforceService.retrieve feature, but this only takes a list of Id;s and cannot be passed a list of AccountId's (a different field from the Id field)

HOw would i do this type of query?

TIA

Grant Merwitz
Workshare Ltd.

  • September 26, 2005
  • Like
  • 0

We are looking into upgrading SFDC integration from our application. Basically looking for autopopulating some data into sforce a/c  from our d/b on the fly.

For example if some one try to create a new lead from UI and enter company name, than some link or button can check if that company is existing in our d/b and it pouplate other information automatically.

 

Is it possible to use scontrol object for this kind of feature or what is the easiest solution to integrate this feature.

 

Thanks,

nupur

  • August 16, 2005
  • Like
  • 0