Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 1274 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

1. Is it possible to work with an excel file that is password protected?

2. What is the syntax to add the password to scribedocload?

Thanks,

Ed

Posted

Hi ScribeDocLoad has an optional key=value parameter to pass in a password. You can pass in a password like so:

Set Variable[$load; Value: ScribeDocLoad(someTable::someContainer;"password=MySuperSecretPassword")

 

  • Newbies
Posted

Ryan,

Thanks for the quick response. I am confused on how to get the script to work. How do I use the $load variable to load the document?

My script works fine on a non-password protected file.

Thanks

Posted

Calling a Set Variable script step with a plugin function as the value executes the plugin function. In this case, ScribeDocLoad is executed and will set the value of the $load variable to 1 if the document was successfully loaded or ERROR if there was an error loading the document. 

  • Newbies
Posted

Thanks for your patience... here's my script -

Set Variable [ $Load; Value:ScribeDocLoad(Invoice::TMMprice;"password=MySecretPassword") ]
// Set Variable [ $MpriceQty; Value:ScribeDocReadValue("Web Price!C8") ]
// Set Field [ Invoice::TMQty; $MpriceQty ]
// ScribeDocCancel

 

This is the error message:

image.png.ce4783b5991cbb8842ab1403d7317486.png

Posted

Hi Ed,

I was able to reproduce this error. It seems there is a bug when trying to supply a password for a password protected Excel file. I will report this to our developers. I am not sure when this issue will be addressed but I will bump this thread once I have a fix or more information.

This topic is 1274 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.