How to use object in same request

Dec 22, 2011 at 1:02 PM


I am submitting a batch request using Odata API of data.js . I want to use a object created in same request. scenario as follows

I want to create a usergroup  which have two child object

1) Users associated with user group

2) Permissions associated with user group

But want to save with bath request. and request uri will be UserGroups , UserGroup(1)/Users ,UsesrGroup(1)/Permissions. Here "1" is the ID of usergroup created with first request uri in same batch request

Can any one help me  that how i use response of first request uri in request of second request uri


Jan 4, 2012 at 6:56 PM

Hi Anilgautam, 

   Hope you are doing great.  Look at our the this snippet for an example of how can you cross reference entities in a batch request.


Alex Trigo.