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

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
Community Support

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.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

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.

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,124)