Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is it possible to get the inserted item id after executeQueryAsync? Or do I have to send a second query to get the item id?

share|improve this question
add comment

3 Answers

up vote 0 down vote accepted

You will have to fire a second query.

share|improve this answer
    
That's really ridiculous. So I have to put a unique value while saving the item because I have to find the exact item I saved. –  Élodie Petit Aug 29 '11 at 0:03
add comment

Turns out there might be a way. See this post on the MSDN forums:

http://social.technet.microsoft.com/Forums/en-US/sharepoint2010programming/thread/d9c68caa-ddfd-4a68-a32f-d6154546f42e

It is using the Silverlight Client Object Model but there should be something similar in the ECMA Script too.

share|improve this answer
add comment

Hi Elodie have you see this post Use SPServices.SPRedirectWithID in a custom new form Maybe it can give you an idea Cheers

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.