# Mapping custom line items in Xero invoice

**URL:** <https://community.make.com/t/mapping-custom-line-items-in-xero-invoice/19539>\
**Category:** Questions\
**Tags:** xero, airtable, mapping, webhooks\
**Created:** [November 12, 2023, 8:49pm UTC](https://community.make.com/t/mapping-custom-line-items-in-xero-invoice/19539 "2023-11-12T20:49:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pascal\_Maier](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@Pascal\_Maier](https://community.make.com/u/Pascal_Maier)\
**Post date:** [November 12, 2023, 8:49pm UTC](https://community.make.com/t/mapping-custom-line-items-in-xero-invoice/19539/1 "2023-11-12T20:49:12Z")

</div>

I’m generating invoices in Xero from Airtable deals.  
Each deal has a few lines with quantities and prices. These I’ve mapped out in an array using the array aggregator as below.  
These lines vary from deal to deal.  
This all works so far.

However there’s another line I want to add to each invoice, and it’s the same item for every single invoice and a quantity of just 1. The price for this (“travel fee”) however, is different for each deal.

Additionally to the array I have as per below, can I add an extra line item with custom code or another way?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/a/2a760237ab36b4dbe6b480fd115ba63c27ce75db.png)  
 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/4/d/4db6a59276253372dae9349fad5121d32b3c468f.png)

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [November 13, 2023, 4:19am UTC](https://community.make.com/t/mapping-custom-line-items-in-xero-invoice/19539/2 "2023-11-13T04:19:04Z")

</div>

Hi @Pascal_Maier

To incorporate an additional line item into the existing Line items, consider employing the merge function. Ensure that you prepare another (line item) array with the necessary requirements before executing the merge.

If you require additional assistance, please don’t hesitate to reach out to us.  
[MSquare Support](https://calendly.com/msquarepro/meeting)  
Visit us [here](https://www.msquare.pro/)  
[Youtube Channel](https://www.youtube.com/channel/UCqidlIIwbejxZmRUWBICcjQ)

---

<div class="post-metadata">

**Author:** ![Pascal\_Maier](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@Pascal\_Maier](https://community.make.com/u/Pascal_Maier)\
**Post date:** [November 13, 2023, 10:32am UTC](https://community.make.com/t/mapping-custom-line-items-in-xero-invoice/19539/4 "2023-11-13T10:32:51Z")

</div>

That worked! Thanks @Msquare_Automation

However I had to duplicate a get record module to be able to aggregate the data and still use non aggregated data further down. Is there a way around that?

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [February 11, 2024, 10:43am UTC](https://community.make.com/t/mapping-custom-line-items-in-xero-invoice/19539/6 "2024-02-11T10:43:26Z")

</div>


