Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

itemUrl has # instead of ? in url string

Hello Everyone!


I am creating a flow that allows me to select a file within a SharePoint Library and request approval from people. I am using the 'For a selected file' step to gather information about the file. Later, in my 'Create an approval' step I use the 'itemUrl' dynamic content as the 'Item Link'.

This results in the URL being:


Which contains a '#' at "AllItems.aspx#id=" which does not work as an legit URL. If I open the file manually through SharePoint the URL is exactly the same except that it contains a '?' at "AllItems.aspx?id=". 


Is this a bug, or is there something I can do to correct this? 


Thank you,


Community Support
Community Support

Hi @KeeperTech-Ray ,


I just tested this on my side and confirm the behavior you mentioned in this thread, the URL contains a '#' instead of a '?'.

What happens when you click in this URL? Does it open the file or simply leaves a blank page?

As for a workaround you could try to use the replace function from Power Automate to change the URL, such as the following:

Let me know if this helped!

Thank you, @rimatos 


The workaround doesn't appear to be working for me. In fact, looking at the testing output, it appears that I have a ? as the input... Maybe the bug is in another step? I moved the replace function around in my flow and it never had an effect. Could it be my adaptive card or posting it to Teams? 

Clicking the link with a '#' in it, presents me a blank white page. 


I don't seem to have permission to upload images, or I would show you my input/output from testing. 


Thank you,


Hi @KeeperTech-Ray ,


Yes, if possible please show me a screenshot of the configuration of your Flow and how you implemented the workaround.

Also show me how the output/input appears in the actions after the flow runs.




@rimatos when I first tried to add attachments I was told I didn't have permission. But, it's working this morning. I have attached an overview of my entire flow and the results of the replace during a test. Flow.jpgTest in out.jpg

HI @KeeperTech-Ray ,


Thank you for coming back to us!

Taking a look at the output in the Compose action the replace function appears to have worked. Are you able to properly select the hyperlink with this suggested modification?




HI @rimatos , 


I can not. The link shown in my adaptive card in Teams and in the link sent via email, still have a '#' and only show a blank page. 


Thank you,


Could you show what dynamic content are you using in the Teams adaptive card?

Make sure that you are using the output from the compose action after the replace function was executed.

@rimatos ,


I think you are asking to see this. 




Hi @KeeperTech-Ray ,


In the Teams adaptive card instead of putting the dynamic content directly from the SharePoint trigger as you did:




Try to use the output of the Compose action with the function that I've provided:





Helpful resources

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,570)