Power Automate and Arrays

Farscape2020

New Member
Joined
Mar 22, 2020
Messages
17
Office Version
  1. 365
Platform
  1. Windows
I have created a form that requires people to upload a file for documentation. I would like to rename and save that form to specific folder on my OneDrive. I am able to save the file to my OneDrive but I am having difficulty renaming the file. In Power Automate, I have successfully parsed the data (see below):

1702859614417.png
1702859895056.png


After renaming the file, I would like to add the extension to the new file name. To isolate the extension, I am trying to use the initializeExtension action using the formula:

last(split(item()['link'], '.'))

When I run the flow, I get the following error at this step:

"Unable to process template language expressions in action 'initializeExtension' inputs at line '0' and column '0': 'The template language expression 'last(split(item()['link'], '.'))' cannot be evaluated because property 'link' cannot be selected. Please see Reference guide for expression functions - Azure Logic Apps for usage details.'."

Would someone be able to help me understand why I am getting this error and how I can correct it.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I don't see the reason for you to extract the file name in a variable. You can just utilize the OneDrive's "Create file" API call. You just need to get the file content from the URL in your above JSON output.
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top