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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Suggested Answer

JavaScript Function

(1) ShareShare
ReportReport
Posted on by 2
Dear All,
 
Could you help advise me why my code does not work?
[%CurrentItem['S1']-1%] at this line if i replace with [1], it will be working so fine
 
Thank you very much for your help
I have the same question (0)
  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at
    Hello,
     
    I'm having trouble understanding the exact issue from your post. Could you please inspect your calendar UI element and share the HTML code? With that, we can offer a more precise solution to your problem.
     
    Best regards,
    Deenu
  • Suggested answer
    eetuRobo Profile Picture
    4,204 Super User 2025 Season 2 on at
    What does your CurrentItem look like?
    I assume you have a loop that uses datatable and the CurrentItem is a data row from that table. And that data table has a column named S1. Is that S1 a numerical value since you are trying to substract 1 from that?

    I recommend adding a test variable where you only have that %CurrentItem['S1'] - 1% and see if it gives error.
    Like so:
    If it gives error like "Operator '-' can't be used to 'Text value'. then its a text value and you need to first use convert text to number -action
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard