cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WC-KSTILL
Helper III
Helper III

Get Items/Create Item Multiple Lines of Text Column with "Version History/Append Changes of Existing Text"

I am wondering if someone can assist me with this flow I am creating.

 

I am basically trying to migrate a SharePoint list and all it's columns to a new site/list.

 

All the items get created along with all the columns except for my "notes" column. The notes Column is a Multiple Lines of Text Column that has Append Changes to Existing Text enabled (Versioning)

 

Is it possible to copy over all the items of this column from the old list column to the new list column or at minimal at least the very last time added?

 

Here is my flow, I have selected the Notes column to bet the "Get Items/Notes" Column but when the item is created in the new list, its blank.

 

Flow 1.png

 

I highly appreciate anybody can help me accomplish this task

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @WC-KSTILL,

 

You could use Request API to get these versions of SharePoint item to extract these note history.

_api/web/Lists/getbytitle('List Name')/items(itemID)/versions

Screenshot 2020-10-05 154908.jpg

 

Then you will get all versions of the item via following expression:

outputs('Send_an_HTTP_request_to_SharePoint')?['body']['d']['Results']

Then use Select action to only get the notes:

Screenshot 2020-10-05 154952.jpgAfter all, you could convert these notes into a string and append it into the new item in the other SharePoint list. 

 

Best Regards,
Community Support Team _ Lin Tu
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

6 REPLIES 6
v-litu-msft
Community Support
Community Support

Hi @WC-KSTILL,

 

You could use Request API to get these versions of SharePoint item to extract these note history.

_api/web/Lists/getbytitle('List Name')/items(itemID)/versions

Screenshot 2020-10-05 154908.jpg

 

Then you will get all versions of the item via following expression:

outputs('Send_an_HTTP_request_to_SharePoint')?['body']['d']['Results']

Then use Select action to only get the notes:

Screenshot 2020-10-05 154952.jpgAfter all, you could convert these notes into a string and append it into the new item in the other SharePoint list. 

 

Best Regards,
Community Support Team _ Lin Tu
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

@v-litu-msft 

 

I will give this a try today and let you know if it worked.


Thank you so much for replying

Do I add the Send an http request to SharePoint action within the same apply to each?

 

WC-KSTILL_0-1601993248101.png

 

This is what I have now. Now sure if its correct but I still don't know how to get it into the create item. Do I need to set a variable or something?

 

WC-KSTILL_0-1601994920680.png

 

Hi @WC-KSTILL,

 

Ok, please add these step to convert history notes into a string:

Screenshot 2020-10-08 175430.jpg

 

Screenshot 2020-10-08 175446.jpg

 

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

Yousra
Frequent Visitor

Can you help me with a similar issue I'm facing. 

I'm trying to export the conversation history in a multi line text with appended changes into excel. It always results in a blank field. If I create a similar flow to convert the text to a string, will I then be able to export to the excel file?

 

Thanks,

Yousra 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,800)