Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Dev Space

Customize and extend the power of Alteryx with SDKs, APIs, custom tools, and more.

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

sathiya
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"}

 

1 REPLY 1
TashaA
Alteryx Alumni (Retired)

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