Before answering, I want to warn you. You have been told many times on
this mailing list and in private (you got email rejected) that you must
follow the netiquette (
http://groups.tryton.org/netiquette). Despite all
those warnings, you keep refusing the rule. So you should not be
astonished that in the future nobody will answer you as you don't show
any respect to your readers.
Here is how you should have answered, quoted and cleaned your post to
let others understand you:
On 2016-06-10 05:10, Akshay patel wrote:
> On Friday, June 10, 2016 at 1:25:56 PM UTC+5:30, Sergi Almacellas Abellana
> wrote:
> >
> > El 10/06/16 a les 09:27, Akshay patel ha escrit:
> > > 2) I am unable to create a new party via create method.
> > >
> > >
> > Can not help if you don't provide more information.
> {"method":"model.party.contact_mechanism.write","params":[5,"e7fe29ce9296436c9fa8759a75fg047d",{"type":"email"},{"value":"
a...@f.co"},{"party":"6"}]}
>
> Is this right JSON RPC body?
Not at all. You have been told already that write method take as
parameters a list of:
- user id
- session
- a list of ids to write on
- a dictionary of key/value to write
As you don't give any information about what exactly you try to do (and
also contradiction: create party vs write contact mechanism). You
don't ease at all our the task to answer you. We can only guess what you
try to do.
So if you try to create a contact mechanism:
{"method": "model.party.contact_mechanism.create", "params": [id, session, [{"type": "email", "value": "
a...@example.com"}]]}
If you try to write on a contact mechanism:
{"method": "model.party.contact_mechanism.write", "params": [id, session, <list of mechanism is>, {"type": "email", "value": "
a...@example.com"}]}
This is the last time, I answer you if you don't change your behaviour.
(And I guess others will follow me).
Regards,
--
Cédric Krier - B2CK SPRL
Email/Jabber:
cedric...@b2ck.com
Tel:
+32 472 54 46 59
Website:
http://www.b2ck.com/