Parameters

Sources Context

available during Reindex

TODO

https://portrait.atlassian.net/wiki/x/gwlXPQ

Dynamic Variables

<key_of_entry_attribute>

For each loaded source Entry a variable is available.

 

Example

fieldProcessor: - field: highlight value: "{{eq CM_HIGHLIGHT '1' yes='#e2001a' no=''}}" - field: shape value: "{{eq CM_COMPANY_TYPE 'BH - Branch' yes='rounded' no='rectangular'}}"

User Context (FormSubmit, Actions)

Used here

 

Constants

PORTRAIT_USER_ID

unique user id

cNkXPLhKjXMFiFYvYvcGOdmHRrTOxesEfcWmoteLGUMyyqslLyEV

PORTRAIT_USER_NAME

name of the user

Linda Jackson

PORTRAIT_USER_EMAIL

email

linda.jackson@larsens.portraitapp.co

PORTRAIT_USER_ROLE

assigned role

ADMIN

 

 

 

User Custom Fields Custom Fields

<key_of_custom_field>

<value_of_custom_field>

The value set in the Managing users View.
Different for each user. The Value from the logged in user is used.

 

Dynamic Variables

 

<key_of_entry_attribute>

Each section holds different attributes. The values of these can be access

Example

label: 'In Stock' key: 'Amount' type: 'string' showInTableHeader: true showInDetailList: true hideIfEmpty: true

So 'Amount' an be used in a handlebar:

actions: - ... condition: '{{gt Amount 0}}'

 

Same goes for FormSubmit

example:

see

ELO | Example ELO post processing in Portrait

 

 

 

Â