cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
walterdp_souy
Level: Power Up

Use the same columns when creating an item in SharePoint list using Flow

Hi all,

 

I'm building a flow that uses Forms, Email and SharePoint. Basically, I created a form where I ask user to select one of 7 options. There are 7 hidden question and depending on the answer of the first question, one of the 7 questions unhide. 

 

Than the user completes the form and sends the reply. That triggers the flow, sending an email and adding an item to a SharePoint List. What I want to do is to have only 2 columns in the SharePoint list: the answer to the first question and the answer to the unhidden question. 

 

Any ideas?


Thanks


Walter P.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Use the same columns when creating an item in SharePoint list using Flow

Hi @walterdp_souy ,

 

Do you want to save the answer to the unhidden question to SharePoint list column, but not sure which one is the unhidden question?

 

Please consider using If function.

 

The following function could be a reference for you, which will return corresponding result when there is an answer to certain questions.

if(not(empty(body('Get_response_details')?['r7bc7333c981a40b0bffe3eac3a7eea5f'])),body('Get_response_details')?['r7bc7333c981a40b0bffe3eac3a7eea5f'],if(not(empty(body('Get_response_details')?['rade222d8aabb42989aaff2af08a2ba61'])),body('Get_response_details')?['rade222d8aabb42989aaff2af08a2ba61'],if(not(empty(body('Get_response_details')?['r0c350344c2234ed987316af96bee974c'])),body('Get_response_details')?['r0c350344c2234ed987316af96bee974c'],body('Get_response_details')?['rf03a8402796d4108ab1ebaf6c3e26c2b'])))

 

I have set up the flow likes below for testing.

1.PNG

 

Please take a try with it on your side.

 

Best regards,

Mabel

 

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

Re: Use the same columns when creating an item in SharePoint list using Flow

Hi @walterdp_souy ,

 

Do you want to save the answer to the unhidden question to SharePoint list column, but not sure which one is the unhidden question?

 

Please consider using If function.

 

The following function could be a reference for you, which will return corresponding result when there is an answer to certain questions.

if(not(empty(body('Get_response_details')?['r7bc7333c981a40b0bffe3eac3a7eea5f'])),body('Get_response_details')?['r7bc7333c981a40b0bffe3eac3a7eea5f'],if(not(empty(body('Get_response_details')?['rade222d8aabb42989aaff2af08a2ba61'])),body('Get_response_details')?['rade222d8aabb42989aaff2af08a2ba61'],if(not(empty(body('Get_response_details')?['r0c350344c2234ed987316af96bee974c'])),body('Get_response_details')?['r0c350344c2234ed987316af96bee974c'],body('Get_response_details')?['rf03a8402796d4108ab1ebaf6c3e26c2b'])))

 

I have set up the flow likes below for testing.

1.PNG

 

Please take a try with it on your side.

 

Best regards,

Mabel

 

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

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 314 members 4,474 guests
Recent signins:
Please welcome our newest community members: