Setup a Subscription
11 minute read
After setting up the Topic, create a Subscription for each Party that should pull data from the Topic.
Watch our video how to setup a Subscription.
Masterdata
The subscriptions are setup a bit different depending on if the companies are in the same environment or not.
Same environment
- Select the 🔎 icon, enter Subscriptions (IDM), and select the related link.
- Select New to create a new Subscription.
- General fast tab:
Party code – Select the code for the sending company.
Topic – Select the Topic. - Subscription Tables
The tables that are included in the Topic message. - Use Subscription Fields to modify field-level data processing, mapping, and rules.
Multiple environments using Azure Service Bus
- Run the Topic in the sending company.
- Go to the receiving company.
- Select the 🔎 icon, enter Subscriptions (IDM), and select the related link.
- Enter the Party code for the sending company and select the related Topic.
- Run the Subscription.
- Add the tables under Subscription Tables.
- Use Subscription Fields to modify field-level data processing, mapping, and rules.
Subscription tables
When the Subscription header is filled in, the tables from the Topic are automatically populated in the Subscription tables. It’s possible to delete a table you don’t want to import.
Four fields on each subscription table control how incoming subscription messages affect records in the receiving company: whether records can be inserted, modified, deleted, or renamed. When you create a new subscription, Insert record and Modify record are selected by default, while Delete record and Rename record must be turned on manually.
| Field | Comment |
|---|---|
| Insert record | Allows new records to be inserted in this table when subscription messages are processed. Select this if new records from the publishing company should be created in your company. |
| Modify record | Allows existing records to be modified in this table when subscription messages are processed. We recommend selecting this so records stay in sync across companies. |
| Delete record | Allows records to be deleted from this table when subscription messages are processed. Don’t select this for tables where records can have ledger entries or posted documents in your company, such as customers, vendors, or items. Block those records in the publishing company instead. |
| Rename record | Allows records to be renamed (their primary key changed) in this table when subscription messages are processed. Select this if the publishing company may change record keys, such as customer numbers, so your existing records keep their history under the new key. |
Subscription Fields
Subscription fields is the definition of which fields are imported, and it controls how the data is processed. Note that you can’t add a filed in the Subscription that doesn’t exist in the Topic. Some of the most important fields are as follows:
| Field | Comment |
|---|---|
| Target field No./Name | The number and name of the field that should be updated in your company. It’s not always one-to-one with the Source No/Name in the Topic. The fields are colour coded: Green – The field is imported, no action needed. Red – The field is imported, an action is needed (check the comment field). Black – The field is not imported. |
| Source field No./Name | The number and name of the table in the sending company. |
| Include field | This field is selected if the field is included when running the subscription. This value can be changed. |
| Skip validation | If this field is selected, the data will not be validated. This means that any data can be imported, even if the field has a related table. |
| Mapping type | When importing a table, it’s possible to change a value in a field on an entry using the Mapping functionality. Mapping must be done if the values in the sending and receiving company are not the same. You can map a field four different ways: Value – One-to-one mapping. Filter – Conditional updates based on filters. Fixed – Assigns a fixed value to all imported transactions. Currency – Manages local currency conversions. Read more about currencies. |
| Has mapping | If you have selected a Mapping type, you must add the Mapping parameters. Click on Yes/No to update the parameters. |
| Value | From value -> To value Add one or several one-to-one mappings. This is useful if you want to update the project managers to different values. |
| Filter | Conditional updates based on filters. |
| Fixed | Assigns a fixed value on all imported entries. Useful when you map the Bill-to customer to the sending company’s customer number in your company. |
| Currency | No mapping needs to be done. |
| Comment | When changing or mapping a field, add a comment to document the changes. |
Templates
The subscriptions are setup a bit different depending on if the companies are in the same environment or not. The Subscription looks the same and the example below shows the Project template.
Same environment
- Select the 🔎 icon, enter Subscriptions (IDM), and select the related link.
- Select New to create a new Subscription.
- General fast tab
Party code – Select the code for the sending company.
Topic – Select the Topic. - Options fast tab (only visible for the Project template):
Inv. Setup Template – Select if you want to add an invoice template when creating the project.
Res. price Template – Select if you want to add a pricing list when creating the project. - Subscription Tables.
The tables that are included in the Topic message. - Use Subscription Fields to modify field-level data processing, mapping, and rules.
Multiple environment using Azure Service Bus
- Run the Topic in the sending company.
- Go to the receiving company.
- Select the 🔎 icon, enter Subscriptions (IDM), and select the related link.
- Enter the Party code for the sending company and select the related Topic.
- Run the Subscription.
- Options fast tab (only visible for the Project template):
Inv. Setup template – Defines if you want to add an invoice template on intercompany projects.
Res. price template - Defines if you want to add a pricing list on intercompany projects - Add the tables under Subscription Tables.
- Use _Subscription Field_s to modify field-level data processing, mapping, and rules.
Subscription tables
When the Subscription header is filled in, the tables from the Topic are automatically populated in the Subscription tables. It’s possible to delete a table you don’t want to import.
Four fields on each subscription table control how incoming subscription messages affect records in the receiving company: whether records can be inserted, modified, deleted, or renamed. When you create a new subscription, Insert record and Modify record are selected by default, while Delete record and Rename record must be turned on manually.
| Field | Comment |
|---|---|
| Insert record | Allows new records to be inserted in this table when subscription messages are processed. Select this if new records from the publishing company should be created in your company. |
| Modify record | Allows existing records to be modified in this table when subscription messages are processed. We recommend selecting this so records stay in sync across companies. |
| Delete record | Allows records to be deleted from this table when subscription messages are processed. Don’t select this for tables where records can have ledger entries or posted documents in your company, such as resources and projects. Block those records in the publishing company instead. |
| Rename record | Allows records to be renamed (their primary key changed) in this table when subscription messages are processed. Select this if the publishing company may change record keys, such as customer numbers, so your existing records keep their history under the new key. |
Subscription Fields
Subscription fields is the definition of which fields are imported, and it controls how the data is processed. Note that you can’t add a filed in the Subscription that doesn’t exist in the Topic.
Some of the most important fields are as follows:
| Field | Comment |
|---|---|
| Target field No./Name | The number and name of the field that should be updated in your company. It’s not always one-to-one with the Source No/Name in the Topic. The fields are colour coded: Green – The field is imported, no action needed. Red – The field is imported, an action is needed (check the comment field). Black – The field is not imported. |
| Source field No./Name | The number and name of the table in the sending company. |
| Include field | This field is selected if the field is included when running the subscription. This value can be changed. |
| Skip validation | If this field is selected, the data will not be validated. This means that any data can be imported, even if the field has a related table. |
| Mapping type | When importing a table, it’s possible to change a value in a field on an entry using the Mapping functionality. Mapping must be done if the values in the sending and receiving company are not the same. You can map a field four different ways: Value – One-to-one mapping. Filter – Conditional updates based on filters. Fixed – Assigns a fixed value to all imported transactions. Currency – Manages local currency conversions. Read more about currencies. |
| Has mapping | If you have selected a Mapping type, you must add the Mapping parameters. Click on Yes/No to update the parameters. |
| Value | From value -> To value Add one or several one-to-one mappings. This is useful if you want to update the project managers to different values. |
| Filter | Conditional updates based on filters. |
| Fixed | Assigns a fixed value on all imported entries. Useful when you map the Bill-to customer to the sending company’s customer number in your company. |
| Currency | No mapping needs to be done. |
| Comment | When changing or mapping a field, add a comment to document the changes. |
Note!
If the companies have different LCY, make sure you have the fields Invoice currency code and Time sheet currency code in your Subscription definition. Note that if the fields are missing, you might need to add them the Topic first.Review and update table definitions
In Pryme Intercompany Project templates there are fields that needs to be mapped project to ensure correct values in the receiving company’s projects.
Project (Table 167 – Job)
| Target Field No | Target Field Name | Mapping Value | Comment |
|---|---|---|---|
| 5 | Bill-to Customer No. | Fixed | Always map to the sending company’s customer number in the receiving company. |
| 20 | Person Responsible | Verify if it matches the sending company. | |
| 23 | Job Posting Group | Verify if it matches the sending company. | |
| 1011 | Invoice Currency Code | Currency | Use Currency if the companies have different local currencies. Read more about currencies. |
| 2000 | Sell-to Customer No. | Fixed | If the customer table is not part of master data, map to the sending company’s customer number. |
| 14045651 | Resource Invoice Type | Value | If there is a fixed price agreement with the end-customer, but the intercompany agreement is not fixed price you should map to T&M. |
| 14045655 | Item Invoice Type | Value | If there is a fixed price agreement with the end-customer, but the intercompany agreement is not fixed price you should map to T&M. |
| 14045656 | Expense Invoice Type | Value | If there is a fixed price agreement with the end-customer, but the intercompany agreement is not fixed price you should map to T&M. |
| 14045674 | Project Manager PGS | Verify if the resource matches the sending company. | |
| 14045753 | Timesheet Currency Code | Currency | Use Currency if the companies have different local currencies. Read more about currencies. |
Job Task (Table 1001 – Job Task)
| Target Field No | Target Field Name | Mapping Value | Comment |
|---|---|---|---|
| 14045764 | Contract Type PGS | Value | If there is a fixed price agreement with the end-customer, but the intercompany agreement is not fixed price you should map to T&M. |
| 14045709 | Project Manager PGS | Verify if the resource matches the sending company. |
Permissions (Table 14045676 - Permissions PM)
This table is not mandatory. If permission from the sending company is unnecessary, delete the table.
| Target Field No | Target Field Name | Mapping Value | Comment |
|---|---|---|---|
| 1 | No | Verify if the resource matches the sending company. |
Time (Table 156 – Resource)
| Target Field No | Target Field Name | Mapping Value | Comment |
|---|---|---|---|
| 51 | Gen Prod Posting Grp | Verify if it matches the sending company. | |
| 58 | VAT Prod Posting Grp | Verify if it matches the sending company. |
Note!
Pryme intercompany project does not include cost price as part of its default setup. Handle cost prices using one of the following approaches:
- Manually input the cost price for external resources in the receiving company.
- Automate using resource group / resource subgroup. Create a dedicated group/subgroup for IC resources and add transfer pricing rates. Map IC resources to the designated group/subgroup.
Job Journal Line (Table 210)
| Target Field No | Target Field Name | Mapping Value | Comment |
|---|---|---|---|
| 1008 | Currency Code | Currency | See Currency Mapping. |
| 14045810 | Expense Payment Type | Value | Map expense payment types for intercompany transactions. |
Test the Setup
After creating the topic and corresponding subscription, test the setup:
- Send one entry from the sending company.
- Run the subscription manually in the receiving company using Run Subscription.
- When successful, configure a Job Queue for automated subscription processing.
For details on job queue setup, see Set Up Job Queues.