cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper I
Helper I

Sub expression not working in Flow action

Afternoon all

 

I've got a Flow where I'm trying to subtract the value from a field called 'Qty' in one list from a value in a field called 'Test qty' in a different as shown below:

 

QuantityINPUT.png

 

However expression isn't subtracting the values. This is the output from the tests I've run:

quantityOUTPUT.png

 

Where am I going wrong? All help appreciated!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Hi @Sutekh666,

 

Can you remove the single quotation mark characters around the Qty and Test qty variables in your expression?

 

It will think you are trying to subtract strings instead of integer or float values. using the sub function for strings is not supported. This should work:

sub(0,20)

 

View solution in original post

1 REPLY 1
Super User II
Super User II

Hi @Sutekh666,

 

Can you remove the single quotation mark characters around the Qty and Test qty variables in your expression?

 

It will think you are trying to subtract strings instead of integer or float values. using the sub function for strings is not supported. This should work:

sub(0,20)

 

View solution in original post

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!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

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 (87,464)