Daniel Mejia
09/09/2022, 4:46 PM<cftransaction action="begin">
<cfloop query="getEmployees">
<cfset employee.jobInfo = ultipro.GetJobByEmployeeIdentifier(getEmployees.cb_emp_n)> <!--- cfhttp() + xmlparse() --->
<cfquery name="qry" datasource="mainds">
insert into ....
</cfquery>
</cfloop>
<cftransaction action="commit">
</cftransaction>
dswitzer
09/09/2022, 4:54 PMDaniel Mejia
09/09/2022, 4:55 PMdswitzer
09/09/2022, 4:59 PMDaniel Mejia
09/09/2022, 5:01 PMDaniel Mejia
09/09/2022, 5:02 PMdswitzer
09/09/2022, 5:03 PMDaniel Mejia
09/09/2022, 5:12 PMdswitzer
09/09/2022, 5:16 PM<cfset employees = [] />
<!---// get the employee data //--->
<cfloop query="getEmployees">
<cfset arrayAppend(employees , ultipro.GetJobByEmployeeIdentifier(getEmployees.cb_emp_n))> <!--- cfhttp() + xmlparse() --->
</cfloop>
<!---// now save the data //--->
<cfloop array="#employees#" index="employee">
<!---// do insert //--->
</cfloop>
Preferably the save data would do it in bulk (instead of 1 insert per employee, it would insert multiple records in one operation, but the syntax for that varies on database engine and version)Daniel Mejia
09/09/2022, 5:18 PMScott Bennett
09/09/2022, 5:20 PMScott Bennett
09/09/2022, 5:20 PMDaniel Mejia
09/09/2022, 5:21 PMScott Bennett
09/09/2022, 5:26 PMScott Bennett
09/09/2022, 5:26 PMDaniel Mejia
09/09/2022, 5:26 PMScott Bennett
09/09/2022, 5:30 PMDaniel Mejia
09/09/2022, 5:31 PMDaniel Mejia
09/09/2022, 5:31 PMdswitzer
09/09/2022, 5:32 PMScott Bennett
09/09/2022, 5:32 PMdswitzer
09/09/2022, 5:33 PMdswitzer
09/09/2022, 5:33 PMDaniel Mejia
09/09/2022, 5:34 PMScott Bennett
09/09/2022, 5:35 PMScott Bennett
09/09/2022, 5:36 PMScott Bennett
09/09/2022, 5:36 PMDaniel Mejia
09/09/2022, 5:37 PMsana
09/09/2022, 7:15 PMgavinbaumanis
09/10/2022, 2:40 PM