Zum Hauptinhalt springen

Profile templates

Inside profile templates, you have the following varaibles available:

dd-export-profile-data.png

VariableTypeDescription
profilemapThe root element of the below's GraphQL query. You can e.g. access the profile title with profile.title
personmapA shortcut to the below's GraphQL query profile.person
optionsOptionsWrapperProvide access to any options passed during the creation of the export

profile

In addition to the loaded GraphQL data, profile has the following additinal attributes to access profile custom fields:

KeyTypeDescription
profile.field_rolemapCustom field Role
profile.field_experiencesmapCustom field Experiences
profile.field_compentenciesmapCustom field Competencies
profile.field_focusmapCustom field Focus

Each of the fields has the following structure:

KeyTypeDescription
$field.contentstring<html>Parsed markdown of content
$field.content_plainstringContent without parsed markdown
$field.is_from_default_profilebooltrue if this field is coming from a user's default profile
$field.titlestringTitle of custom field
$field.keystringKey of custom field
$field.input_typeenum('invalid','textarea','input','checkbox')Input type

options

During an export you can provide custom options. Those are available in the options object.

Check if checkbox has been checked

{if $options->is_private->enabled}
<em>redacted</em>
{else}
{$person.name}
{/if}

Check if text has been provided as custom option

External project ID: 
{if $options->external_id->not_empty}
{$options->external_id->value}
{else}
<em>external ID has not been set</em>
{/if}

GraphQL

The following GraphQL query is executed by default, to load a user's profile data:

query GetProfile(\$profile: ID!, \$participationSelector: PersonParticipationsOnlyParticipationsWhereConditions) {
profile(
guid: \$profile
) {
guid
title

person {
name
guid

language {
name
code
}

broker {
name
}

educations {
diploma {
name
}
establishment
profession
description
begin_at
end_at
}

language_proficiencies {
guid
type
language {
name
}
everyday_reading {
sequence
name
}
everyday_writing {
sequence
name
}
everyday_speaking {
sequence
name
}
professional_reading {
sequence
name
}
professional_writing {
sequence
name
}
professional_speaking {
sequence
name
}
}

about

participations(
onlyParticipations: \$participationSelector
) {
guid
begin_at
end_at
title
description
position {
guid
name
}
initiative {
guid
name
description
customer {
guid
name

branch {
guid
name
}
}

facts {
name
}
}
facts {
name
}
}
}
}
}

$participationSelector is an array with selected participations, e.g. when the profile only has subset of user's participations selected.