Function to get the Info From External Accounts | Adobe Higher Education
Skip to main content
Level 3
September 25, 2018
Beantwortet

Function to get the Info From External Accounts

  • September 25, 2018
  • 7 Antworten
  • 6352 Ansichten

Hi

I am using Adobe Campaign Classic v6.7. I want to get some info from External Accounts using a function. Is there any function which is similat to getOption() function , which is used to get the info from Options.

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von Amit_Kumar

Hi Rahul,

You should use this to get the info.

//pass externel id to get the object info.

var extAccount = nms.extAccount.load(String(1234));

logInfo(extAccount.server);

Regards,

Amit

7 Antworten

Amit_Kumar
Amit_KumarAntwort
Level 10
September 25, 2018

Hi Rahul,

You should use this to get the info.

//pass externel id to get the object info.

var extAccount = nms.extAccount.load(String(1234));

logInfo(extAccount.server);

Regards,

Amit

Level 3
September 26, 2018

HI Amit,

I am trying to the AWS Secret Key of an S3 Account. The value that I am getting is encrypted. Is there any other way to get the Secret Key

Thanks and Regards,

Ganesh

Amit_Kumar
Level 10
September 26, 2018

Hi Ganesh,

you can use decryptString/decryptPassword to get the key.

Read:

decryptString

The decryptString function is deprecated. Refer to the Deprecated and Removed Features article.

For new customers, this function is now only used to decrypt the recipient's crypted ID in landing pages. To decrypt passwords stored in an external account, use the new decryptPassword function.

For existing customers, the behavior of this function is not changed but we recommend that you use decryptPassword instead of decryptString. The XtkSecurity_Unsafe_DecryptString compatibility option is added by the postupgrade and activated by default, allowing you to keep using the function. If you want to deactivate decryptString, deactivate the option.

decryptPassword

The decryptPassword function has been added. It allows you to decrypt a password stored in an external account.

kapilKochar
Level 6
August 16, 2019

Hi @Amit_Kumar,

Is there is any way to get the details by using internal Name not using Primary key?

Amit_Kumar
Level 10
August 20, 2019

use something like this:

var query = xtk.queryDef.create(

        <queryDef schema="nms:extAccount" operation="get">

          <select>

            <node expr="@account"/>

             <node expr="@server"/>

          </select>

          <where>

            <condition boolOperator="AND" expr="@active = 1"/>

            <condition boolOperator="AND" expr={"@name = '" + extAccountInternalName + "'"}/>

          </where>

        </queryDef>

      ); var account = query.ExecuteQuery();

kapilKochar
Level 6
August 21, 2019

Yeah, I tried that only. It's working fine.

I was curious if we have any direct function like load () .

Thanks Amit for your help.

Amit_Kumar
Level 10
August 21, 2019

Hi Kapscool, no it doesn't exist OOTB but you can create your custom in your library.