Locked oData service operations with parameters

All Replies

  • Tuesday, November 13, 2012 6:41 PM
     
     Answered

    LightSwitch does expose queries defined on the server.  They will show in the form [baseUrl]/[datasourceName].svc/[queryName]()?[parameterName]=[parameterValue].  So for a query named Query1 that takes a string parameter named FirstName the url would be something like http://myserver/myLSApp/ApplicationData.svc/Query1()?FirstName='Elizabeth' on a published application.  When F5'ing the url would be something like 'http://localhost:12345/ApplicationData.svc/Query1()?FirstName='Elizabeth'.

    Hope that helps,

    Elizabeth Maher


    This posting is provided "AS IS" with no warranties, and confers no rights.