web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Automate flow no...
Power Apps
Unanswered

Power Automate flow not picking right value (when value not found in Dataverse table).

(0) ShareShare
ReportReport
Posted on by 60

I have a data flow where the density value is getting picked from Density (dataverse table). The density value is dependent on the combination of 5 fileds. So I have used list rows function and in fliter I have the formula as- 

cra54_cluster eq '@{items('Apply_to_each')?['Cluster']}'
and cra54_name eq '@{items('Apply_to_each')?['Waste Stream']}'
and cra54_wastetype eq '@{items('Apply_to_each')?['Waste Type']}'
and cra54_pricetype eq '@{items('Apply_to_each')?['Pricing Type']}'
and cra54_bintype eq '@{items('Apply_to_each')?['Bin/ Equipment Type']}'

 

Then I have the apply to each action with "value" (from the list rows). I have set a variable with the formula- 

items('Apply_to_each)['densityvalue']

1) Scenario 1- where the density value is existing in the table it picks the right value. 

2) Scenario 2- When for the combination of fields , no density value exist in table, that scenario is not executed. I want that 0 or blank should be returned for these cases.

 

After digging in a bit dipper, I saw that the value looks like this for both the scenarios-

Scenario 1- 

"value":[{"@odata.type":"#Microsoft.Dynamics.CRM.cra54_densityconversion","@odata.id":"https://org62826572.crm6.dynamics.com/api/data/v9.1/cra54_densityconversions(0206c90b-981f-ee11-9966-002248e352b4)","@odata.etag":"W/\"2603837\"","@odata.editLink":"cra54_densityconversions(0206c90b-981f-ee11-9966-002248e352b4)","cra54_densityconversiontonnem3":"0.07","cra54_densityconversionid@odata.type":"#Guid","cra54_densityconversionid":"0206c90b-981f-ee11-9966-002248e352b4"}]}}

Scenario 2-

"value":[]}}

 I am not sure how to handle the situation, in scenario 1 I want the value as 0.07 ("cra54_densityconversiontonnem3":"0.07") and in scenario 2 blank or 0.

 

Need help from experts here.

Thanks

Categories:
I have the same question (0)
  • action1 Profile Picture
    60 on at

    Can anyone help please.

  • action1 Profile Picture
    60 on at

    I used a compose with the below mentioned formula and it worked-

    if(equals(outputs('List_rows')?['body/value']?[0]?['cra54_collectionpickup'],Null) ,0.0 ,outputs('List_rows')?['body/value']?[0]?['cra54_collectionpickup'])

     

    Hope it helps someone else too.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard