# Help in Flow Script 2

**URL:** <https://forum.novacura.com/t/help-in-flow-script-2/1091>\
**Category:** Flow Classic\
**Tags:** studio-or-server\
**Created:** [January 13, 2026, 7:17am UTC](https://forum.novacura.com/t/help-in-flow-script-2/1091 "2026-01-13T07:17:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bhaski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/bhaski/32/460_2.png) [@Bhaski](https://forum.novacura.com/u/Bhaski)\
**Post date:** [January 13, 2026, 7:17am UTC](https://forum.novacura.com/t/help-in-flow-script-2/1091/1 "2026-01-13T07:17:43Z")

</div>

Hi Gurus,

I need ahelp in flow script while calling an integration.

in an integration I’m getting below data

let InvestorTBL =  
[  
isEstablishment: “NO”,  
designation: [  
nameAr: “aa”,  
nameEn: “aa”,  
code: “aa”  
],  
registrationDate: “aa”,  
person: [  
idNumber: 11,  
passport: [  
number: “11”,  
issueCountry: [  
nameAr: “aa”,  
nameEn: “aa”,  
code: “11”  
],  
issueDate: “11”  
],  
dateOfBirth: “11”,  
nameAr: “aa”,  
nameEn: “aa”,  
gender: “MALE”,  
nationality: [  
nameAr: “aa”,  
nameEn: “aa”,  
code: “11”  
]  
]  
]  
&  
[  
isEstablishment: “YES”,  
designation: [  
nameAr: “bb”,  
nameEn: “bb”,  
code: “bb”  
],  
registrationDate: “bb”,  
**person: “Nil”**  
];  
return InvestorTBL;

Now if you see sometimes for soem data **person: “Nil” ,** how to handle the op in ky scripyt to skip this Nil record.

Thanks in advance !!!

REST API call

Br,

Bhaski

---

<div class="post-metadata">

**Author:** ![OlaCarlander](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/olacarlander/32/205_2.png) [@OlaCarlander](https://forum.novacura.com/u/OlaCarlander)\
**Post date:** [January 13, 2026, 9:24am UTC](https://forum.novacura.com/t/help-in-flow-script-2/1091/2 "2026-01-13T09:24:53Z")

</div>

Hi, in that example you have different columns for the two rows so the syntax seem a bit wrong.

But assuming you have the same values you should be able to return the table with: where person != “nil”

---

<div class="post-metadata">

**Author:** ![JonasG](https://avatars.discourse-cdn.com/v4/letter/j/7C9FD7/32.png) [@JonasG](https://forum.novacura.com/u/JonasG)\
**Post date:** [January 15, 2026, 12:52pm UTC](https://forum.novacura.com/t/help-in-flow-script-2/1091/3 "2026-01-15T12:52:38Z")

</div>

You get this data from a REST API call I assume, are you using the REST connector? If so, how did you set up your model for receiving data? Normally the connector should be able to skip objects with no content, but I’m not sure what happens if the property is set to “Nil”. Maybe you could use a Model transformation to change the data from “Nil” to an empty “person” object.

---

<div class="post-metadata">

**Author:** ![Bhaski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/bhaski/32/460_2.png) [@Bhaski](https://forum.novacura.com/u/Bhaski)\
**Post date:** [January 15, 2026, 1:14pm UTC](https://forum.novacura.com/t/help-in-flow-script-2/1091/4 "2026-01-15T13:14:50Z")

</div>

Hi Ola,

Thanks for the reply.

I have tried in script to do something person != “nil” , it’s not capturing

---

<div class="post-metadata">

**Author:** ![Bhaski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/bhaski/32/460_2.png) [@Bhaski](https://forum.novacura.com/u/Bhaski)\
**Post date:** [January 15, 2026, 1:16pm UTC](https://forum.novacura.com/t/help-in-flow-script-2/1091/5 "2026-01-15T13:16:44Z")

</div>

Hi Jonas,

Thanks for the reply.

It would be grtae if you can provide me an example for this.
