
Announcements
I am hoping someone can help me..... I am pretty lost
I am creating a small leaderboard for my boss to quickly see the referral totals for each branch. I simply put the name of each branch on a SP list, and every time a new referral is created on a Separate SP list, every branch's score is currently at 0, and every time a refferal is created the flow is to add +1 to the number that is currently "Refferal Score" column for that branch location.
The column in SP is data type = numbers
Here is the expression I created
The error I am getting says:
Now, my first instinct was to add int() to the expression so I changed the expression to :
add(int(outputs('Get_items')?['body/TotalReferralPoints'],1))
And I got this error:
InvalidTemplate. Unable to process template language expressions in action 'Update_item_2' inputs at line '0' and column '0': 'The template language function 'int' expects one parameter: the value that is to be converted to an integer. The function was invoked with '2' parameters. Please see https://aka.ms/logicexpressions#int for usage details.'.
Hi @mcnemare1,
Because it is within the loop I would use the item() reference instead.
Can you try this and test if that makes a difference?
add(item()?['TotalReferralPoints'],1)