cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ankita2020
Frequent Visitor

Allow Setting null value to the lookup field in Common Data Service (current environment) connector

When we set the null value to the lookup field in Common Data Service (current environment) connector, the flow fails with the following error.

 

1.png 

 

When the lookup value contains data it works correctly. But when I want to set it as null above error occurs while setting the value.

I am using below expression to update the lookup value.

if(equals(outputs('Get_Quote_record')?['body/_e8s_estimator_value'],null),null,concat('/systemusers(',outputs('Get_Quote_record')?['body/_e8s_estimator_value'],')'))

 

FYI, i tried using  ' ' instead of null but it still fail. Any solution?

 

Thanks in advance!

4 REPLIES 4
ManishJain
Solution Sage
Solution Sage

Hi Ankita,

 

Have you tried using the DELETE method the way it is done in web api . Try using Invoke an HTTP Request with Azure AD connector and pass the required parameters

 

https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/associate-disassocia...

 

Thanks

Jcook
Super User
Super User

Hello @Ankita2020 .

 

Unfortunately at this time flow does not support CDS Lookup values to be set as null.

You can try leaving the Lookup value blank. (This might cause issues later on, since you will not be able to filter on them)

 

You can vote for this feature here:

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Allow-Setting-null-value-to-the-lookup-fiel...

 


Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up


Proud to be a Flownaut!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





Hi Ankita,

 

Please try with Unrelate Records action available in CDS(current). PFA screenshot which I tried removing primary contact from Account

 In the item id provide the guid of contact record and URL also provide the guid of account

 

UnrelateRecord.JPG

Thanks

Also DELETE request works for single valued navigation property using HTTP Azure AD request 

 

invoke request.JPG

Thanks

Helpful resources

Announcements
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.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (2,506)