Forums

Forums / General Discussions / Retrieve Encrypted GUID using Saved Query

Retrieve Encrypted GUID using Saved Query

2 posts, 1 answered
  1. Bill Richardson
    Bill Richardson avatar
    4 posts
    Registered:
    09 Aug 2021
    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. Brady Ward
    Brady Ward avatar
    92 posts
    Registered:
    19 Aug 2021
    Answered
    23 Feb 2022 in reply to Bill Richardson
    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