Click here to Skip to main content
12,822,995 members (50,034 online)
Click here to Skip to main content
Add your own
alternative version


2 bookmarked
Posted 21 Aug 2013

Passing parameters to Success method in executeQueryAsync in SharePoint

, 21 Aug 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
Passing Parameters to Success method in executeQueryAsync.


This is quick tip about how to pass parameters and retrieve values from the Success method in executeQueryAsync().

To pass a parameter in Success method use the following syntax:

Before passing parameters:

 Function.createDelegate(this, this.failed));

After passing parameters:

Function.createDelegate(this, this.failed));
function success(_parameter)
    alert(“In Success Method! ” + _parameter);

To retrieve values from Success method use the following syntax:

Function.createDelegate(this, function(){ _returnParam = success(_parameter);}),
Function.createDelegate (this, this.failed));


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Technical Lead Softedge Systems LTD
Ireland Ireland
 Experienced software professional with 7 years+ on Microsoft Technology.
 Knowledge of SDLC (System Development Life Cycle).
 Technical Team Member experience leading application development on both short and long term projects.
 Good team player with excellent work history as regards with work ethics, dependability and willingness to go an extra mile.
 Good knowledge of IIS Hosting and Domain management.
 Extensive knowledge of ASP.Net, C#.Net, VB.Net, SQL Server, SharePoint development using SharePoint Web Services and SharePoint administration, Business Intelligence & KPIs (Configuration and Creation) Web Parts, Data View Webparts, Integration of External Sources content types, Site Definition, Site templates, Workflow development, customizing and branding a SharePoint portal sites and branding.

You may also be interested in...


Comments and Discussions

QuestionPassing Parameters to Success method in executeQueryAsync SharePoint - Original Pin
Isha Attlee28-Aug-13 16:14
memberIsha Attlee28-Aug-13 16:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170308.1 | Last Updated 21 Aug 2013
Article Copyright 2013 by shahed.sohail
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid