XSLT Function ActiveProfileId

Returns an ID of a currently logged-in user.

NAMESPACE

xmlns:AS="http://schema.advantages.cz/AsapFunctions"

SYNTAX

string ActiveProfileId()

REMARKS

The returned id is an Id field value from the BusinessPartner entity assigned to the current user.

EXAMPLE

This example provides a name of the currently logged-in user.
Stylesheet

<?xml version="1.0" encoding="UTF-8"?> 
<xsl:stylesheet 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" 
    xmlns:AS="http://schema.advantages.cz/AsapFunctions"
    xmlns:date="http://exslt.org/dates-and-times" 
    exclude-result-prefixes="AS date"> 
    <xsl:template match="/"> 
        <test test="{AS:LookupValue('08d82ef5-df38-48d6-a276-ee5b7f027bd6', AS:ActiveProfileId())}"/> 
    </xsl:template> 
</xsl:stylesheet>