Hi All,
I have put together a basic JSON Script that opens my PowerApp and send the ID of the currently selected file in a document library.
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/sp/column-formatting.schema.json",
"elmType": "a",
"attributes": {
"iconName": "Mail",
"target": "_blank",
"href": {
"operator": "+",
"operands": [
"https://web.powerapps.com/apps/d85a1236-6d47-4f28-97c3-9309396fxxxx?DocID=",
"[$ID]"
]
}
}
}
This works fine PowerApps is opened and I can extract the ID into a variable and then get more information by connecting to the document library and looking up the information based on the ID.
The problem is this is fine for one Document Library but I need to use this script across muliple document libraries meaning multiple Data Connections. I plan to pass the folder path in the URL and then use an if Statement to determine which library to connect to.
Could anybody help my to Structure the URL Code I am really struggling to Append the FilePath, I assumed it would be something like
"https://web.powerapps.com/apps/d85a1236-6d47-4f28-97c3-9309396fxxxx?DocID=",
"[$ID]"&FilePath="[$FilePath]"
But this does not seem to work.
Many Thanks
Jamie