Hey Everyone,
First time caller. I've been stuck on this issue for hours, finally going to phone a friend for help.
I have a forms multiple choice pick-list that has two very similar choices. Dog and Dogfood. Dogfood can easily be identified though a contains 'dogfood' expression. However 'Dog' returns user sections for both Dog and DogFood.
Making it hard to work though 3 scenarios.
- if only 'Dog' is selected
- Update Dog work item
- If only 'DogFood' is selected
- Update 'DogFood' work item
- 'Dog' and 'Dogfood' are selected
- Update both 'Dog' and 'Dogfood' work items
I've had a pass at writing an expression to only add updates to the correct work items, but I can't figure out the syntax to send the right updates to the right work items.
if(
or(
and(
contains(outputs('Get_response_details')?['body/guid'], 'Dog'),
contains(outputs('Get_response_details')?['body/guid'], 'Dogfood')),
and(
not(contains(outputs('Get_response_details')?['body/guid'], 'Dogfood')),
contains(outputs('Get_response_details')?['guid'], 'Dog'))),
'testtag', '')

Report
All responses (
Answers (