Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

os:execute Element

Describes a service that acts on selected text or document element.


    accept-charset = "sCharset"
    action = "sAction"
    enctype = "sEnclosureType"
    method = "sMethod">
<!-- child elements -->


Optional. Any valid character set name. If not specified, the following is assumed:
utf-8Default. 8-bit Unicode Transformation Format (UTF-8).
Required. A URL template that specifies the target of this request. The template can contain replaced variables.
Optional. A content type for form data.
application/x-www-form-urlencodedDefault. Name/value pairs, with specific rules for encoding non-ASCII and reserved characters.
multipart/form-dataSubmission is multipart MIME, suitable for binary data. Only valid with POST request.
Optional. The HTTP request method to use. Case-insensitive.
GETDefault. Sends data as URL parameters. Appends os:parameter elements to the URL template.
POSTSend data as name/value pairs in the body of the request.

Element Information

Parent elements os:activityAction
Child elements
May occur one or more times os:parameter
Minimum availability Internet Explorer 8
Minimum operating systems Windows XP SP2


When using the GET method to send data, the amount of data is limited to 2048 bytes.

This element is required.


The following os:execute element describes the service ineteraction using URL parameters and replaced variables. See os:parameter for a complete list of variables.

<os:execute method="get"
  action="http://example.com/submit.aspx?url={documentUrl}&title={documentTitle?}" />  

See Also

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.