Forum Discussion
Update the Sharepoint List Name with last update
- Feb 28, 2024
jtsables it is possible using a flow in Power Automate but you will need to use environment variables in a solution so that you don't have to keep manually changing the source list name. My original SharePoint list was titled Bridge:
This is the flow and you'll see the site name and list name are using the environment variables I created in a solution:
We need to use 2 send an http request to SharePoint actions, the first to get the previous title of the list and the second to post the new title.
After an item in the list is created or modified this is the new title of the list:
And again a couple of minutes later.
Rob
Los Gallardos
Microsoft Power Automate Community Super User.
Principal Consultant, SharePoint and Power Platform WSP Global (and classic 1967 Morris Traveller driver)
jtsables in fact the environment variables was my mistake. I didn't think the list title in the trigger would update when the title was changed and so the flow would fail. But I've just tested it on a different flow and it does update. This indicates to me that the trigger and subsequent actions display the current title but actually use the internal GUID of the list. Even after 5 and a half years with Power Automate you can still learn something new every day! Sorry for giving you the extra work with the EVs and solution (although they are often a good idea and it's good to know how to create them).
Rob
Los Gallardos
Microsoft Power Automate Community Super User.
Principal Consultant, SharePoint and Power Platform WSP Global (and classic 1967 Morris Traveller driver)
Thank you very much, I learnt a lot with this exercise !
I'm glad you learn also something with this discussion.
Best regards
Jean-Tristan