Skip to Content
author's profile photo Former Member
Former Member

Running an impex via cron job

Hi,

Is there any way which we can run an impex from a cron job and the values of impex will be dynamically changed. Assuming impex is to create categories from an excel sheet which are stored as MediaItem in HMC.And business team will make the excel available in a predefined location.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 18, 2016 at 02:38 PM

    Hi Matty,

    Follow the below process in Order to generate Impex file. In a Cron job, read the CSV file or excel file using the CSV readers utils, and get the content from the CSV, and formulate the impex by mapping the fields in CSV.

    Use the Imprter api in Hybris import de.hybris.platform.impex.jalo.Importer; Please import the newly created Impex file.

    Hope this answers your question. Please let me know if you require any other help.

    THanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.