SoftadminSnippet.PathPattern

 Show all Hide all

Returns a path defined for a site in Softadmin®. If the path has parameters, use SoftadminSnippet.SetPathParameter to set values for each parameter to get a usable URL.

Example

DECLARE @Path nvarchar(MAX) = SoftadminSnippet.PathPattern('mysite', 'DepartmentOverview');
SELECT @Path = SoftadminSnippet.SetPathParameter(@Path, 'department', 'Finance');

EXEC SoftadminSnippet.Page_Redirect
	@Url = @Path;

See also

Type: Scalar function
Area of use: API

Parameters:

@SiteName mandatory varchar
@PatternName mandatory varchar