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.
Solved! Go to Solution.
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
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
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
Views
Replies
Total Likes
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.
Hi @Amit_Kumar,
Is there is any way to get the details by using internal Name not using Primary key?
Views
Replies
Total Likes
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();
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Hi Kapscool, no it doesn't exist OOTB but you can create your custom in your library.
Views
Replies
Total Likes