web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / About a variable obtai...
Power Automate
Answered

About a variable obtained from Forms

(1) ShareShare
ReportReport
Posted on by 8
Hello.
I'm trying to get a variable called "responseId" from Forms and perform a calculation on it, but I get an error.
I think the syntax is correct, but is there any reason for the error? An error occurs when I insert subtraction in the formula in the figure.
 
***
Thank you for two persons, Expiscornovus and ManishSolanki ,
my Flow was fixed well.
However I still don't know the reason why for the problem.
If someone knows about this, please give me information.
Thank you very much for your all support.
Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at
    Hi,
     
    Pls use sub() function to perform the subtraction.
     
    Here is an example:
    Expression used in above example: 
    sub(int(10),int(5))
     
    Pls use sub() function in your flow to fix the problem.
     
     
    If this helps & solves your problem, please remember to like and accept my solution as it will help others in the future.
     
     
     
  • Verified answer
    Expiscornovus Profile Picture
    33,884 Most Valuable Professional on at
     
    You can use the sub function to subtract a integer value.

    Below is an example
    sub(int(triggerOutputs()?['body/resourceData/responseId']), 50)



    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 391

#2
11manish Profile Picture

11manish 276

#3
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

Last 30 days Overall leaderboard