web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SharePoint Multiline T...
Power Apps
Answered

SharePoint Multiline Text Input Control with Appended Text

(0) ShareShare
ReportReport
Posted on by 89

I have a multiline text box in SharePoint to capture general comments from Power Apps using SharePoint's appended text feature, and it works as I want it to. However, when I retrieve the information using a Lookup in PowerApps, my form only picks up the last entry submitted to SharePoint. The other appended text items aren't visible. Is there a way I can call all of the text items in a multiline text box?

 

I did notice that each item of text is assigned a version number when it is entered in SharePoint. Here is a screenshot of a test. PowerApps only retrieves version 3072.

 

David8_0-1628276911594.png

This is appended text.

David8_3-1628277079551.png

 

This is for Appending Text

David8_2-1628277038472.png

 

This is for Test.

David8_1-1628276958702.png

 

 

Categories:
I have the same question (2)
  • Verified answer
    Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    The append to Text functionality in SharePoint is special.  It stores each comment in the field as a specific comment for that version.  Then at runtime it retrieves all the back versions and combines the output.  Power apps doesn't know how to do that so you only get the most recent comment.  I have used an HTTP REST call in a flow to retrieve all the versions and get the comments to return to Power apps, but its pretty labor intensive.

  • Verified answer
    David8 Profile Picture
    89 on at

    Thank you for your feedback. This information was helpful.

     

  • ahlavertySOC Profile Picture
    32 on at

    @Pstork1 - Can you show the steps for this?

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Here's screenshots of the basic process

    image.png

    1) I call the flow from a Power App and pass in the name of the column, the list, and the item ID

    2) I create a variable with some base HTML to hold the comments

    3) I use a REST call to retrieve all the previous versions of the item.

    image.png

    4) I Parse the output of the REST call to access the individual versions and columns in the versions

    5) I loop through the versions and append the results of the specific column to the string variable.  I include the date/time when it was made and the author with the comment

    6) I return the string variable to the Power App where it is displayed in a Rich Text field.

     

    I hope that helps.

     

    One thing I learned since I made this example is that inside the loop you should check to make sure this revision contains something in the column. If people edit other things in the item it will create a new revision, but there won't be appended text.  That check isn't in this demo.

  • ahlavertySOC Profile Picture
    32 on at

    @Pstork1 Thanks I got it to work, but it still shows when the column is null. How do I not show that when it's null.

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    In the loop you need to check to see if that column is null in that version before appending anything to the variable for that particular loop.  Or you can do a filter array on the versions that are returned before entering the loop. But that normally requires a second parse JSON to get access to the fields in the filtered results.

  • ahlavertySOC Profile Picture
    32 on at

    @Pstork1 - I tried the condition

    items('Apply to Each')[variables('ColumnName')]

    is equal to 'null', but I'm getting an error: 

    Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The repetition action(s) 'Apply to Each' referenced by 'inputs' in action 'Condition' are not defined in the template.'.'
     
  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    It would be 

    items('Apply to Each')?['ColumnName']

    for whatever the Column name actually is.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard