Hi We are trying to provision `requirePwdChange` f...
# suitetalkapi
s
Hi We are trying to provision
requirePwdChange
field in SOAP
add
request but even if we set value as true in
get
response we are getting false only for this field. add :
Copy code
<add>
         <record xsi:type="Employee" xmlns="urn:employees_2019_1.lists.webservices.netsuite.com">
            <email xsi:type="xsd:string">SKTestP123@gmail.com</email>
            <entityId xsi:type="xsd:string">SKTestP123</entityId>
            <password xsi:type="xsd:string">password@123</password>
            <password2 xsi:type="xsd:string">password@123</password2>
            <requirePwdChange xsi:type="xsd:boolean">true</requirePwdChange>
            <giveAccess xsi:type="xsd:boolean">true</giveAccess>
            <rolesList replaceAll="false" xsi:type="EmployeeRolesList">
               <roles xsi:type="EmployeeRoles">
                  <selectedRole internalId="4" xsi:type="n1:RecordRef" xmlns:n1="urn:core_2019_1.platform.webservices.netsuite.com"/>
               </roles>
               <roles xsi:type="EmployeeRoles">
                  <selectedRole internalId="5" xsi:type="n1:RecordRef" xmlns:n1="urn:core_2019_1.platform.webservices.netsuite.com"/>
               </roles>
            </rolesList>
         </record>
      </add>
add response :
Copy code
<addResponse>
         <platformMsgs:writeResponse xmlns:platformMsgs="urn:messages_2019_1.platform.webservices.netsuite.com">
            <platformCore:status isSuccess="true" xmlns:platformCore="urn:core_2019_1.platform.webservices.netsuite.com">
               <platformCore:statusDetail>
                  <platformCore:afterSubmitFailed>false</platformCore:afterSubmitFailed>
               </platformCore:statusDetail>
            </platformCore:status>
            <platformMsgs:baseRef internalId="877378" type="employee" xsi:type="platformCore:RecordRef" xmlns:platformCore="urn:core_2019_1.platform.webservices.netsuite.com"/>
         </platformMsgs:writeResponse>
      </addResponse>
get
Copy code
<urn:get>
         <urn:baseRef type="employee" internalId="877378" xsi:type="urn1:RecordRef">
         </urn:baseRef>
      </urn:get>
get response :
Copy code
<record internalId="877378" xsi:type="listEmp:Employee" xmlns:listEmp="urn:employees_2019_1.lists.webservices.netsuite.com">
               <listEmp:entityId>SKTestP123</listEmp:entityId>
               <listEmp:email>SKTestP123@gmail.com</listEmp:email>
               <listEmp:isInactive>false</listEmp:isInactive>
               <listEmp:lastModifiedDate>2021-09-02T01:38:29.000-07:00</listEmp:lastModifiedDate>
               <listEmp:dateCreated>2021-09-02T01:38:29.000-07:00</listEmp:dateCreated>
               <listEmp:globalSubscriptionStatus>_softOptIn</listEmp:globalSubscriptionStatus>
               <listEmp:payFrequency>_everyTwoWeeks</listEmp:payFrequency>
               <listEmp:useTimeData>_wage</listEmp:useTimeData>
               <listEmp:usePerquest>false</listEmp:usePerquest>
               <listEmp:purchaseOrderLimit>0.0</listEmp:purchaseOrderLimit>
               <listEmp:isSalesRep>false</listEmp:isSalesRep>
               <listEmp:isSupportRep>false</listEmp:isSupportRep>
               <listEmp:hireDate>2021-09-02T00:00:00.000-07:00</listEmp:hireDate>
               <listEmp:gender>_omitted</listEmp:gender>
               <listEmp:giveAccess>true</listEmp:giveAccess>
               <listEmp:defaultExpenseReportCurrency internalId="1" xmlns:platformCore="urn:core_2019_1.platform.webservices.netsuite.com">
                  <platformCore:name>USA</platformCore:name>
               </listEmp:defaultExpenseReportCurrency>
               <listEmp:sendEmail>false</listEmp:sendEmail>
               <listEmp:requirePwdChange>false</listEmp:requirePwdChange>
               <listEmp:commissionPaymentPreference>_systemPreference</listEmp:commissionPaymentPreference>
               <listEmp:eligibleForCommission>false</listEmp:eligibleForCommission>
               <listEmp:rolesList>
                  <listEmp:roles>
                     <listEmp:selectedRole internalId="4" xmlns:platformCore="urn:core_2019_1.platform.webservices.netsuite.com">
                        <platformCore:name>A/P Clerk</platformCore:name>
                     </listEmp:selectedRole>
                  </listEmp:roles>
                  <listEmp:roles>
                     <listEmp:selectedRole internalId="5" xmlns:platformCore="urn:core_2019_1.platform.webservices.netsuite.com">
                        <platformCore:name>A/R Clerk</platformCore:name>
                     </listEmp:selectedRole>
                  </listEmp:roles>
               </listEmp:rolesList>
               <listEmp:currencyList>
                  <listEmp:employeeCurrency>
                     <listEmp:currency internalId="1" xmlns:platformCore="urn:core_2019_1.platform.webservices.netsuite.com">
                        <platformCore:name>USA</platformCore:name>
                     </listEmp:currency>
                  </listEmp:employeeCurrency>
               </listEmp:currencyList>
               <listEmp:customFieldList xmlns:platformCore="urn:core_2019_1.platform.webservices.netsuite.com">
                  <platformCore:customField internalId="52" scriptId="custentity417" xsi:type="platformCore:BooleanCustomFieldRef">
                     <platformCore:value>false</platformCore:value>
                  </platformCore:customField>
                  <platformCore:customField internalId="34" scriptId="custentity400" xsi:type="platformCore:BooleanCustomFieldRef">
                     <platformCore:value>false</platformCore:value>
                  </platformCore:customField>
               </listEmp:customFieldList>
            </record>
b
You need to censor this better, you left login credentials exposed