cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Dalyla
Level: Powered On

Create column YES/NO with REST API FieldBoolean

Hello,

 

I created a list with REST API

 

{
 "Title": "TPF811000", 
 "BaseTemplate": 100,
 "Description": "Seguimiento a ",
 "OnQuickLaunch": false
}

The I Add the items, it works sith just the title, but I want to add the column YES/NO.

I tried this code

{ '__metadata': { 'type': 'SP.Data.TPF811000ListItem' }, 
        'Title': 'Factura',
       { 
        '__metadata': { 'type': 'SP.FieldBoolean'},
      'Name': 'Realizado',
      'Description': 'Realizado',
       'DefaultValue': No
       }
}

Based in another kind of column, but with propierties of FieldBoolean, but it doesn't works, like this I get the error the property name '' cannot be empty, but I don't know what property, I add 'Name', but I guess it isn't.

 

I guess I just need the correction of this code, to get it right

 

 

 

2 REPLIES 2
RookieI
Level: Powered On

Re: Create column YES/NO with REST API FieldBoolean

But it seems that MS did not give instructions for creating a Yes/No column using REST API. Do you have any resources for this?

Dalyla
Level: Powered On

Re: Create column YES/NO with REST API FieldBoolean

@RookieII don't have it, I just thinked, something I can't do it normally, I can with Rest API ... Smiley Tongue 

Because before I did it creating a list and fill it. but I don't even know how to add another column Smiley Sad

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 202 members 4,705 guests
Please welcome our newest community members: