How to Sync enumurations when using WEB Serivce Call instead of SFDC Connector to import data from SFDC. | Community
Skip to main content
nadeema90078524
Level 2
November 6, 2017
Solved

How to Sync enumurations when using WEB Serivce Call instead of SFDC Connector to import data from SFDC.

  • November 6, 2017
  • 3 replies
  • 2003 views

Hi ,

I am trying to Use WEB Service (SOAP Call) to import Data from SFDC to Adobe Campaign.I do not want to use SFDC Connector here. I wanted to know is there any way to synch Enumeration through SOAP. Or we have to manually create it in Adobe Campaign.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jean-Serge_Biro

Hi Nadeem,

You have the choice to either create a new method in an extended schema of xtk:enum or in xtk:enumValues (by adding method code in the Administration>Settings>Javascript codes node), or directly code in your client Soap call the xtk.session.Write or WriteCollection (or the entity save method, depending on your way to code).

Creating his own method is a recommended choice to hide the underlying details, for example if you don't want to expose some business rules to the client (and the developer in charge of the client). So the xtk.session.Write is coded in the method code, business rules checks etc.

If the client code is managed by the same developer profile (that has already access to the Adobe Campaign server or client as operator), it is more or less the same, and the main advantage is to avoid any specific documentation

My recommendation would be the method extension of schema if you need to implement some business rules.
It is very similar to the choice of stored procedures or directly code SQL queries in a client code...

Regards
J-Serge

3 replies

Jean-Serge_Biro
Level 10
November 6, 2017

Hi Nadeema,

I guess you mean a user enumeration, so the itemized lists that you can find in Administration>Platform>Enumerations.

In such case, please have a look on xtk:enum schema and its WSDL for SOAP call, and use the session.Write or entity save methods, depending on your code.

But in case of system enum declared in the schemas, they are only readable by JSAPI/Soap methods, not overwritten.

Regards
J-Serge

nadeema90078524
Level 2
November 7, 2017

Hi J-Serge,

Thanks  for the Detail overview. However i have small doubt. As i don't see any methods to create new Enumration.Do i need to Extend the Factory xtk.enum Schema and add methods accordingly?

Thanks

Nadeem

Jean-Serge_Biro
Jean-Serge_BiroAccepted solution
Level 10
November 7, 2017

Hi Nadeem,

You have the choice to either create a new method in an extended schema of xtk:enum or in xtk:enumValues (by adding method code in the Administration>Settings>Javascript codes node), or directly code in your client Soap call the xtk.session.Write or WriteCollection (or the entity save method, depending on your way to code).

Creating his own method is a recommended choice to hide the underlying details, for example if you don't want to expose some business rules to the client (and the developer in charge of the client). So the xtk.session.Write is coded in the method code, business rules checks etc.

If the client code is managed by the same developer profile (that has already access to the Adobe Campaign server or client as operator), it is more or less the same, and the main advantage is to avoid any specific documentation

My recommendation would be the method extension of schema if you need to implement some business rules.
It is very similar to the choice of stored procedures or directly code SQL queries in a client code...

Regards
J-Serge