I have a flow that runs on a SharePoint List, when a new item is created on the list, it creates a subsite from a customized site template. I'm using the Send an HTTP Request (GET) and a HTTP Request (POST), once the site is created I would like go back to the list and update that item with the new URL, that is where I'm stuck. Any help would be greatly appreciated.
Solved! Go to Solution.
Hi @kmw1130
There are couple of ways you could do this.
So under the Update Item URL text box enter the SharePoint url then a slash '/' along with your URL you mapped under the create step which I believe the Opportunity Id.
eg: https://yoursharepoint.com/OpportunityID which is your new subsite.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @kmw1130
Could you post a screenshot of your flow? From what you described is as follows:
1. Trigger is when a new item is created
2. HTTP action step
3. Here you can use the update list item action step and use the id from the trigger and Site URL from step 2.
My assumption is all three steps are in one flow.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogYes, that is correct, I have a:
When item is created
Initialize variable - Site Title
Initialize variable - SiteURL
HTTP - GET
HTTP - POST
I will try adding an Update after my HTTP Post. For some reason, I have a Parse JSON, I think I saw to do that someplace. This is what it looks like:
Do I need this? Or just do the update item and get the ID?
This is the options I get when I do an Update item:
Hi @kmw1130
Not sure why you need a Parse JSON. All you need is Update Item SharePoint action step and pass the Id from the trigger.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogAdditionally to my flow to create a site from a template, and getting the Url, I also need to rename the newly created site Notebook to the site name, because it doesn't get renamed with the new site. Any ideas about doing that also?
Hi @kmw1130
Is that your first issue you reported is solved now? Also could you post some screenshot of your flow and the rename details.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogNo, I'm still not able to add the newly created site url into my list. Here is my Flow:
The options for the Update Item URL are HTTP Body.
Hi
You have minimised all the details step of your flow. Could you please expand those steps and post a screenshot. Ofcourse you can obfuscate the urls and other security info?
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogUpdated my last post with the expanded screenshots.
Hi @kmw1130
There are couple of ways you could do this.
So under the Update Item URL text box enter the SharePoint url then a slash '/' along with your URL you mapped under the create step which I believe the Opportunity Id.
eg: https://yoursharepoint.com/OpportunityID which is your new subsite.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogThe first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
30 | |
30 | |
29 | |
22 | |
11 |