You need to sign in to do that
Don't have an account?
Joel
VBscript
Can VBscript be used to pull data from a user's salesforce.com account? Or do you have to use Java or C#? If so, is there a place where I can find some sample VBscript code for logging into salesforce.com with a username and password, and then pulling in contact information, for example.
Thanks much!
Thanks much!
Bill
..thanks. I'll give it a try.
Joel
UserName2 and PassWord2 are constants (for use in testing), but the normal usage would be to call this
from a web link, using the session id's passed to the scontrol.
The following gets an opportunity and it's related account. The input value (opportunity id) is provided by a merge field in the call of the scontrol, or as a constant for testing.
Notes:
... use of "For each" loops to get the values out of the result.
... ids for the retrieve must be put into an array before calling.
... use of "*" in the retrieve for the list of fields -- something not supported in the API itself,
but supported in the toolkit interface.
The result of this code are values in "opp" and "acct" for use later
... as is shown here by the use of opp.item("AccountId") ...
Here is an example of updating two fields in an opportunity:
Code:
And finally, here is an example of inserting a new task:
Code:
Updated to simplify several examples
Message Edited by Scot on 11-22-2005 10:17 AM