Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Python Interpreter in Script Activity

ketangp28686788
Level 4
Level 4

Hi,

    I wanted to write python script in Script Activity. 

    As mention in document the interpreter must be installed on Server.

    Since the option Python listed in script activity, does that mean python interpreter installed on server ?

    And After Installing the interpreter can someone elaborate the steps how to use python scripts with data in transition.

    Or any use case how to use Python Scripts in Adobe Campaign.

 

 

Thank you 

1 Accepted Solution
Vapsy
Correct answer by
Employee
Employee

Ketansing Pardeshi wrote...

Hi Florent,

Thanks for the information. We wish to use some python libraries. This will not access the database but will check the incoming data to script component, do some validation, derive some values using Python Libraries and add a new field to transition data.

How do we achieve this ? Can you refer to any documentation ?

 

Thank you,

Ketan

 

Hi Ketan,

If you are planning to have this implementation done on an Adobe hosted system, the request to install your libraries on the server will be rejected. Due to security concerns, as rightly pointed out by Florent, Adobe's operational team doesn't allow hosting of external libraries.

If the instance is on-premise then you can give it a try.

The addition of attributes to transition at runtime using python, is not documented anywhere.

Regards,

Vipul

View solution in original post

3 Replies
florentlb
Level 10
Level 10

Hi,

Yes. Interpreter must be installed on the server and its path must be referenced in the corresponding option in Adobe Campaign.

That being said, I'm not sure you can access database data with Python.

Besides, the Script activity will soon be deprecated for security reasons so I'd recommend using JavaScript, which has less limitations.

Hope this helps,

Florent.

ketangp28686788
Level 4
Level 4

Hi Florent,

Thanks for the information. We wish to use some python libraries. This will not access the database but will check the incoming data to script component, do some validation, derive some values using Python Libraries and add a new field to transition data.

How do we achieve this ? Can you refer to any documentation ?

 

Thank you,

Ketan

Vapsy
Correct answer by
Employee
Employee

Ketansing Pardeshi wrote...

Hi Florent,

Thanks for the information. We wish to use some python libraries. This will not access the database but will check the incoming data to script component, do some validation, derive some values using Python Libraries and add a new field to transition data.

How do we achieve this ? Can you refer to any documentation ?

 

Thank you,

Ketan

 

Hi Ketan,

If you are planning to have this implementation done on an Adobe hosted system, the request to install your libraries on the server will be rejected. Due to security concerns, as rightly pointed out by Florent, Adobe's operational team doesn't allow hosting of external libraries.

If the instance is on-premise then you can give it a try.

The addition of attributes to transition at runtime using python, is not documented anywhere.

Regards,

Vipul

View solution in original post