python - Edit an account in Sugarcrm -



python - Edit an account in Sugarcrm -

i having problem uploading file, form sugarcrm.

i using this tutorial, states next code should update account:

#2 - update existing entry sugarcrm_conn= none try: sugarcrm_conn = sugarcrm.sugarcrm(url = sugarcrm_url, username = sugarcrm_user, password = sugarcrm_pass) print "connected sugar via rest" except valueerror: print "cann't connect " + sugarcrm_url exit(1) accounts = sugarcrm_conn.module('accounts') #we show first 10 of them. business relationship in accounts[:10]: account.setvalue(['shipping_address_postalcode','email'],['4144','test@gmail.com'])

the problem having error:

sugarcrm instance has no attribute 'module'

for line

sugarcrm instance has no attribute 'module'

have missed something? clarify, can connect sugarcrm , have added accounts, displayed them.

query = sugarcrm_conn['accounts'].query() results = query.filter(last_name_contains = 'example') business relationship in results[:10]: print(' '.join(account['first_name','last_name']))

python django python-2.7 python-3.x sugarcrm

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -