Skip to content

StoredProcedures / Web API Actions in Sql4CDS #349

Answered by MarkMpn
PRusakPL asked this question in Q&A
Discussion options

You must be logged in to vote

The code to retrieve the list of actions is at

public MessageCache(IOrganizationService org, IAttributeMetadataCache metadata)

It will retrieve all the available actions, but not all are made available to invoke as stored procedures or table valued functions.

In order to be executable as a table valued function, a message must have:

  1. request fields only of scalar values (except for a single PagingInfo parameter if the output is an entity collection)
  2. response fields that are EITHER:
    a. A single field of an entity-derived type, OR
    b. A single field of an entity collection, OR
    c. one or more fields of a scala…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PRusakPL
Comment options

Answer selected by PRusakPL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants