Web Request

⌘K

The Web Request activity enables SharePoint to interact with external systems by making web requests to specified Uniform Resource Identifiers (URIs). This activity supports various HTTP methods and can operate under specified user credentials.

web_request_1
web_request_2
SharePoint Workflow Designer Phrase

“Send Web Request to [this URL] using [HTTP method] with [these headers] and [this request] in [Text/SharePoint File]mode. Use [this user] and [this password] credentials. Store response in [response] and HTTP status in [http_status].”

Parameters

ParameterDescription
this urlThe web URL to which the request is sent. For example: http://mysite/default.aspx
HTTP MethodThe HTTP method to use for the request, such as GETPOST, or PUT. For more information, refer to RFC 2616 Section 9.
these headersHTTP headers to include in the request. For details, see RFC 2616 Section 14.
this requestDepending on the Request mode:
Text: The HTTP request message text. Refer to RFC 2616 Section 4.3.
SharePoint File: The URL, web URL, or local disk path of a SharePoint file. The activity sends the file content as the HTTP request. Examples:
SharePoint File URL: http://mysharepoint/MyDocs/Shared%20Documents/MSOMS.pdf
Local Disk Path: C:\publicfolder\report.pdf
External Server URL: http://externalserver/report.pdf
Note: Use the “Get list item URL” activity to resolve the current file URL.
Request modeSpecifies how the request data is provided:
Text: Uses the request from the this request variable.
SharePoint File: Reads the SharePoint file URL from the this request variable and sends the file as request data.
responseStores the HTTP response body. See RFC 2616 Section 6.
http statusAn integer representing the HTTP status code returned. The default value is 200 (OK). For a list of valid status codes, see HTTP Status Codes.

Note: This activity facilitates communication between SharePoint and external systems, enabling integration and data exchange.

How can we help?