# Package assign macro

1. **Add configuration for the macro. Go to to apps - macro configuration and select PackAndTrackMacro**

<figure><img src="https://3337891057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsfwLIR73Rau3ZcUoBKz3%2Fuploads%2FtcENsBsfDIXamrQeXabn%2Fimage.png?alt=media&#x26;token=196d24dd-0284-437b-b966-0a4c81ac3d5f" alt=""><figcaption></figcaption></figure>

2. **In parameters you have a checkbox to define whether each item should have a separate package or they need to be grouped. Save the configuration.**

<figure><img src="https://3337891057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsfwLIR73Rau3ZcUoBKz3%2Fuploads%2FBcoLFMS3vVfUO6wVwbTS%2Fimage.png?alt=media&#x26;token=adb8eb62-9ca6-49f4-9b9c-53b60a409c85" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If ticking the box - all items will be packed into separate packages\
If leaving it empty - the items will be packed using as less packages as possible
{% endhint %}

3. **After the configuration is saved, enable it**

<figure><img src="https://3337891057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsfwLIR73Rau3ZcUoBKz3%2Fuploads%2FAu9a26FIlvn5vX5xHCF0%2Fimage.png?alt=media&#x26;token=8cd662ba-7e0d-41c3-8d66-2706fa39fbb4" alt=""><figcaption></figcaption></figure>

4. **Go to orders - rules engine and create a new rule for triggering a macro**

<figure><img src="https://3337891057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsfwLIR73Rau3ZcUoBKz3%2Fuploads%2F3SvtqCVKKCJbwsEH5Nxc%2Fimage.png?alt=media&#x26;token=e56cc6bd-1b6a-4e87-882b-8a2bbe04c274" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3337891057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsfwLIR73Rau3ZcUoBKz3%2Fuploads%2FZCFkWJQZZy1lRY9rhd8i%2Fimage.png?alt=media&#x26;token=9debc5e0-0193-4cf3-a405-5eb6f7a1fbbb" alt=""><figcaption></figcaption></figure>

5. **Select action type as 'execute a macro' and for action value select your configuration name**

<figure><img src="https://3337891057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsfwLIR73Rau3ZcUoBKz3%2Fuploads%2F8afOutNIOH4SnaMzHD7R%2Fimage.png?alt=media&#x26;token=fa1029e4-7029-4a40-809d-b466775f9067" alt=""><figcaption></figcaption></figure>

6. **Enable the rule and setting up the macro is finished!**

<figure><img src="https://3337891057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsfwLIR73Rau3ZcUoBKz3%2Fuploads%2FIW7Z2ex3y3LvVnbVr5Fd%2Fimage.png?alt=media&#x26;token=0d1008a6-0b7c-4495-91e7-6e9a5599d14f" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
You have finished. Once the macro configuration and rule are enabled - packages will be assigned to newly came orders.&#x20;
{% endhint %}

{% hint style="warning" %}
The macro assigns package type based on inventory package group set. Make sure you set up correct package group to the item.&#x20;
{% endhint %}

<figure><img src="https://3337891057-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsfwLIR73Rau3ZcUoBKz3%2Fuploads%2FwyiAnyNPAC9pDXLGjojF%2Fimage.png?alt=media&#x26;token=62e039e4-57c3-432f-988f-2b8fe6cd3094" alt=""><figcaption></figcaption></figure>
