cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microsoft
Microsoft

Convert input string array to customized list of strings

Hi,

 

I would like to get the below output for the given input:

The input array is dynamic and can have any number of values. I have given sample 3 values.

 

#1)

 

Input -> [testLA, testLAWorkspace, testBVTWorkspace]

 

Output -> 

let AzureDiagnostics = ()
{
union workspace('testLA').AzureDiagnostics,
union workspace('testLAWorkspace').AzureDiagnostics,
union workspace('testBVTWorkspace').AzureDiagnostics
};
let AzureActivity = ()
{
union workspace('testLA').AzureActivity,
union workspace('testLAWorkspace').AzureActivity,
union workspace('testBVTWorkspace').AzureActivity
};

 

#2) If the input is 1 workspace

 

Input -> testLA

 

Output -> 

let AzureDiagnostics = ()
{
union workspace('testLA').AzureDiagnostics

}
let AzureActivity = ()
{
union workspace('testLA').AzureActivity
};

 

 

Can someone help me to generate this string dynamically based on the input?

0 REPLIES 0

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (63,662)