Forum Discussion
hemenzel
May 05, 2023Copper Contributor
How to format link column?
I'm trying to create a flow that posts an Adaptive Card in Teams based on a new submission to a SharePoint list. When a link is added to the related SharePoint list column (via Microsoft ...
- May 08, 2023
hemenzel What is the column type in SharePoint used to store this information? If it is a multiple lines of text column storing this complete JSON array, I don't think you will be able to make if clickable using JSON formatting.
However, you can use expression like below in Power automate flow to extract only link from the JSON:
@{first(json(variables('strJSON')))?['link']}
Example:
Output:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs
hemenzel
May 09, 2023Copper Contributor
ganeshsanap, Ah, okay....I set it up like this, but am now getting an "invalid template" error....
first(json(variables('strJSON')))?[triggerOutputs()?['body/Agenda']]
I appreciate your help!!
hemenzel
May 09, 2023Copper Contributor
ganeshsanap, never mind, I got it to work thanks to your suggestions. Thank you 100000!!