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 / Create calculated fiel...
Power Automate
Answered

Create calculated field with http request

(0) ShareShare
ReportReport
Posted on by 443

Hallo,

 

I have created a flow that creates Lists in SharePoint. One of the columns is calculated.

I know the type of the column, but is there a way i can automatically create the calculation itself?

Example

 

marial16_0-1656513620342.png

 

marial16_1-1656513648437.png

 

marial16_2-1656513692409.png

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,737 Most Valuable Professional on at

    Hi @marial16,


    You can use the SP.FieldCalculated type in your metadata. 


    Below is an example of that approach.

    In this example I am also setting the output as a number. If you want to use text use the outputtype 1. 

    https://docs.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.spfieldtype?view=sharepoint-server

     

     

    { 
    "__metadata": { "type": "SP.FieldCalculated" }, 
    "FieldTypeKind": 17, 
    "Title":"TotalCost",
    "Formula": "=Quantity*Cost", 
    "OutputType": 9 
    }

     

     

    createcalculatedcolumn_restapi.PNG

  • marial16 Profile Picture
    443 on at

    Yes this works,

    i figured it out eventually although i did not know about output type. 

    I will add it also to the workflow.

     

    Thank you!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 67

#2
David_MA Profile Picture

David_MA 64 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard