How to export data from 'Custom HTML Block' doc type to 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.

Error occurs. I have used hooks.py of custom app
Screenshot from 2023-09-22 16-25-42


@avc

Even after fixing typo HTML , error persist.

Yes, sorry:

fixtures = [
	{
		"doctype": "Custom HTML Block",
        "filters": [["name", "in", ("Equipment Heading")]]	

     }
]```
3 Likes

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)