cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerUser0
Helper IV
Helper IV

Unable to get VBSCRIPT output

Hi Folks, 

 

I am trying to run a VB Script to get the date and time in mmddyyyyHHmm format, I got a script for that in this site

https://stackoverflow.com/questions/28765980/vb-script-date-formats-yyyymmddhhmmss

PowerUser0_0-1647328577952.png

 

 

But when I am running this in Desktop flow I am not getting any output, can someone help me on this?

@ScottShearer @Pstork1 @Expiscornovus @tom_riha @abm 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

Is there a particular reason you need to do this using VBscript?  You can accomplish the same thing with built in actions.  Just retireve the current Date and Time into a variable and then run the convert Datetime to text action with a custom format.

image.png

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User
Dual Super User

Is there a particular reason you need to do this using VBscript?  You can accomplish the same thing with built in actions.  Just retireve the current Date and Time into a variable and then run the convert Datetime to text action with a custom format.

image.png

 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thanks @Pstork1  ,Sure I will try that 

 

Also, can you help me with one more issue,?

I have a Macro Excel file in which I have few buttons to click, I am using  "Click UI element in window" action to click that button but the issue is if the name of the document(excel file) changes then this action fails .

do you have a solution for that?

PowerUser0_0-1647359716867.png

 

I would post that as a different question.  Off the top of my head I don't have a solution for that.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,174)