function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Ruby on Rails calling encrypted salesforce field

I have an external application written in RoR that needs to write to and retreive data from an encrypted text field in salesforce. I'm using the databasecom gem. Currently, it appears that i'm able to do both these things without doing anything special (like decrypting the values), that doesn't seem correct to me. Is this right? Is there something unique I need to do when working with encrypted fields via the API?


Software Allies TeamSoftware Allies Team



From what I understand, the encryption filed in Salesforce is really  nothing more than a mask than anything. In the docs, if you access the field with Apex code it is automatically displayed and the encrption mask is not shown. This makes sense for API use also, I think this is inherit in the way salesforce has deisgn the secuirty model around encrypted fields.


Jason Stafford

Software Allies