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

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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,031)