I have not found ways in google to solve this problem.
I have a custom app and I want to export data(List) from ‘Custom HTML Block’ doctype which is in desk module of frapee app to my custom app.
I have not found ways in google to solve this problem.
I have a custom app and I want to export data(List) from ‘Custom HTML Block’ doctype which is in desk module of frapee app to my custom app.
Hi @Prasant_Pant:
Add fixtures in hooks.py (remember to export with bench export-fixtures
)
fixtures = [
{
"doctype": "Custom HMTL Block",
"filters" : [
"name",
"in",
[
'Equipment Heading'
]
]
}
]
Hope this helps.
Yes, sorry:
fixtures = [
{
"doctype": "Custom HTML Block",
"filters": [["name", "in", ("Equipment Heading")]]
}
]```
Thank you for the solution . It works finally.
when running command , use this.
bench --site [site-name] export-fixtures
Yes, you must specify site (or if you previously used bench use yoursite.com
--site won’t be needed)