[Vtigercrm-developers] special function to import records in custom module

Alan Lord alanslists at gmail.com
Mon Oct 12 06:50:48 GMT 2020


On 12/10/2020 07:43, Martin Allen wrote:
> Would a vtiger.batchevent.save  event get triggered after an import - or 
> is that just after a mass edit? Depending on what you need to do that 
> could work maybe?

Unfortunately not. Triggering batch events on Import were removed when 
7.0 came out:

https://code.vtiger.com/vtiger/vtigercrm/issues/955

Al




> 
> Martin Allen
> 
> *01392 248692 - Main Office
> 01392 690659 - Direct Line*
> 
> *signature2*
> 
> Have you visited our website recently? http://www.clystnet.com 
> <http://www.clystnet.com/>
> 
> 
> The information in this email is confidential If you are not the 
> intended recipient, you must not read or use that information. This 
> email and any attachments are believed to be virus free however no 
> responsibility is accepted by Clystnet for any loss or damage arising in 
> any way from receipt or use thereof. Clystnet Ltd (company reg number 
> 7164503) is based at Silverdown Park, Fair Oak Close, Clyst Honiton, EX5 2UX
> 
> 
> 
> On Mon, 12 Oct 2020 at 07:38, Alan Lord <alanslists at gmail.com 
> <mailto:alanslists at gmail.com>> wrote:
> 
>     I created a very custom import routine for a custom module.
> 
>     It's not "straightforward" as the code is rather complex, but you can
>     inherit the core classes from the Import module and then you make
>     changes in your local module. No need to modify core files.
> 
>     HTH
> 
>     Al
> 
>     On 11/10/2020 16:59, omri yona wrote:
>      > Hello all,
>      > I will be happy if you can point me in the direction for my goal.
>      > I created a custom module and I need to add a special function to
>     import
>      > records to this module.  What I try to do is to allow the user to
>     use
>      > the basic Import flow but after the user sets the field  and runs
>     the
>      > import, I want to add more data to to record (base on fields
>     import).
>      > There is a function I can overwrite in my module or I have to 
>     change
>      > the core (what i don't want to do) .
>      >
>      > Thank you,
>      > Omri
>      >
>      > _______________________________________________
>      > http://www.vtiger.com/
>      >
>     _______________________________________________
>     http://www.vtiger.com/
> 
> 
> _______________________________________________
> http://www.vtiger.com/
> 


More information about the vtigercrm-developers mailing list