FormDataBuilder

Constructs a Form Data (Body) String from various parameters

  • Stored Procedure
  • SQL Server Compatibility: 2008, 2012, 2014, 2016, 2017

Syntax:

EXEC SQLHTTP.net.FormDataBuilder @FormData, @Profile, @FormDataSegment1_Name, @FormDataSegment1_Value, [@FormDataSegment2_Name], [@FormDataSegment2_Value] … @FormDataSegment20_Name], [@FormDataSegment20_Value]

Arguments:

Name Type Description
@FormData nvarchar(MAX) Required. Output parameter. The FormData (Body) constructed by executing this stored procedure
@Profile nvarchar(100) Required. The Profile under which Authorization Parameters were saved
@FormDataSegment1_Name nvarchar(MAX) Required. First FormData (Body) parameter name to be appended to @FormData
@FormDataSegment1_Value nvarchar(MAX)

Required. First FormData (Body) parameter value to be appended to @FormData. A value beginning with # will be retrieved as an AuthParam of the provided Profile. See example below.

@FormDataSegment2_Name nvarchar(MAX) Optional. Second FormData (Body) parameter name to be appended to @QueryString
@FormDataSegment2_Value nvarchar(MAX)

Optional. Second FormData (Body) parameter value to be appended to @QueryString. A value beginning with # will be retrieved as an AuthParam of the provided Profile. See example below

.
.
.
@FormDataSegment20_Name nvarchar(MAX) Optional. Twentieth FormData (Body) parameter name to be appended to @FormData
@FormDataSegment20_Value nvarchar(MAX)

Optional. Twentieth FormData (Body) parameter value to be appended to @FormData. A value beginning with # will be retrieved as an AuthParam of the provided Profile. See example below.

Sample Usage:

See Also: