Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Business Map
#1
Hello,

I'm trying to create my first business map.
It work well on the Corebos demo system but not on my crm.
Maybe the different is that in my CRM I change in the translation file the name "Invoice" to "SomethingElse"

Here is one field mapping for example:

Code:
<map>
  <originmodule>
    <originname>SalesOrder</originname>
  </originmodule>
  <targetmodule>
    <targetname>Invoice</targetname>
  </targetmodule>
  <fields>
    <field>
      <fieldname>subject</fieldname>
      <Orgfields>
        <Orgfield>
          <OrgfieldName>subject</OrgfieldName>
          <OrgfieldID>634</OrgfieldID>
        </Orgfield>
        <Orgfield>
          <OrgfieldName>sostatus</OrgfieldName>
          <OrgfieldID>778</OrgfieldID>
        </Orgfield>
        <Orgfield>
          <OrgfieldName>_FromSO</OrgfieldName>
          <OrgfieldID>CONST</OrgfieldID>
        </Orgfield>
        <delimiter>;</delimiter>
      </Orgfields>
    </field>
   <field>
      <fieldname>due_date</fieldname>
      <Orgfields>
        <Orgfield>
          <OrgfieldName>add_days(get_date('today'), 30)</OrgfieldName>
          <OrgfieldID>EXPRESSION</OrgfieldID>
        </Orgfield>
      </Orgfields>
    </field>
  </fields>
</map>

I try to change
Code:
<targetname>Invoice</targetname>

to
Code:
<targetname>SomethingElse</targetname>

AND , OR

the Business Map name from SalesOrder2Invoice to SalesOrder2SomethingElse.

How to debug it?

BTW: OrgfieldID is the database field IDs?
Reply
#2
You don't have to translate the modules in the business maps. Business maps always use the internal names no matter what you translate the module to. So keep Invoice

Yes, the OrgFieldID is the vtiger_field id column, but that is obsolete, as it restricts copying the maps from one install to another and it is an easy number for us to obtain from the fieldname if we need it, so I would recommend you use

<OrgFieldID>FIELD</OrgFieldID>

that will accomplish the same and is a lot easier

besides that, the map looks correct and the only thing I would recommend is to update your coreBOS, just in case you are on an older version that is missing something.
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)