I need to populate a details pane based on information that is available in a parameter I have set up in a dashboard:
https:/<app url>#p1=ABC123
The parameter value contains information. So, if it starts with 'ABC,' then I want one layer to populate the detail pane. If it starts with 'CDE' I want a different layer, etc...
I tried:
if(p1 == 'ABC123') {
fs = findPortalItembyID(...)
}
And got an error. It did not recognize 'p1' (the parameter name). Is it possible for Arcade to get this information from the url, or is that out of bounds?
Thank you,
Randy McGregor