on ‎2019 Jan 31 10:19 AM
Hello Experts,
How to export below flexible search query result as a CSV from HAC or HMC ?
select {cp.name},{cp.uid},{pg.uid},{csp.position},{csp.uid} from {ContentPage as cp join ContentSlotForPage as csp on {csp.page}={cp.pk} join PageTemplate as pg on {cp.masterTemplate}={pg.pk} }
Hybris version - 5.7 Thanks, Nagarjuna.
Request clarification before answering.
Go to Hac->Console->Impex Export and use something like this:
"#%impex.getImpExExportWriter().getExportWriter().setFieldseparator(',');"
INSERT_UPDATE Category;code;description
"#% impex.exportItemsFlexibleSearch(""Select {c.code},{c.description} from {Category as c}"");"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
this was failing as it is expecting pk as the first column. Here is the working one for me.
"#%impex.getImpExExportWriter().getExportWriter().setFieldseparator(',');"
INSERT_UPDATE Category;pk;code;description"#% impex.exportItemsFlexibleSearch(""Select {c.pk},{c.code},{c.description} from {Category as c}"");"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.