Hello,
I have tried to find a way to auto-archive completed envelopes from various units, from DocuSign into specific folders in SharePoint. I have experimented a lot and hopefully, I may have found a way now. However, I am stuck since I cannot establish the correct data to be used with the switch function.
Here is what I have done so far:
When an envelope is completed I find the unit number by using Compose

Then I have copied a formula from one of my colleagues to be used as variable in the switch function.

I have tried to change it to outputs('Compose 2'), but I get an error from Power Automate.

When I run the flow with the initial variable:
int('Compose 2')?['Unit Number']
The flow fails as per below (though, it has recognised the Unit Number successfully.



Any idea what I am doing wrong?
Thank you in advance for your help.
Ale