So I've written PowerApp with a Gallery component on the homepage which uses the result of a REST API call (to Jira) to populate itself.
I've defined a Custom Connector to do the REST API call. My connector is called JiraCloudConnector and has an action called GetStakeholderFeedback defined within it.
So, the Items parameter of my gallery component look like this.
JiraCloudConnector .GetStakeholderFeedback("(project = SERVICES OR project = PAScal AND labels in (ForServicesBoard)) AND issuetype in (Feedback) ORDER BY Rank ASC").issues
My question is how do I get the gallery to refresh its items periodically (say every minute) ? Can I use a dataflow to do this ? I don't see any option in a Dataflow to do this.
Solved! Go to Solution.
Hi @slong
The way to do this is, rather than set the items property of your gallery control directly to the return value of your custom connector, you would call the ClearCollect function to populate a collection.
You would then set the items property of your gallery control to this collection.
Finally, you would add a timer control to refresh the collection every 60 seconds.
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-timer
https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/working-with-data-sources#collections
Hi @slong
The way to do this is, rather than set the items property of your gallery control directly to the return value of your custom connector, you would call the ClearCollect function to populate a collection.
You would then set the items property of your gallery control to this collection.
Finally, you would add a timer control to refresh the collection every 60 seconds.
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-timer
https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/working-with-data-sources#collections
Worked a treat. Thank you 👍
User | Count |
---|---|
260 | |
122 | |
99 | |
48 | |
43 |