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

Failed to setproperty of an object

Screenshot01.pngScreenshot02.pngScreenshot03.png

 

I tried to update the property of the object with a row get from excel table.

This is the Cmp

setProperty(Variables('Device_9137004'),'Cur_Month_End',items('Apply_to_each')?['Current_Month_End'])

 

However, there is error, anyone know the reason?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Majingcth 

 

Can you try adding a compose action and use the expression: items('Apply_to_each')?['Current_Month_End'] and check what is the value being returned? 

 

Hope this Helps!

 

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!

View solution in original post

2 REPLIES 2

Hi @Majingcth 

 

Can you try adding a compose action and use the expression: items('Apply_to_each')?['Current_Month_End'] and check what is the value being returned? 

 

Hope this Helps!

 

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!

Hi @yashag2255 ,

 

Thanks for you reply. 

 

items('Apply_to_each')?['Current_Month_End'] returns nothing, so I updated it to items('Apply_to_each')?['Current Month End'], and also update this excel column to text format, it returns "30 Jun 2020" now.

 

I updates the expression to: 

setProperty(Variables('Device_9137004'),'Cur_Month_End',items('Apply_to_each')?['Current Month End'])
 
It still got the same error, any reason why?

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (2,918)