Developer forum

Forum » Development » Importing boolean values to via UserImport

Importing boolean values to via UserImport

Martin Nielsen
Reply
Hi DW,

I'm trying to import some debitors to DW using Import/Export module, but i can't get my customfields imported.

I have 2 customfields of type Boolean, and i've tried various values but none of them make my checkboxex on the user checked.

My XML looks like this, and all fields are imported but the customfields.

Regards 
 Martin

Replies

 
Martin Nielsen
Reply
<?xml version="1.0" encoding="utf-8"?>
<Users>
    <User>
      <AccessUserUserName>00</AccessUserUserName>
      <AccessUserPassword>10468</AccessUserPassword>
      <AccessUserName>ORRRRR</AccessUserName>
      <AccessUserAddress />
      <AccessUserAddress2 />
      <AccessUserCity />
      <AccessUserCountry />
      <AccessUserPhone>00</AccessUserPhone>
      <AccessUserEmail />
      <AccessUserFax />
      <AccessUserType>15</AccessUserType>
      <AccessUserValidFrom>1900-01-01</AccessUserValidFrom>
      <AccessUserValidTo>2300-12-31</AccessUserValidTo>
      <AccessUserModules />
      <AccessUserInformation />
      <AccessUserCustomerNumber>00</AccessUserCustomerNumber>
      <AccessUserRead />
      <AccessUserActive>1</AccessUserActive>
      <AccessUserPasswordDate />
      <AccessUserComment>Importeret debitor</AccessUserComment>
      <AccessUserRedirectOnLogin>/Default.aspx?ID=66</AccessUserRedirectOnLogin>
      <AccessUserCurrencyCharacter>DKK</AccessUserCurrencyCharacter>
      <AccessUserShopID></AccessUserShopID>
      <AccessUserInformationFields>
        <Field>
          <Name>AccessUser_Delete</Name>
          <Value>1</Value>
        </Field>
        <Field>
          <Name>AccessUser_ImportedNow</Name>
          <Value>1</Value>
        </Field>
      </AccessUserInformationFields>
    </User>
</Users>

 
Dmitry Nikolenko
Reply
 Hi Martin,

Try to add next node into user element.

    <UserCustomFields>
      <Field>
        <FieldSystemName>AccessUser_My_Check_Box</FieldSystemName>
        <FieldType>Boolean</FieldType>
        <FieldName>My Check Box</FieldName>
        <FieldOption>
        </FieldOption>
        <FieldValue>True</FieldValue>
      </Field>
    </UserCustomFields>

 

You must be logged in to post in the forum