cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Switch Not Recognizing the Output

Hello and apologies for my ignorance, I am a complete beginner with any type of coding. Here is my issue

image.png

 

 

 

 

 

 

I'm trying to get an item in a sharepoint list to update when another item is changed.  So for example, I want Sharepoint to capture the email address of the person when they change the value of a dropdown to "Assigned", but only if no email address is already there.  The person to whom the referral is assigned is the one that will be making the change. So modifier's email.

 

At the same time, if the value is changed to "Contacted", I want it to capture the date that value was changed but only if no date already exists. 

 

I therefore created a switch function with conditions.

 

I believe the problem is that although the correct value is returned (see for screenshot), the switch function doesn't recognize it as the conditional value to initiate the action.

 

Here is my flow:image.png

CRA BN is my unique identifier

 

3.png4.png5.png6.png

Any help will be greatly appreciated!

2 REPLIES 2
Community Support
Community Support

Hi @lafrancejf ,

 

Could you please explain more details about the MTCUStatus column?

What is the type column the MTCUStatus column, is it a Choice type column don't allow multiple selections?

If the MTCUStatus column is a Choice type column don't allow multiple selections, the flow should work.

Please share more details so we would try to provide a proper workaround for you.

 

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @v-alzhan-msft and thank you for your reply!

 

The MTCUStatus column is indeed a choice column with the following options: "Referred" (default), "Assigned" and "Contacted".

 

In a nutshell here is what I want to happen:

 

Employee updates the value from "Referred" to "Assigned" and the list captures their email address (but only if no previous email address is populated).  Later, employee updates the value from "Assigned" to "Contacted" and the list captures the date (but only if no previous date is populated).

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (94,127)