We are working on a flow where a form submission after an approval gets automatically posted to the News section of one of our SharePoint sites. I've already successfully worked out how to create and publish the page, but my issue lies in getting the correct URL to email to the submitter.
My 4 steps for initializing and publishing the News Article Post are as below:
body.d.Id pulls the page ID from the initial HTTP request, however that's sequential for all posts within pages. I know the article saves based on the title in the SavePageAsDraft JSON Payload but if it's a replicated title you end up with (1), (2), etc appended to the .aspx page.
I notice on the raw outputs of the first request it has an absolute url but that has a placeholder page name that gets overwritten by the draft save. Is there a way to pull the absolute url after using SavePageAsDraft or Publish?
Attachment of screenshot as required by power platform.