Good afternoon,
I could not find in the forums any solution to fix my problem.
Sorry if it has already been addressed and in that case could you please redirect me to the right topic ?
I would like to create a collection that would return the columns from 3 different Sharepoint lists.
The lists' structure is as per below:
t_address
- id_address
- ref_stakeholder
- street1
- street2
- ref_city
t_city
- id_city
- city_name
- ref_country
t_country
I would like to create a collection which returns
- street1 (from t_address)
- street2 (from t_address)
- city_name (from t_city)
- country_name (from t_country)
To be noted, that I want a specific line from t_address which is filtered with the value a control named ComboBox6_3 (that returns the stakeholder reference)
So far, I could get a collection street1, street2 and city_name, but when I insert LookUp to get the country, the collection is empty.
Current but non working code :
ClearCollect(
collect_address;
ForAll(
Filter(t_adresse;ref_stakeholder = ComboBox6_3.Selected.ref_company_defaut);
{
IdAddress : id_address;
Street_1 : street1;
Street_2 : street2;
CityName : LookUp(
t_city;
id_city = ref_city;
city_name
);
CountryName: LookUp(
t_country;
id_country = LookUp(
t_city;
id_city = ref_city;
ref_country
);
country_name
)
}
)
)
Thanks for your help