cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bhitchlockfcs
Resolver II
Resolver II

Dynamic content from Common Data Service is returning Null

I have a strange issue I cannot figure out.

 

I have a flow which when triggered should retrieve one record and then create a related record with values being a percentage of the source records. Seems straightforward, however the Flow fails on the create record step with the following error: 

Unable to process template language expressions in action 'Create_PC_Line_Based_on_QS' inputs at line '1' and column '2726': 'The template language function 'mul' expects its first parameter to be an integer or a decimal number. The provided value is of type 'Null'. 

The Expression referred to is a simple multiplication statement: 
mul(body('Get_the_QS_Coverage')?['ssru_blanketlimit'],variables('QSPct'))

 
When I look at the output from the 'Get_the_QS_Coverage' action I see all of the values in the output:outputs.png

 

To test I tried initializing variables with the field values but same issue arises no actual values are returned from the get record action. variables.png

 

I'm stumped. Can someone help me figure this out?
 
1 ACCEPTED SOLUTION

Accepted Solutions

Hi @bhitchlockfcs 

 

Thanks for your quick reply.

 

Please try this expression.

 

mul(body('Get_the_QS_Coverage')?['value']?[0]?['ssru_blanketlimit'],variables('QSPct'))

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

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 blog
Power Automate Video Tutorials

View solution in original post

7 REPLIES 7
abm
Super User
Super User

Hi @bhitchlockfcs 

 

Could you post your retrieve flow step screenshot please?

 

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 blog
Power Automate Video Tutorials

Sure, @abm  the retrieve step is below. Followed by the results.retrieve.pngretrieve results.png

dynamiccontent.png

Hi @bhitchlockfcs 

 

Try this

 

mul(body('Get_the_QS_Coverage')?['value']?['ssru_blanketlimit'],variables('QSPct'))

 

Let me know the result.

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

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 blog
Power Automate Video Tutorials

Thanks @abm, tried that sadly just got another error:

 

Unable to process template language expressions in action 'Initialize_Building_Limit' inputs at line '1' and column '2726': 'The template language expression 'mul(body('Get_the_QS_Coverage')?['value']?['ssru_blanketlimit'],variables('QSPct'))' cannot be evaluated because property 'ssru_blanketlimit' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'.

Hi @bhitchlockfcs 

 

Thanks for your quick reply.

 

Please try this expression.

 

mul(body('Get_the_QS_Coverage')?['value']?[0]?['ssru_blanketlimit'],variables('QSPct'))

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

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 blog
Power Automate Video Tutorials

Thanks @abm  that worked!

Any idea why the body fields need to be formatted that way? I have several more values to use in my flow and it appears I have to type the body expression for each value.

Hi @bhitchlockfcs 

 

That's great.

 

The value is an array collection. Please see your earlier screenshot you provided.

 

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 blog
Power Automate Video Tutorials

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,604)