Hi,
I am building a Canvas app connected to D365. I enabled "Use Column Display names" feature under advanced settings for better developer experience. However, I started facing issues from thereon while creating notes (annotation) in D365 using Patch with error "'_objectid_type' does not match expected type GUID". I am not able to understand why it is expecting GUID since its type where we just entity schema name to link note record to regarding object. This was working fine before enabling "Use Column Display names" feature.
Now, I do not see option to turn off this feature in Advanced Settings and stuck. I have attached snapshots as well.
Hi @v-xida-msft
Thanks for your response. Unfortunaltely, I won't be able to switch to previosuly saved versions as I afraid of losing many changes done post that. Please find more details on _objectid_type issue below:
Before enabling "Use Column Display names" feature I was using below patch statement to create notes in D365 linked to account entity. I was passing accountid in _objectid_value field and "accounts" text string in _objectid_type field. I was able to create notes with no issues:
Patch(Notes,Defaults(Notes),{Title:txtTitle.Text,Description:txtDescription.Text,_objectid_value:EditRecord.accountid, _objectid_type:"accounts"})
After above feature is enabled, _objectid_value changed to Regarding and _objectid_type changed to "Regarding Type" which is correct but "Regarding Type" datatype also changed from Text to Guid. I cannot pass GUID("accounts") to Regarding Type now and getting error. Attached is error details image.
Hi @Sachinbansal ,
Could you please share a bit more about your scenario?
Do you want to turn off the "Use Column Display names" feature within your app?
Currently, within PowerApps, there are some updates on "Use Column Display names" feature and "Use GUID type instead of GUID string" feature:
"
Precisely what we have done is to remove the Preview switch for new apps and existing apps that already had it turned on, which has been the default for a while. If you have an app with one of these features already turned off, the switch will still appear so that you can turn it on. Once turned on, saved, and reloaded the feature can no longer be turned off but you can revert to a previous saved version of the app in the app portal. Someday we will force all apps to use these features but wanted to provide a grace period to minimize disruption.
"
Please check the following blog for more details:
https://powerapps.microsoft.com/en-us/blog/display-names-and-guids-for-canvas-apps-graduate/
Based on the error message that you mentioned, it seems to tell that the _objectid_type column is required to provide a GUID value, but you provide a string value.
In order to fix this issue, please consider take a try to convert the GUID string value into a GUID value using GUID() function. Please modify your formula as below:
Patch( Notes, Defaults(Notes), { ... _objectid_type: GUID("Your GUID String"), /* <-- your GUID string may be like '0f8fad5b-d9cb-469f-a165-70867728950e'. */ ... } )
More details about GUID function, please check the following article:
Best regards,
mmbr1606
22
Super User 2025 Season 1
stampcoin
17
ankit_singhal
11
Super User 2025 Season 1