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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 325 members 6,728 guests
Recent signins:
Please welcome our newest community members: