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

Users online (3,503)