since ‎06-02-2017
‎10-12-2019
alexanderh76698
Level 2
Re: Get Enumerations in JavaScript
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Hey again,thanks for the quick answer.This is what my queryDef looks like:var availProductsQuery = xtk.queryDef.create( ); var availProductsRes = availProductsQuery.ExecuteQuery();availProductsRes.setName("Products");I will try to use the query object in front of my JS object - how do I access the values returned by the query object?Thanks again!BestAlex

Views

1.2K

Likes

0

Replies

0
Re: Get Enumerations in JavaScript
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Hey Jean-Serge,I tried all your suggestions but I didn't find the right solution by now.I currently encounter two problems:1. Renaming the XML:Renaming works just fine. But what happens when I try to loop through the renamed XML is acutally nothing.I tried to rename "enumValue-collection" to "Products" and loop it afterwards. Just like this:for each(var product in availProductsRes.Products) logInfo(product.toString());It doesn't show anything in the logs.Even if I try it in a different syntax (a...

Views

1.2K

Likes

0

Replies

0
Get Enumerations in JavaScript
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Hello everyone,I currently try to get enumerations list in a javascript object.I wasn't able to find a standarf function in the JS API of campaign, so I fetch all the values using xtkQueryDef.The return of my query is this: When I try to parse the XML to get the child nodes () that actually contain the values I need, I face the issue that it doesn't recognize the hyphen in the parent node. The error message tells me that "collection" isn't defined (it cuts the string at the hyphen).04.08.2017 ...

Views

4.8K

Likes

2

Replies

9
Re: Error trying to call a REST webservice
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Hi Vipul,thanks for your answer.We're running on 6.1.1 Build Nr. 8770.Regards,Alex

Views

767

Likes

0

Replies

0
Error trying to call a REST webservice
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Hello everyone,I'm currently trying to call a REST webservice in Adobe Camaign.I tried to study the documentation and searched the forum, but I didn't find that much about this.What I've got so far is this:The output after a little while is this:04.07.2017 11:02:50 js Error message: -60I guess this is a timeout, but I'm not sure.Is there more documentation about this topic somewhere?Or is it even the wrong approach?Thanks in advance for your help!Kind regards,Alex

Views

924

Likes

0

Replies

2
Re: Date field values are getting saved as one day lesser in remote machine
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Hi there!Have you checked for different timezones on the server and the timezones of the database? The are probably different and your date get's converted to the server's timezone.Best regards.

Views

417

Likes

0

Replies

0
Re: Read and write options in adobe campaign workflow
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Perfect! Thank you!

Views

935

Likes

0

Replies

0
Re: Problem with xtk.queryDef with foreign key condition
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Thank you!

Views

951

Likes

0

Replies

0
Read and write options in adobe campaign workflow
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Hello!For a query in a workflow, I'm trying to save a "last run date" in the options. That's why I need to read this option, start a new query using the value in the option and save a new value for the option back to the system.So my question is:What is the best way to read and store system options in Adobe Campaign (my company -> platform -> options).is there a specific JavaScript (API) Method to get/write options?Best regards,Alex

Views

2.5K

Like

1

Replies

3
Re: Problem with xtk.queryDef with foreign key condition
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Hello Vipul,thanks for your advice with the subquery.Unfortunately, I still have a problem regarding the DeliveryID. It stills gives me an error that "expr="@delivery-id" (Line no. 7 in your example) is unknown. It looks like that there is no way to access this foreign key inside the broadLogs.I found out about a "sqlExec" method. It's probably not the best way to use direkt sql statements instead of the API methods, but currently I can't find a better way.By the way, is there a documentation ab...

Views

918

Likes

0

Replies

0
Problem with xtk.queryDef with foreign key condition
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Hello everyone,I'm currenty trying to write a little piece of code which deletes all delivery logs that are linked to a cancelled delivery (or in some situations deliviers in "stop requested" state). The code first loads all delivieres which are in the specified states.After that, I want to load all delivery logs which are linked to those deliveries (OT: I'm currently doing this by using 2 different database queries, because I don't know how to select data from 2 linked tabled with the xtk.query...

Views

2.3K

Like

1

Replies

4
How does a optimized link look like?
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Hello everyone,I was asking myself what's the best way to make the most perfekt link element.For example:I want to save cars and link them with their owners (Recipients).So I got this schema: What is the best way to optimize this Link?Best regards,Alex

Views

769

Likes

0

Replies

1
What are the best ways (best practices) for implementing mandatory fields (except from "required" attribute)
Avatar

alexanderh76698

alexanderh76698
- Adobe Campaign Standard
Hello everyone,i was asking myself if there are different ways to implement mandatory fields, for example to prevent a user to save a recipient without a name. All I currently know is the way of using the required attribute.Is there any other way of implementing mandatory fields?Best regards,Alex

Views

965

Like

1

Replies

1