Skip to main content
Question

Migrating Sales and Marketing to Embedded CRM: Contacts


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Superhero (Customer)
  • 526 replies

If you’ve migrated from IFS SaM to Embedded CRM, how did you migrate contacts for prospects? If you change a SaM company from “not linked” to “prospect”, it doesn’t migrate contacts.

 

If you have scripts you can attach, that would be fantastic.

This topic has been closed for comments

9 replies

durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 526 replies
  • August 16, 2021

Bump


KristenGastaldo
Superhero
Forum|alt.badge.img+18

Hey Kevin - Let me see if I can find someone from IFS to help. Leaving this up in case customers or partners have advice!


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 526 replies
  • August 18, 2021

My working idea so far is to migrate those Sales and Marketing Companies as Customers first, then when the migration is complete, do UPDATE queries against CUSTOMER_INFO_TAB.CUSTOMER_CATEGORY and VMO_COMPANY_TAB.IDCODCCA to demote them back to P:rospects.

This feels less invasive than writing directly to the tables to create Person and Customer Contact records. I’m trying to reinvent the fewest wheels.


Yasas Kasthuriarachchi
Superhero (Employee)
Forum|alt.badge.img+30

Hi @Mohamed Infaz,
Any thoughts and help on this or any member who could assist?
Thanks & Best Regards,
Yasas 


Forum|alt.badge.img+4
  • Do Gooder (Partner)
  • 11 replies
  • August 25, 2021
  • Hi @durette, we did a migration from SaM to Apps10 and while we did not had to migrate the contacts, we experienced some other issue with it.

    First the IFS Standard scripts are run. In our case, the customer were already included into the core IFS and we only added the SaM Configuration on top with Scripts. We ran into the issue, that the configured “Prospect” Category was lost during this process and all of them are converted to “Customer”, since this was the only setting available in the legacy version of Apps 8. 
  •  
  • In this scenario,we already got all the contacts we needed and did not write a specific script for that. So sadly no scripts, but you can ping me, maybe I can help you out with some experience sharing.
     

durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 526 replies
  • August 25, 2021
MarcoKressig wrote:
  • We ran into the issue, that the configured “Prospect” Category was lost during this process and all of them are converted to “Customer”, since this was the only setting available in the legacy version of Apps 8. 

Thanks. We saw that and addressed it by adding the basic data.

DECLARE
   info_       VARCHAR2(32767);
   objid_      VARCHAR2(32767);
   objversion_ VARCHAR2(32767);
   attr_       VARCHAR2(32767);
BEGIN
   BEGIN
      client_sys.clear_attr(attr_);
      client_sys.add_to_attr('IDCOD', 'cca.PC', attr_);
      client_sys.add_to_attr('IDCNA', 'CCA',    attr_);
      vmo_base_code_api.new__(info_, objid_, objversion_, attr_, 'DO');
   EXCEPTION WHEN OTHERS THEN
      dbms_output.put_line('ERROR calling vmo_base_code_api.new__: ' || SQLERRM);
   END;

   BEGIN
      client_sys.clear_attr(attr_);
      client_sys.add_to_attr('IDCOD',     'cca.PC',   attr_);
      client_sys.add_to_attr('IDLNG',     'en',       attr_);
      client_sys.add_to_attr('CODEDESC',  'Prospect', attr_);
      client_sys.add_to_attr('SORTORDER', 0,          attr_);
      vmo_base_codedesc_api.new__(info_, objid_, objversion_, attr_, 'DO');
   EXCEPTION WHEN OTHERS THEN
      dbms_output.put_line('ERROR calling vmo_base_codedesc_api.new__: ' || SQLERRM);
   END;

   BEGIN
      client_sys.clear_attr(attr_);
      client_sys.add_to_attr('IDCOD',     'cca.PC',   attr_);
      client_sys.add_to_attr('IDLNG',     'pro',      attr_);
      client_sys.add_to_attr('CODEDESC',  'Prospect', attr_);
      client_sys.add_to_attr('SORTORDER', 0,          attr_);
      vmo_base_codedesc_api.new__(info_, objid_, objversion_, attr_, 'DO');
   EXCEPTION WHEN OTHERS THEN
      dbms_output.put_line('ERROR calling vmo_base_codedesc_api.new__: ' || SQLERRM);
   END;

END;
/
COMMIT;

 


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 526 replies
  • August 26, 2021

Any further thoughts on Contacts, anyone?


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 526 replies
  • September 2, 2021

Bump


durette
Superhero (Customer)
Forum|alt.badge.img+19
  • Author
  • Superhero (Customer)
  • 526 replies
  • September 21, 2021

To link a contact to Apps, the contact must be assigned an address ID. That address comes from VMO_ADDRESS.

Inside SaM, when you link a Company in the GUI, it does more than just create the Customer and change the state field. It also creates records in VMO_ADDRESS. The creation of the VMO_ADDRESS records doesn’t come from a trigger; that’s an explicit call made by the application.

In order to replicate this in a script, I’m now calling VMO_ADDRESS_API.NEW__ to create the addresses after changing the company status but changing the contact status.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings