Dear Flow Gurus.
I need some help in passing "Time" keyed in by mobile user via Kaizala and converting that to HH:MM. The user will key in 0000 which I am not able to pass the time that was key in by the user from Kaizala as it does not appear in the SharePoint List.
Please help. I have attached the screen shots of the Kaizala, Flow, SharePoint and the error encounter
i tried using formatDateTime(variables('Time'),'HH:mm') but it throw an error as per below screen shot.
Error in Flow
Kaizala Screenshot
Flow ScreenShot
SharePoint List
Solved! Go to Solution.
Hi @subas ,
Please refer to the following method and use the following expression to format Time:
Expression reference:
formatDateTime(concat(take(variables('Time'),2),':',skip(variables('Time'),2)),'HH:mm')
Best Regards,
Proud to be a Flownaut!
Hi @subas ,
Please refer to the method provided by @Jcook to configure your Flow. You need to use the string() function to format the variables so that the formatDateTime() function can work.
Please take a try and feel free to let us know if you have any other questions.
Best Regards,
dear @Jcook Jcook and @v-bacao-msft
My apologies as i am very new to Flow.
I just started this 1 week ago and have been put to do Flow.
Could you explain how to see the Output of the variable as i don't have any idea how to use Compose.
Some languages we can use Console to display messages and output but i notices that isn't any for Flow.
Also i tried out as requested but some how there was an error. i know i am doing something wrong here.
I have inserted a screenshots.
Proud to be a Flownaut!
hi @Jcook .
One again my apologies.
Some how its not working for me.
When i key in 0100 on the mobile, there is an error i obtained as per screen shot.
I have change as requested but with my lack of understanding programming and Flo, i may have missed out some things.
Please help.
Regards
Subas
Hi @subas ,
Please refer to the following method and use the following expression to format Time:
Expression reference:
formatDateTime(concat(take(variables('Time'),2),':',skip(variables('Time'),2)),'HH:mm')
Best Regards,
Dear @v-bacao-msft
Good morning to you. i have update as per your solution but some how i am getting the error as per screen shot below. Please advice.
Thank you Sir
Regards
Subas
Proud to be a Flownaut!
Hi @subas ,
My method is to default the user to follow the rules like 0100/2359 when entering the time.
Best Regards,
Dear @v-bacao-msft.
sorry for the delay in getting back as i was trying out how to solve these issues and i am sad to say i can't get it to work. it look so easy but it very difficult.
regards
subas
Hi @subas ,
Could you please provide a screenshot about error details so that we could provide a proper method to correct this issue?
Best Regards,
Dear @v-bacao-msft
I still can't get it to work. Below are my screen shots starting from Kaizala entry.
Ok, We continue to solve this problem together.
Best Regards,
Hi @subas ,
Please initialize a string variable instead of a Float variable.
Best Regards,
Dear @v-bacao-msft
Please find as attached the screen shots with error after changing the variable from Float to String as per attached. Thank you for taking the time to help me with this problem @v-bacao-msft. Very very much appreciated.
User | Count |
---|---|
87 | |
43 | |
21 | |
18 | |
16 |
User | Count |
---|---|
130 | |
47 | |
42 | |
36 | |
28 |