Share via


XML Snippet: Add an Action to an External Content Type in a BDC Model

Applies to: SharePoint Server 2010

The following example shows the definition of an action in a BDC model.

The <Action> element should be placed inside an <Entity> element, after the <Method> definitions and before the </Entity> closing tag.

Replace the Name attribute value of the ActionParameter ("ParameterName") with the name for the parameter you want to pass to the Action. This name is defined in the Entity.

Example

<Actions>
  <Action Position="1" IsOpenedInNewWindow="true" Name="Search" DefaultDisplayName="Search on Bing"
                  Url="https://www.bing.com/search?q={0}"
                  ImageUrl="https://www.bing.com/s/wlflag.ico" >
    <ActionParameters>
      <ActionParameter Index="0" Name="ParameterName">       
      </ActionParameter>
    </ActionParameters>
  </Action>
</Actions>