Notifications
Announcements
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
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 }
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Michael E. Gernaey 503 Super User 2025 Season 2
Tomac 321 Moderator
abm abm 237 Most Valuable Professional