Dev Space

Customize & extend the power of Alteryx. SDKs, APIs, custom tools, and more!
Don't forget to submit your entry for the Excellence Awards by October 30! | Need more information about the program? Check out the blog here

HTML SDK - Salesforce 4.0 and 4.1 - getDataItem("password") - no value

Highlighted
8 - Asteroid

Hi,

 I am using Salesforce Macro ( 4.0 or 4.1 in different machines ) . While validation we found workflows are failing because of expired accesstoken and debugging led us to getdataitem for password

window.Alteryx.Gui.Manager.getDataItem("password").getValue()

The Value is blank for some workflows and others we can able to retrieve values.  We have multiple servers that run workflows and 2 servers are used to store actual workflow files. Is getDataItem for password check any condition? . Please note Salesforce macro saves the password in Machine encryption

data-item-props='{dataName:"securityToken", dataType:"SimpleString", password:true, encryptionMode:"machine"}

 

Highlighted
Alteryx
Alteryx

Hi there @sathiya !

 

I think what you may be running into is an issue with the machine encryption. 

 

https://help.alteryx.com/current/developer-help/python-engine-sdk

 

Machine encryption only works on one machine. Something you could try is to open the workflow on the server machine, and re-enter the password and security token for the workflow and re-save. 

 

-Tasha