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.

@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 Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,835)