Hi,
Im looking for some help regarding formulas to remove unwanted part of an array.
In PowerApps i recieve an array like this:
{
"A/": null,
"B/": "Teltonika.jpg",
"C/": "Salmon|8a785cf0-eda2-45d3-8fb5-e8fda2a9cae9;Crabstick|6ac61548-b810-4edc-924b-10acea2a794d",
"D/": "Fishing from boat|868f04fb-be45-44cf-8299-3ea9319d1378;Egne|4811f655-f68e-4227-960e-ee0b51a575b2",
"E/": "Line|eebf6781-2aa1-4334-866c-85e065522eb1;Not|7d59fc8d-062d-4fac-98eb-417dc5bff1fc",
"F/": "Norway|2349f5bf-0102-4be4-b7c6-fe825a9b90ec;Sweden|00e1e618-fff8-4ecf-890b-d934b8d13ed8",
"G/": "Sun|9da97257-73be-478e-8035-32c6020d66f5;Snow|077639fa-dc96-4340-991a-c05acc3435f5",
"H/": "John Doe",
"I/": "Fishing rod|83ed3581-b448-436a-9186-3831e845e3f4;Net|749f935e-9b3a-4c83-8eb1-322a4cd357ec",
"J/": "Beach|3ef93644-85ba-4637-98c7-2cc4021eddbd;Coast|10a88b39-9557-4a01-852a-c7cd2e4567bc",
"K/": 423,
"L/": "People|9bc0e261-d07d-4de8-9ed3-90aea45c7330;Animal|a4139bbf-9909-4387-a90c-bbd949b1182c"
}
The above array is retrieved from a SharePoint list (no i cant connect PowerApps to SharePoint, and i have to do it like this 🙂 )
What i would like to achieve is to search for some characters, and remove everything in between them.
For an example on the part of the array starting with "J/".
I need to somehow find the character | and the ; and then remove everything in between.
So the goal is to have this text: "J/": "Beach|3ef93644-85ba-4637-98c7-2cc4021eddbd;Coast|10a88b39-9557-4a01-852a-c7cd2e4567bc",
come out like this: "J/": "Beach, Coast,
Sometimes the array will contain only one word. But other times it could contain 10 words. All of which i would like to "extract" withouth the unwated text.
The ultimate goal is to trim away the unwanted text. Then write the values into an collection. And this collection is to be used in a gallery