cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Symira
Helper I
Helper I

Deleting image/file from CDS image/file field with flow

Hi,

 

I need to delete file from CDS File field using flows. I tried to delete it by using the "Upload file or image content" action with an empty string as follows:

{

"$content-type": "image/png",
"$content":""

}

 

This does not solve the issue, as the field then displays this "empty file" instead of deleting the file.

 

Any idea?

-S

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
moinkhan4477
New Member

HI

You will have to use the  CDS's  unbound Action : DeleteFile  image.png

View solution in original post

6 REPLIES 6
moinkhan4477
New Member

Did you got the solution 

moinkhan4477
New Member

HI

You will have to use the  CDS's  unbound Action : DeleteFile  image.png

View solution in original post

Thanks @moinkhan4477 , that worked fine!

abm
Super User III
Super User III

Hi @Symira  & @moinkhan4477 

 

Could you please explain where you getting the FileId for deleting the file?



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

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials
moinkhan4477
New Member

@abm 

You will to retrive the main record from CDS containing that field

and set that field value in using expression in the unbound action like below

  outputs('record')?['body/FIELD_SCHEMA-NAME'] 

as shown in screen shot

Hi @moinkhan4477 

 

Thank you so much for your reply. Its so strange that List Rows or Get Rows by Id didn't show the file type schema under the Dynamic properties. As you suggested I added the output/schema name that outputs the Id. Thanks for your help in this.

 

Thanks



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

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (46,613)