Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use <Method> in SPServices #79

Open
FarshadRanaei opened this issue May 21, 2019 · 5 comments
Open

use <Method> in SPServices #79

FarshadRanaei opened this issue May 21, 2019 · 5 comments

Comments

@FarshadRanaei
Copy link

I can't find any solution to write query like this in SPServices:
<View> <Method Name="<The name of the Read List method which we edited to add the Filter>"> <Filter Name="<The name of the Filter>" Value='{0}'/> </Method> <Query> <Where> <Eq> <FieldRef Name='<Name of the Filter Field>' /> <Value Type='Number'>{0}</Value> </Eq> </Where> </Query> </View>

@sympmarc
Copy link
Owner

sympmarc commented Jun 5, 2019

That doesn't look like valid CAML to the SOAP (asmx) services.

@FarshadRanaei
Copy link
Author

It's a valid caml.
I implemented in csom but i can't use it in SPServices.

@purtuga
Copy link
Collaborator

purtuga commented Jun 8, 2019 via email

@FarshadRanaei
Copy link
Author

Thanks Paul
I want to get query from external list with specific parameter and i use csom like this:
"<Method Name='GetItems'>"+ "<Filter Name='factorNumber' Value='"+Id+"'/>"+ "</Method>"+ "<Query>"+ "</Query>"+ "<ViewFields>"+ "<FieldRef Name='SendAmount'/>"+ "</ViewFields>"+ "</View>"
which "GetItems" is my conection and "factorNumber" is filter that i get query based on that.

@purtuga
Copy link
Collaborator

purtuga commented Jun 13, 2019

You need to build it as a SOAP request (XML) and I think the method that needs to be used is the GetListItems... Here are some links that might help you:

If you happen to respond back to this thread - Please include your JS code that shows your setup to the SPServices $().SPServices({ operation: "GetListItems", CAMLQuery: "???" ... }) method. Its important that we see how you are actually settting the call along with your query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants