Hi Community,
I have a requirement to update record with lookup field.
I am able to update lookup field with value which is selected.
But when we want to make it null again then it is causing issue.
I have to make lookup field again blank / null.
I have tried to update with "Blank()" but it is not worked for me.
It is not letting me to save the data.
Please help
Error Text: "An unknown error occured."
Hi @rajmilansinh ,
How do you patch the NULL value or Blank value to the LookUp field of your D365 Entity from your app?
Could you please share a bit more about the formula that you used?
It is a common issue within PowerApps, there is no direct way to patch a NULL value to a LookUp column in Dynamics 365 Entity. The user @Sanoj has shared an alternative solution for similar issue, please check the response within the following thread:
Please also check and see if the following blog would help in your scenario:
Best regards,
Hi @v-xida-msft
Thanks for suggestion and information.
I have used that feature but its not working with it.
I am updating lookup field with Patch function:
Patch( 'Entityname', recordguid, { 'fieldName': Blank() } );
But it gives error as I said.
I have done work around by creating another string field and updating that string field from powerapps and then Plugin will take value from that string field, finally plugin will update my lookup field. If its null then I store value as "null" in string field and if its not null then I store guid of that record in it.
Then I update that lookup field based on that string field, if it is containing "null" as string then I update lookup as null or if it storing GUID then I update it with that GUID.
I will update the code and method if there is any better solution comes up in future.
Thank you,
Milansinh Raj
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
202 | |
98 | |
60 | |
57 | |
52 |
User | Count |
---|---|
257 | |
161 | |
87 | |
79 | |
68 |