Hardcode multiple lineitems (array)

Comments

2 comments

  • Marco Pietersen

    This is the closest result I can get:
        "Currency": {
          "lines": [
            {
              "currency": "{\"1\",\"7\"}"
            }
          ]
        }

     

    But obviously I would like 

        "Currency": {
          "lines": [
            {
              "currency": "1"
            },        
            {
              "currency": "7"
            },       
          ]
        }

    0
  • Kathyana Rule Community moderator Technical Writer
    Engaged
    Celigo University Level 2: Seasoned

    Hello Marco Pietersen

    I saw that you got a solution to this issue in a help ticket. In case others run into your issue, I'm posting the general idea behind the solution here. 

    The best way to map this information is to create a preMap hook script with an array of currencies. Then, you can map it against the Currency field in NetSuite. 

    Thanks! 

    0

Please sign in to leave a comment.