LP5 - Creating Mapping Rules in Roslyn
You can create or edit rules manually or you can upload them from the existing Label Templates. Writing rules requires C# (meaning C# syntax, commands, and so on). A guide that might help you is available here: C# Guide - .NET managed language
Available Variables
All SKU fields: Type sku. and select a property from the dropdown list.
All Order fields: type order. and select a property from the dropdown list.
For general or system variables, please use C#. For example: if you want to get a time in the current time zone, type: DateTime.now:
Uploading Existing Rules from Existing Templates
You may upload rules form existing Templates to speed up a process:
Pick Template field you want to edit;
Press Import rule from template button;
Pick source label from dropdown list;
Pick source field from dropdown list;
Press on the green Load button to load it to the target Label Template field;
Modify the rule if required;
Press Save button.
Important notes:
If you upload rules for active Label Templates, you may use only active Label Templates as a source.
You may upload a rule even from a template you are editing.