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

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

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,824)