I am looking thru the Online Help to see if there is a way to construct a logic block expression that would work like an IN operator in SQL. For example, I want to fetch Directory records if the nwId is IN a list of nwId.
I see there is Build Dynamic Expression action that I might be able to use. Basically,
- start with a new empty Build Dynamic Expression as DynamicExpression
- loop thru a list of records (FetchRecord) and
- update the Build Dynamic Expression DynamicExpression with
- (SomeTable.nwId equals FetchRecord’s nwId) or DynamicExpression
- update the Build Dynamic Expression DynamicExpression with
So basically, it is effectively doing A or B or C or D …, where each condition is SomeTable.nwId = FetchRecord.nwId.
Is there a more efficient way, especially if the list could have a hundred values?
1 Like
Using Build Dynamic Expression the way you outline is the only way I can think of to do this.