Hi All:
We created a form for our Medical practice. Its a basic questionnaire we want to use a proof of concept. Its supposed to help us reduce staff involvement for file creation. The flow currently pulls data from a form, fills in blanks into a word doc which is then emailed back to the staff.
the questionnaire has a section that requires some simple math. This in particular is just to add 7 values. We havent found an effective way to get those added and posted in the the appropriate field in the final word doc.
We've tried with a formula on a separate column in the XL sheet. but the GET ROW doesnt seem to know how to get the data (obviously its me who doesnt know). We're having issue with the KEY COLUMN, KEY DATA match.
Hi Rob:
Thanks for your detailed response. Ed had indeed given me the answer. I however continued to make the same typo on my formula. I do like your approach as it does breakdown the "formula" into a more visual fashion.
Thanks so much!
@oemmanuelli adding to what @edgonzales has said and in case it helps you at all, I've just done some screenshots of how you could do it without Excel. I find de-bugging expressions can be easier if I break everything down into smaller pieces so we've got a series of Compose controls and enter add() expressions to them until we get the grand total of all 7 fields from the form:
This is the form:
The flow triggers when the form is submitted and we get the response details. Next, in the Expression tab (circled) we enter an add() expression for fields 1 and 2 and wrap them in int(). When you are entering the expression you can still select the fields from your form from the dynamic content tab.
We then build up the other Compose controls, ending up with a Compose for the Grand Total:
In my example I've sent an email rather than create a document but you can tailor the final action to whatever you want. You'll see that the grand total is added from the output of the final Compose control.
The resulting email is:
Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.
I've read those, i think im a little dense with this. But i dont find those examples clear enough. I've tried the "add()" on that line so it fills the TOTAL field. Thats what resulted in it "printing" the formula itself on my document, albeit with each variable value.
And i still cant get it to read the XL fields properly. There is very little in the way detail howto's for something that i would think is so common!
Thanks for listening.
Hey there. You'll want to put the expression in the 'expression' box (right next to where it says "Dynamic Content").
Here's a blog article showing the details of how to add expressions:
Use expressions in flow actions
We're getting closer 🙂 Keep at it.
-Ed
I greately appreciate the suggestions. I tried the "add(b,c)" chaining up all values as suggested but im just getting that exact string as my resulting item. not the addition.
as in the end result in the document is "int(add(add(int(3),int(3)),add(int(3),int(3)),add(int(3),add(int(3),int(3)))"
It may be missing one or two items.
In any event, where am I supposed to place the "add()" function? Inside the field name? I am using the expression in my TOTAL field. but its not adding any of the values, just displaying the expression when the flow is done.
Hi there...so, a couple of ways to handle this depending on your comfort level. I think you're on a good path having Excel do the math, but I'll outline an alternative just in case:
Keep us posted.
-Ed
If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
WarrenBelz
146,552
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional