Hello,
I am building a flow where an adaptive card is posted on teams when a new record is created in SP list.
For this purpose I need to make a provision wherein a clickable link is embedded in the adaptive card, clicking on which will take the user to Google Maps with the coordinates as an input.
There are 2 parts of the concat expression:
1) This part of the URL: https://www.google.com/maps/search/
2) Coordinates fetched from SP list (xx.xxxxxxxx,xx.xxxxxxxx)
I want to concat these together but always there is space appearing:
https://www.google.com/maps/search
2x.5487xxxx,4x.xxxx8473
This is rendering the link to work partially.
Any help would be greatly appreciated.
Solved! Go to Solution.
So I was able to get it work.
There was a '/r' which I missed to escape, causing the coordinates to move to next line thereby causing the split in URL.
This is the code I used:
uriComponentToString(replace(uriComponent(outputs('Compose_5')), '%0D', ''))
Now the URL is working as it should.
Can you use Compose and build expression like below? I am using Title field from SP List and Get Items action and that is why apply to each. You can use yours. If you are using just Get Item you don't need apply to each.
concat('https://www.google.com/maps/search/', items('Apply_to_each')?['Title'])
So I was able to get it work.
There was a '/r' which I missed to escape, causing the coordinates to move to next line thereby causing the split in URL.
This is the code I used:
uriComponentToString(replace(uriComponent(outputs('Compose_5')), '%0D', ''))
Now the URL is working as it should.
The 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 |
---|---|
29 | |
28 | |
27 | |
20 | |
10 |