You need to sign in to do that
Don't have an account?
sgorema
Scontrol Performance question
I have created an scontrol in javascript that clones an opportunity and closes out the current oppty. It clones about 35 fields on the oppty record as well as any line items and any contact roles.
The whole process is taking about 16 seconds to run. So I started taking out my queries (to get account name (for use in oppty name), line items and contact roles) one by one to see how much they were slowing things down. What I saw was that even with no queries it was taking 8 seconds and then each of the queries added about 3 seconds each.
I am wondering if this is normal response time? If I should paste my code here for people to see then let me know. I am new to javascript and so perhaps there is something that I could be doing differently. Any help would be great!
Also - Is there a way to display on the screen something like 'Creating Renewal Oppty. Please Wait....' while it is doing all of the processing?
thanks!
Thanks for your reply. I am not sure how I would use Retrieve. I am currently using the following query to get the account name:
var accntqr = sforceClient.Query("Select Name from Account Where Id = '{!Opportunity_Account_ID}'");
How could I use Retrieve here? I tried replacing Query with Retrieve and that did not work.