Update an attribute display name in the entity definitions not working

Grover, Kawaljit 1 Reputation point
2020-06-29T03:14:27.647+00:00

I was referring the docs here:
https://learn.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/create-update-entity-definitions-using-web-api#update-an-attribute

I tried updating the display name of an entity, creating new attribute. All works fine. But when I tried updating display name of an existing attribute (with header MSCRM.MergeLabels=false), even though it gives 204 success status code. it's not reflecting the change when I go visit the entity in the PowerApps. I tried even publishing the entity after updating the display name of an existing attribute, did not help.

e.g.: whole payload from get request and changed just the display name of an attribute
{
"@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata",
"LogicalName": "crd3c_bankname",
"MetadataId": "349fef45-69b9-ea11-a812-000d3a4e3eac",
"DisplayName": {
"LocalizedLabels": [
{
"Label": "Bank Name",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId": "8444e1be-40ee-4664-8f73-b336796aee1f",
"HasChanged": null
}
],
"UserLocalizedLabel": {
"Label": "Bank Name",
"LanguageCode": 1033,
"IsManaged": false,
"MetadataId": "8444e1be-40ee-4664-8f73-b336796aee1f",
"HasChanged": null
}
}
}

I would really appreciate if you can add a sample request to the document under update an attribute section or let me know the sample request which would work.

https://learn.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/create-update-entity-definitions-using-web-api#update-an-attribute

Thanks a lot for the help.
Kawal

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
37,677 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 69,991 Reputation points
    2020-06-29T07:24:36.007+00:00

    Welcome to Microsoft Q&A! Thanks for posting the question. Power app is not currently supported here on QnA.
    They're actively answering questions in dedicated forums here: https://powerusers.microsoft.com/t5/Forums/ct-p/PA_Comm_Forums

    0 comments No comments