cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pcakhilnadh
Helper V
Helper V

Sharepoint: How to rename column names and its properties

How to rename a column name in SP List and update the properties like allow multiple values etc.

 

Looking for solution from PowerApp/ Power Automate. I know how to do manually using Sharepoint site

1 ACCEPTED SOLUTION

Accepted Solutions
v-JessicaG-msft
Community Support
Community Support

Hi @pcakhilnadh ,

 

incase of @zmansuri  is busy or out of office and cannot get back to this case in time, I would provide more details based on your requirements, and please consider accept @zmansuri  reply as the solution.

 

We can add some expressions to the body of this action to set the properties of the SharePoint column. The properties that can be changed for the column can refer to the properties in the JOSN of the SharePoint column:

vJessicaGmsft_0-1638269407118.png

{
  "d": {
    "__metadata": {
      "id": "",
      "uri": "",
      "type": "SP.FieldChoice"
    },
    "DescriptionResource": {
      "__deferred": {
        "uri": ""
      }
    },
    "TitleResource": {
      "__deferred": {
        "uri": ""
      }
    },
    "AutoIndexed": false,
    "CanBeDeleted": true,
    "ClientSideComponentId": "00000000-0000-0000-0000-000000000000",
    "ClientSideComponentProperties": null,
    "ClientValidationFormula": null,
    "ClientValidationMessage": null,
    "CustomFormatter": null,
    "DefaultFormula": null,
    "DefaultValue": null,
    "Description": "",
    "Direction": "none",
    "EnforceUniqueValues": false,
    "EntityPropertyName": "test23",
    "Filterable": true,
    "FromBaseType": false,
    "Group": "Custom Columns",
    "Hidden": false,
    "Id": "e00b1e10-db6f-450a-9cbb-006c8314c485",
    "Indexed": false,
    "IndexStatus": 0,
    "InternalName": "test23",
    "IsModern": false,
    "JSLink": "clienttemplates.js",
    "PinnedToFiltersPane": false,
    "ReadOnlyField": false,
    "Required": false,
    "SchemaXml": "",
    "Scope": "",
    "Sealed": false,
    "ShowInFiltersPane": 0,
    "Sortable": true,
    "StaticName": "test23",
    "Title": "test23",
    "FieldTypeKind": 6,
    "TypeAsString": "Choice",
    "TypeDisplayName": "Choice",
    "TypeShortDescription": "Choice (menu to choose from)",
    "ValidationFormula": null,
    "ValidationMessage": null,
    "FillInChoice": false,
    "Mappings": null,
    "Choices": {
      "__metadata": {
        "type": "Collection(Edm.String)"
      },
      "results": []
    },
    "EditFormat": 0
  }
}

 

Best Regards,

Jessica Gu

View solution in original post

3 REPLIES 3
zmansuri
Super User
Super User

a.jpg

asdsad is list name

OderDate is an old name

"TestName" will be the new name

@zmansuri How to update properties like 

  1. is required
  2. Allow multiple 
  3. default value

etc

v-JessicaG-msft
Community Support
Community Support

Hi @pcakhilnadh ,

 

incase of @zmansuri  is busy or out of office and cannot get back to this case in time, I would provide more details based on your requirements, and please consider accept @zmansuri  reply as the solution.

 

We can add some expressions to the body of this action to set the properties of the SharePoint column. The properties that can be changed for the column can refer to the properties in the JOSN of the SharePoint column:

vJessicaGmsft_0-1638269407118.png

{
  "d": {
    "__metadata": {
      "id": "",
      "uri": "",
      "type": "SP.FieldChoice"
    },
    "DescriptionResource": {
      "__deferred": {
        "uri": ""
      }
    },
    "TitleResource": {
      "__deferred": {
        "uri": ""
      }
    },
    "AutoIndexed": false,
    "CanBeDeleted": true,
    "ClientSideComponentId": "00000000-0000-0000-0000-000000000000",
    "ClientSideComponentProperties": null,
    "ClientValidationFormula": null,
    "ClientValidationMessage": null,
    "CustomFormatter": null,
    "DefaultFormula": null,
    "DefaultValue": null,
    "Description": "",
    "Direction": "none",
    "EnforceUniqueValues": false,
    "EntityPropertyName": "test23",
    "Filterable": true,
    "FromBaseType": false,
    "Group": "Custom Columns",
    "Hidden": false,
    "Id": "e00b1e10-db6f-450a-9cbb-006c8314c485",
    "Indexed": false,
    "IndexStatus": 0,
    "InternalName": "test23",
    "IsModern": false,
    "JSLink": "clienttemplates.js",
    "PinnedToFiltersPane": false,
    "ReadOnlyField": false,
    "Required": false,
    "SchemaXml": "",
    "Scope": "",
    "Sealed": false,
    "ShowInFiltersPane": 0,
    "Sortable": true,
    "StaticName": "test23",
    "Title": "test23",
    "FieldTypeKind": 6,
    "TypeAsString": "Choice",
    "TypeDisplayName": "Choice",
    "TypeShortDescription": "Choice (menu to choose from)",
    "ValidationFormula": null,
    "ValidationMessage": null,
    "FillInChoice": false,
    "Mappings": null,
    "Choices": {
      "__metadata": {
        "type": "Collection(Edm.String)"
      },
      "results": []
    },
    "EditFormat": 0
  }
}

 

Best Regards,

Jessica Gu

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,416)