IFS Connect for Sending e-Invoices¶
The purpose with this page is to provide a step-by-step guide how to, in IFS Connect, create new routing rules and how to use them effectively to direct outgoing e-Invoices to different locations, destination addresses.
Use this page when you want to learn more about how to configure IFS Connect for sending of e-Invoices.
Set up Routing Rules for Outgoing e-Invoice¶
- Navigate to Solution Manager / Integration / IFS Connect / ** Routing Rules.**
- Select the Outbound tab.
- Click on Create New and Assistant New Routing Rule will appear.
- Select Routing Rule type as Outbound and click Next.
- Select APPLICATION_MESSAGE to route from and ensure the checkbox Enabled is selected.
- Enter a proper description in the Description field.
-
Select the OUT1 as queue and click Finish.
-
Select New in the Content Based Conditions area.
-
Select MESSAGE_FUNCTION as Search , equals(=) as Operation and SEND_EINVOICE_MESSAGE as Match.
-
As optional conditions you can use the Service Provider defined in E-invoice Processing Type to route the e-Invoice to different addresses.
-
Using Service Provider in E-invoice Processing Type as a Content Based Condition.
- Press New again in the Content Based Conditions area.
- Select RECEIVER as Search and equals(=) as Operation.
- As Match select the desired Address defined in the page Financials / E-Invoice / Basic Data / E-invoice Processing Type.
Note: In Sending e-Invoice functionality it is evaluated the field < Company > in the Search called SENDER in the dropdown. So users can use these search criteria to create different routing rules to cater their different routing needs in the actual business case.
-
-
From the section Destination Addresses choose the Set Destination Address command and select destination address/addresses dedicated to the scenario given in Content Based Conditions.
- Press OK.
- If you have selected several addresses you have to set which of them to be the main address by selecting command Set as Main Address.
- Routing Rules will be selected according to the following rules
- Most importantly all the Content Based Conditions should match
- If there are more than one Routing Rule with all the Content Based Conditions matching then the process will select the Routing Rule with most Content Based Conditions
- If there is more than one Routing Rule with same number of matching Content Based Conditions then the process will select the Routing Rule which is created first It is advisable to not rely on the created date/time of the Routing Rule and instead make more specific Content Based Conditions
- Please refer scenarios below to get an idea on how to set-up different routing rules to suit different routing needs.
Routing Rule Scenarios¶
Sending All e-Invoices to the Same Endpoint¶
Sending all e-Invoices to the same address is simply achieved by having a single routing rule defined with only the MESSAGE_FUNCTION as the Content Based Condition.
Sending e-Invoice to Different Destination Endpoints for Different Service Provider Setup¶
In this scenario it is requested to send an e-Invoice to different Destination Endpoints with respect to different Service Providers defined in E-invoice Processing Types basic data.
First it is necessary to create separate Routing Rules for each Service Provider defined in the different E-invoice Processing Type . Then the Content Based Conditions are used as follows,
- Search set to RECEIVER.
- Operation set to equals(=).
- Match set to <Value of the corresponding Servide Provider field in Connected E-invoice Processing typefor such customer/company>.
- Perform step 1 to 3 for each Routing Rule.
- Now connect the different Routing Rules to the appropriate Destination Endpoints where the e-Invoice should be sent
- SERVICE_PROVIDER_A defined in the Service Provider field in connected E-invoice Processing Type.
- SERVICE_PROVIDER_B defined in the Service Provider field in connected E-invoice Processing Type.
- SERVICE_PROVIDER_A defined in the Service Provider field in connected E-invoice Processing Type.
Sending e-Invoice to Different Destination Endpoints for Multiple Criteria¶
In this scenario it is requested to send an e-Invoice to different Destination Endpoints with respect to multiple criteria, like e.g. the Company and the Service Provider in the E-invoice Processing Type.
To achieve this it is necessary to create a Routing Rule with conditions as MESSAGE_FUNCTION, SENDER, RECEIVER.
Assume that the following Routing Rules have been defined.
Routing Rule | Content Based Condition |
---|---|
Rule 1 | RECEIVER = SERVICE_PROVIDER_A |
Rule 2 | SENDER = COMP1 |
Rule 3 | RECEIVER = SERVICE_PROVIDER_B |
Rule 4 | RECEIVER = SERVICE_PROVIDER_C |
Rule 5 | RECEIVER = SERVICE_PROVIDER_C AND SENDER= COMP2 |
Rule 6 | RECEIVER = SERVICE_PROVIDER_D AND SENDER= COMP2 |
Note: MESSAGE_FUNCTION = SEND_EINVOICE_MESSAGE is common for all Routing Rules in this case and is not shown in the table.
The system will pick Routing Rules according to the following,
Company | Service Provider(E-invoice Processing Type) | Routing Rule | Comment |
---|---|---|---|
COMP1 | SERVICE_PROVIDER_B | Rule 2 | Rule 2 is picked with the assumption that Rule 2 is created before Rule 3 , else Rule 3 could be picked. Avoid ambiguous situations like this. |
COMP1 | SERVICE_PROVIDER_A | Rule 1 | Rule 1 will be picked if it was created before Rule 2 , else Rule 2 will be picked. Avoid ambiguous situations like this. |
COMP2 | SERVICE_PROVIDER_B | Rule 3 | |
COMP2 | SERVICE_PROVIDER_C | Rule 5 | This rule has more details than Rule 4 |
COMP2 | SERVICE_PROVIDER_D | Rule 6 |
Note: When there are two or more Routing Rules that satisfy the condition, then the most content based condition will be picked.
If number of content based conditions is also equal then the first created Routing Rule will be selected.
Therefore make sure to add more content based conditions to avoid ambiguous scenarios.