Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
4623 Vizualizări

I have a script that works when creating a partner for xml-rpc using php, but I cant seem to create a lead using xml-rpc for php. Does anyone know how to create a lead using xml-rpc? Thank you

Imagine profil
Abandonează
Autor

Dont use PHP, use Python instead

import xmlrpclib

url="http://localhost:8069/xmlrpc/common"

sock = xmlrpclib.ServerProxy(url)

uid = sock.login("dbName", "userName", "userPassword")

url = "http://localhost:8069/xmlrpc/object"

sock = xmlrpclib.ServerProxy(url)

args = {'contact_name':"Python Lead2", 'email_from': "python@email.com", 'addMoreFields': "more data", }

lead_id = sock.execute('dbName', uid, 'userPassword', 'crm.lead','create', args)

Cel mai bun răspuns

crm.lead has a required field name that I don't see you providing.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
iul. 25
3113
1
oct. 24
2262
1
apr. 24
2327
0
sept. 23
1815
1
iun. 23
2253