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
Highlighted
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
Highlighted
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.
>