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

Notifications

Announcements

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,195 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard