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

Flow not working for optional fields input while using a Manual Trigger button

Hi everyone!

 

I'm completely new with power automate and I'm hoping someone might be able to help.

 

I have created a flow button, and I have added 1 required field and 2 optional fields (Details is a multiselect list and Remarks is text input). When they submit, a new item will be created in SharePoint list and post a message to the teams channel.


The flow fails when they keep the optional fields empty. It is not necessary to make these fields required because the user might not add remarks and maybe he might add some information. 

 

Anyone able to give a step by step advice on how I can solve this?

For eg. After manually trigger a flow, is there an action I would be able to use?

5 REPLIES 5
v-bacao-msft
Community Support
Community Support

 

Hi @Starlight24 ,

 

Please click icon show as follows, when here show Make the field required, this Multi-select list of options will be optional filed.

Image reference:

83.PNG

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-bacao-msft
Community Support
Community Support

 

Hi @Starlight24 ,

 

Do you mean that you use the output of the trigger to configure the following action, but the output of the trigger is empty, so the action fails?

 

Maybe you could use empty() function or Condition control to check if the output of trigger is empty.

 

Please provide the screenshot of flow configuration or more details so that we could provide a proper workaround for you.

 

Best Regards,

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

Dear v-bacao-msft,

 

Thank you for your reply.

I have set the field to optional for my remarks option.

And i have attached the flow as follows.

 

1.PNG

2.PNG

 

However, when I run the button while leaving Remarks blank, this error message appears:

 
 
 

 

 

Hi @Starlight24 ,

 

Please try to use Condition to check if Remarks is empty.

If no, fill this Dynamic content in Create item action, if yes, don’t configure Remark field.

 

Image reference:

113.PNG

Hope this helps.

 

Best Regards,

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

I had the same problem and I found in another thread this blog post, that helped me:

https://www.bythedevs.com/post/how-to-pass-a-null-value-as-an-input-while-using-a-manual-trigger-in-...

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,207)