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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps Chat Collec...
Power Apps
Unanswered

Power Apps Chat Collection Not Populating

(0) ShareShare
ReportReport
Posted on by 5,345 Moderator

Content courtesy 'About 365' -

I am trying to build a chat component in a Canvas App. 

"When you are using a PowerApps form on your SharePoint list, you can skip this step. But if you’re using a lossless canvas app, you need to make sure your PowerApp knows which item has to be pulled from SharePoint. You can do this by using a parameter.

Parameters can be used to pass values from the URL to your PowerApp by putting ?= at the end of the Web link of your PowerApp: https://web.powerapps.com/apps/12a34b5c-678d-90e1-f23g-456h78901hij?itemID=1 In your PowerApp, you can pick up this parameter by using the Param() function and setting it to a global variable using the Set() function in your OnStart event:


When I use the below (as a test) I get one (presumably the first) item to the Collection from the SP ChatLog list -
Set(
itemID,
Param("itemID"));
"1");

If(
!IsBlank(
LookUp(ChatLog,
ID = Value(itemID),
ChatEntries)),
ClearCollect(ChatLogCollection,
Split(LookUp(ChatLog,
ID = Value(itemID),
ChatEntries
), Char(10))));

When I use the below I don't get any items to my Collection from the SP ChatLog list -
Set(
itemID,
Param("itemID"));

If(
!IsBlank(
LookUp(ChatLog,
ID = Value(itemID),
ChatEntries)),
ClearCollect(ChatLogCollection,
Split(LookUp(ChatLog,
ID = Value(itemID),
ChatEntries
), Char(10))));

I am unsure where and how to introduce the site link referenced below.

Parameters can be used to pass values from the URL to your PowerApp by putting ?= at the end of the Web link of your PowerApp: https://web.powerapps.com/apps/12a34b5c-678d-90e1-f23g-456h78901hij?itemID=1 In your PowerApp, you can pick up this parameter by using the Param() function

Phineas_1-1658853171237.png

 

Phineas_0-1658853020753.png

 

Categories:
  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @Phineas ,

     

    I suggest going step by step to find the issue.

     

    1. Does "Param("itemID")" returns a value? Note that this function properly works only outside the editor.
    2. Does the "LookUp()" returns an item?
    3. Do you test your app inside the editor or by playing the published version?
  • Phineas Profile Picture
    5,345 Moderator on at

    My response to updates and questions -

    1. Does Param("itemID") return a value? Note that this function properly works only outside the editor.

      In 'live' play, the test Label with Param("itemID") does not
      default any content. This is WITHOUT adding the 'itemID=1'
      part referenced herein. 
      Phineas_0-1658934683402.png

     

          2. Does the "LookUp()" return any item?

              The OnStart LookUp to ChatLogList status -
              Works with the following (but only returns one item) -
                                   Set(itemID, 
                                   //Param("itemID"));
                                  "1");

    Phineas_1-1658935647294.png

     

             Does not return any data with the below; 'itemID=1' has not been added to site link -
                       Set(itemID, Param("itemID"));

         3. Do you test your app inside the editor or by playing the published version?

              Both? Same results; One Set returns only one item and the other returns no data.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard