The setdatafield Action, when triggered, changes the value of a
Data Field. If a second
Action is configured to be triggered by the setting of that exact value in the exact
Data Field, the second
Action will be run automatically. Be warned that this can cause loops or other undesirable behavior.
The New Setting page will provide you with a
Data Field pop-up list of
Fields that already exist on your system. The Arguments you supply after you select a
Field vary according to the
Field Type, for example, a boolean
Field requires different information than an integer
Field requires.
Each Field Type offers an
Ignore Template Restrictions check box. If the
Action is to change a
Data Field, that
Field should, in most cases, be one that is accessible to the user that triggers the
Action. In other words, the
Data Field should be in the user’s
Permission Set and the user should be allowed to modify it. Normally, if that
Field were off limits, you would not want the user to modify it
.
Consider, for example: If an AFP user triggers something by adding a file to a folder when a new file event trigger has been set up, and if the
Action setdatafield has been established, the AFP user must also be a Xinet user who has permission to modify the particular metadata
Field before you want anything to happen—normal and sensible behavior.
There are, however, some cases where one might want to override this restriction. Ignore Template Restrictions exists for these few cases. Consider, for example, that you might have established a folder where print jobs arrive. After they arrive, you want to use a trigger based on a new file appearing in the folder. This trigger will rely on a
setdatafield Action. However, in this case, the owner of printed jobs will always be
lp, never a registered Xinet user. Engaging
Ignore Template Restrictions can eliminate permission-checking for the user triggering the event and allow things to move forward.
Value and
Set Value arguments allow you to establish how the
Data Field in question will be changed. The options, which vary according to the
Field Type