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
yashag2255
Dual Super User II
Dual Super User II

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
yashag2255
Dual Super User II
Dual Super User II

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

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (3,225)