Forum Discussion
Dynamic Table when calling data from API
- 2 years ago
Hi cameroon
In this case, the Source step is returning a record with a single field whose name corresponds to fldPhase2ID.
Either of these should work for the Phase to find step:
1. Return the value of the field whose name corresponds to the value of fldPhase2ID:
#"Phase to find" = Record.Field( Source, Text.From( fldPhase2ID ) )or
2. Return the value of the first field of the record:
#"Phase to find" = Record.FieldValues( Source ){0}I would probably recommend method 1.
Does this work for you?
Regards
Hi cameroon
In this case, the Source step is returning a record with a single field whose name corresponds to fldPhase2ID.
Either of these should work for the Phase to find step:
1. Return the value of the field whose name corresponds to the value of fldPhase2ID:
#"Phase to find" = Record.Field( Source, Text.From( fldPhase2ID ) )
or
2. Return the value of the first field of the record:
#"Phase to find" = Record.FieldValues( Source ){0}
I would probably recommend method 1.
Does this work for you?
Regards