Forums

Forums / General Discussions / Retrieve Encrypted GUID using Saved Query

Retrieve Encrypted GUID using Saved Query

2 posts, 1 answered
  1. Missing user
    Missing user avatar
    19 Feb 2022
    Link to this post
    Hi All,

    I've created a saved query that will accept an Encrypted GUID and return the GUID of a related record.  That saved query works fine.

    The issue is that the saved query returns an UNENCRYPTED GUID, and I need it to be encrypted to use it elsewhere in my JavaScript.

    Is there an easy way to get my GUID from UnEncrypted to Encrypted?  Possibly a token in my Fetch that will return Encrypted, or a JavaScript function to encrypt it?

    Thanks in advance,

    Bill
  2. Missing user
    Missing user avatar
    Answered
    23 Feb 2022 in reply to Missing user
    Link to this post
    Hello Bill,

    You can encrypt the GUID quite easily using a Saved Query. Simply adding ":encrypt" after the attribute name will return the encrypted results.

    ie. <attribute name="accountid:encrypt" />

    Let me know if you have any issues,

    Brady
    TPC Web Developer
2 posts, 1 answered