Hi @v-xida-msft,
I concatenate the campaign name using the 'concatenate' function and the values from each combo box that the user can select (the first four selction boxes are drop down boxes, the last is a text input box and the rest are combo boxes).
Concatenate(
ddBusiness_CamDCM.Selected.Value, "-",
ddRegion_CamDCM.Selected.Value, "-",
ddDivision_CamDCM.Selected.Value, "-",
ddChannel_CamDCM.Selected.Value, "-",
ddCategory_CamDCM.Selected.Result, "-",
ddStrategy_CamDCM.Selected.Result,"-",
ddMarket_CamDCM.Selected.Code, "-",
ddCampaign_CamDCM.Selected.Result, "-",
YYMM_CamDCM.Text)
So the ForAll function you suggested does add seperate number of campaign names for the number of markets you select. However, if I select "AT", "DE", "FR", "BE" (random order), in SQL, the campaign name populates four campaigns, but the all have BE:
- client-client-client-client-region-region-BE-creative type-1212
- client-client-client-client-region-region-BE-creative type-1212
- client-client-client-client-region-region-BE-creative type-1212
- client-client-client-client-region-region-BE-creative type-1212
I know why this is happening, I am using this formula within the ForAll and Patch functions:
CampaignName: Concatenate(
ddBusiness_CamDCM.Selected.Value,"-",
ddRegion_CamDCM.Selected.Value,"-",
ddDivision_CamDCM.Selected.Value,"-",
ddChannel_CamDCM.Selected.Value, "-",
ddCategory_CamDCM.Selected.Result,"-",
ddStrategy_CamDCM.Selected.Result,"-",
ddMarket_CamDCM.Selected.Code,"-",
ddCampaign_CamDCM.Selected.Result,"-",
YYMM_CamDCM.Text
)
Since BE was the last value I selected and I use ddMarket_CamDCM.Selected.Code, that's why BE is the only value to be used. I tried ddMarket_CamDCM.SelectedItems.Code and got an error.
Any idea how I can get each market in a different row, as apposed to the last market that was selected on all rows?
Thanks,
Mammoth