How do I export a Personalized Block source code to a .html file on my local path? | Community
Skip to main content
Level 2
January 8, 2024
Solved

How do I export a Personalized Block source code to a .html file on my local path?

  • January 8, 2024
  • 1 reply
  • 546 views

Hi Team,

 

I was wondering if there is a way to dynamically export the source code of a personalized block into a .html file on my local path?

I have extracted the source code of the personalized block using queryDef in a workflow. 

Thank you in advance.

 

Kind Regards,

Anushka K

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 isahore

Hi @anushka_rk,

 

There is no straightforward way to export a file from a workflow (or even a js activity) to your local machine. You can export files like this onto a directory on the server.

In order to get your files in html format on your local machine, I would advise you to export the personalization block as an xml package, and then write a local js file to do the post processing and extracting the HTML part from the xml package into an html file.

 

Kind regards,

Ishan

1 reply

isahore
Community Advisor
isahoreCommunity AdvisorAccepted solution
Community Advisor
January 9, 2024

Hi @anushka_rk,

 

There is no straightforward way to export a file from a workflow (or even a js activity) to your local machine. You can export files like this onto a directory on the server.

In order to get your files in html format on your local machine, I would advise you to export the personalization block as an xml package, and then write a local js file to do the post processing and extracting the HTML part from the xml package into an html file.

 

Kind regards,

Ishan